:root {
  color-scheme: light;
  --paper: #faf7f0;
  --ink: #242724;
  --green: #23483c;
  --muted: #e8eee5;
  --line: #d7ded2;
  --section-padding: clamp(64px, 7vw, 104px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.75 system-ui, "Microsoft YaHei", sans-serif;
}

a {
  color: var(--green);
  text-underline-offset: .22em;
}

a:focus-visible {
  outline: 3px solid #995a30;
  outline-offset: 4px;
}

.wrap {
  width: min(1320px, calc(100% - clamp(40px, 8vw, 112px)));
  margin-inline: auto;
}

header {
  border-bottom: 1px solid var(--line);
}

header .wrap,
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

nav {
  display: flex;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
}

header a,
nav span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

nav span {
  font-weight: 700;
}

.brand {
  font: 700 24px Georgia, serif;
  text-decoration: none;
}

h1,
h2,
h3 {
  color: var(--green);
  line-height: 1.22;
  margin: 0 0 16px;
}

h1 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(40px, 5.6vw, 72px);
}

h2 {
  font-size: clamp(28px, 3.5vw, 42px);
}

h3 {
  font-size: 23px;
}

p {
  margin: 0 0 18px;
}

.hero,
.contact {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: var(--section-padding);
}

.hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
}

.hero p,
.contact p {
  max-width: 64ch;
}

.hero figure,
.contact figure {
  margin: 0;
}

.hero img,
.contact img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero img {
  aspect-ratio: 5/4;
  object-fit: cover;
}

.contact {
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
}

.contact img {
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 63%;
}

.kicker {
  font-weight: 650;
  color: var(--green);
}

.action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 6px;
  padding: 8px 18px;
  background: var(--green);
  color: white;
  border-radius: 5px;
  font-weight: 650;
  text-decoration: none;
}

.pending {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.story {
  border-top: 1px solid var(--line);
  padding-block: var(--section-padding);
}

.story h2 {
  max-width: 34ch;
}

.story p {
  max-width: 68ch;
}

.story p:last-child,
.cards p:last-child {
  margin-bottom: 0;
}

.faq {
  background: var(--muted);
  padding-block: var(--section-padding);
}

.faq h2 {
  margin-bottom: clamp(22px, 3vw, 36px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px);
}

.cards article {
  background: var(--paper);
  padding: clamp(24px, 3vw, 38px);
  border-radius: 6px;
}

footer {
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 5/4;
  background: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
}

.profile-photo .photo-placeholder {
  aspect-ratio: 4/5;
}

@media (max-width: 800px) {
  :root {
    --section-padding: clamp(40px, 8vw, 64px);
  }

  .hero,
  .contact,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact figure {
    max-width: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
