:root {
  color-scheme: light;
  --paper: #f8f6ed;
  --panel: #f0eee0;
  --ink: #263725;
  --muted: #535c4d;
  --green: #365635;
  --line: #d8ddcd;
  --orange: #b54f1e;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.8 var(--sans);
}

a {
  color: inherit;
  text-decoration: none;
}

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

img { display: block; max-width: 100%; }

h1, h2, h3, p { margin: 0; }

.shell {
  width: min(76rem, calc(100% - clamp(1.75rem, 8vw, 7rem)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1;
  transform: translateY(-160%);
  padding: .5rem 1rem;
  background: var(--green);
  color: white;
}

.skip-link:focus { transform: translateY(0); }

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

.header-inner,
.footer-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
}

.wordmark img {
  border-radius: 50%;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
}

nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  white-space: nowrap;
  font-size: .9375rem;
  color: var(--muted);
}

nav a:hover,
nav a[aria-current] {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: #74896b;
  text-underline-offset: .45rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: clamp(28rem, 38vw, 35rem);
  margin-block: clamp(1.5rem, 4vw, 4rem);
  background: var(--panel);
  border-radius: 1.75rem;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  container-type: inline-size;
  padding: clamp(1.75rem, 3.5vw, 3.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--green);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .11em;
}

.eyebrow::before {
  content: "";
  width: .35rem;
  height: .35rem;
  background: #9b6a34;
  border-radius: 50%;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.045em;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-size: min(clamp(2.5rem, 5.4vw, 4.75rem), 19cqi);
  line-height: 1.12;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-period { color: var(--orange); }

.hero-description {
  margin-top: 1.1rem;
  max-width: 21em;
  color: var(--muted);
  text-wrap: balance;
}

.hero-description span { white-space: nowrap; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.125rem;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  background: var(--green);
  color: white;
  font-weight: 600;
}

.button:hover { background: #263d26; }

.button-secondary {
  border-color: #9ba88f;
  background: transparent;
  color: var(--green);
}

.button-secondary:hover { background: #e6ebde; }

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 55% center;
}

.experience { padding-block: 0 clamp(2.75rem, 6vw, 5rem); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.feature-list article {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.feature-list h3 {
  margin-bottom: .4rem;
  font-size: 1.2rem;
}

.feature-list p {
  margin-bottom: 1.1rem;
  color: var(--muted);
}

.experience-note {
  margin-top: .65rem;
  color: var(--muted);
}

.app-shot {
  display: block;
  width: min(100%, 17rem);
  margin: auto auto 0;
  border: 1px solid var(--line);
  border-radius: .8rem;
}

.app-shot:hover { border-color: var(--green); }

.app-shot img {
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.shopping {
  padding-block: clamp(2.5rem, 5vw, 4.75rem);
  background: #e9eee1;
}

.section-heading h2 {
  font-size: clamp(1.85rem, 4.05vw, 3.5rem);
  line-height: 1.22;
  text-wrap: balance;
}

.section-heading .eyebrow { margin-bottom: .6rem; }

.shopping-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.shopping-steps li {
  padding: 1.1rem .75rem 0 0;
  border-top: 1px solid #a8b6a1;
}

.step-number {
  display: block;
  margin-bottom: .45rem;
  color: var(--green);
  font: 1.375rem/1.35 Georgia, serif;
  font-variant-numeric: tabular-nums;
}

.shopping-steps h3 {
  margin-bottom: .3rem;
  font-size: 1.18rem;
}

.shopping-steps p { color: var(--muted); }

.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem;
  align-items: baseline;
  padding-block: clamp(2.25rem, 5vw, 4.5rem);
}

.about p { max-width: 36rem; color: var(--muted); }
.about p + p { margin-top: .6rem; }

.text-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: .24em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ecefe4;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.footer-contact h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  line-height: 1.22;
}

.footer-contact p {
  max-width: 32em;
  margin-top: .6rem;
  color: var(--muted);
}

.support-links {
  display: grid;
  width: min(100%, 25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: .75rem;
}

.contact-link {
  display: grid;
  min-height: 2.75rem;
  border: 1px solid #a8b6a1;
  border-radius: .9rem;
  padding: .7rem 1.1rem;
  color: var(--green);
}

.contact-link span { color: var(--muted); font-size: .875rem; }
.contact-link strong { overflow-wrap: anywhere; }
.contact-link:hover { background: #e1e7d9; }

.footer-inner,
.footer-meta { border-top: 1px solid var(--line); }

.footer-inner { flex-wrap: wrap; }
.footer-inner nav { flex-wrap: wrap; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .2rem 1rem;
  padding-block: .9rem 1.15rem;
  color: var(--muted);
  font-size: .875rem;
}

.footer-meta nav { flex-wrap: wrap; gap: .25rem 1rem; }

@media (max-width: 68rem) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 1fr;
    border-radius: 1.25rem;
  }

  .hero-copy { padding: 2.05rem 1.5rem 2.25rem; }
  .hero-image { height: auto; aspect-ratio: 6 / 4; }
  .about { grid-template-columns: 1fr; gap: 1.35rem; }
}

@media (max-width: 33rem) {
  .header-inner,
  .footer-inner {
    min-height: 4.25rem;
    gap: .5rem;
  }

  .wordmark { gap: .4rem; font-size: 1rem; letter-spacing: .04em; }
  .wordmark img { width: 2.2rem; height: 2.2rem; }
  nav { gap: clamp(.55rem, 3vw, .95rem); }
  nav a { font-size: .875rem; }
  .feature-list { grid-template-columns: 1fr; }
  .shopping-steps { grid-template-columns: 1fr; gap: 1.1rem; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: .65rem;
  }

  .footer-inner nav { row-gap: 0; }
}

@media (max-width: 26rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-block: .65rem .2rem;
  }

  .header-inner nav {
    width: 100%;
    justify-content: space-between;
  }
}

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