:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #1d2529;
  --muted: #505a60;
  --line: #d5d9d5;
  --blue: #1c3d85;
  --blue-dark: #142d62;
  --blue-pale: #e8ecf7;
  --white: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.shell {
  width: min(100% - 4rem, 72rem);
  margin-inline: auto;
}

.site-header {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand,
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.brand {
  gap: .65rem;
  font-size: 1rem;
  font-weight: 700;
}

.brand-mark {
  width: .85rem;
  height: 1rem;
  border: 2px solid var(--blue);
  border-bottom-width: 0;
}

.site-header nav a {
  color: var(--muted);
  font-size: .94rem;
}

.site-header nav a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.75rem);
  padding-block: clamp(3.25rem, 5vw, 4.75rem);
}

.hero-copy::before {
  content: "";
  display: block;
  width: 2.65rem;
  height: .2rem;
  background: var(--blue);
  margin-bottom: 1.25rem;
}

h1, h2, p { margin: 0; }

h1 {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.hero p {
  max-width: 20rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.85;
  text-wrap: pretty;
}

.hero-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  margin-top: 1.75rem;
  padding: .65rem 1.25rem;
  border-radius: .35rem;
  background: var(--blue);
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.hero-button:hover { background: var(--blue-dark); }
.hero-button:active { transform: scale(.96); }

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: .45rem;
  background: #dedacf;
}

.entries {
  border-top: 1px solid var(--line);
  padding-block: 1.65rem 3rem;
}

.entries h2 {
  font-size: 1.5rem;
  line-height: 1.45;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr));
  gap: .95rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.entry {
  min-height: 6.25rem;
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--white);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.entry:hover {
  border-color: var(--blue);
  background: #fafdff;
}

.entry-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: .3rem;
  background: var(--blue-pale);
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.entry-copy { min-width: 0; }

.entry-name, .entry-description { display: block; }

.entry-name {
  font-size: 1.25rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.entry-description {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.entry-action {
  min-width: 3.75rem;
  padding: .48rem .7rem;
  border-radius: .25rem;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.entry:hover .entry-action, .entry:focus-visible .entry-action {
  background: var(--blue);
  color: var(--white);
}

@media (max-width: 48rem) {
  .shell { width: min(100% - 2.5rem, 72rem); }

  .site-header { min-height: 4rem; }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 2.4rem 2rem;
  }

  .hero p { margin-top: .85rem; }

  .hero-button { margin-top: 1.15rem; }

  .hero-image { aspect-ratio: 1.7; }
}

@media (max-width: 26rem) {
  .shell { width: calc(100% - 2rem); }

  .entry {
    padding: .85rem;
    gap: .65rem;
  }

  .entry-mark {
    width: 2.45rem;
    height: 2.45rem;
  }

  .entry-action {
    min-width: 0;
    padding-inline: .55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-button, .entry, .entry-action { transition: none; }
}

.site-footer {
  padding-block: 1.5rem;
  color: var(--muted);
  font-size: .875rem;
}

.site-footer a { text-decoration: underline; }
