:root {
  color-scheme: light;
  --background: #f7e7ce;
  --footer-background: #f1ddbe;
  --ink: #2b2419;
  --ink-strong: #241d13;
  --ink-soft: #5c4b34;
  --accent: #6b5335;
  --button: #3a2e1e;
  --button-hover: #241d13;
  --border: #e0c9a6;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
}

.site-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(20px, 5vw, 56px) 0;
}

.wordmark {
  color: #4a3a28;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.language-picker {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.language-option {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: 500 13px/1 "Helvetica Neue", Helvetica, sans-serif;
  letter-spacing: 0.02em;
  transition: background-color 150ms ease, color 150ms ease;
}

.language-option.is-active {
  background: var(--button);
  color: var(--background);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.6vh, 28px);
  padding: clamp(28px, 5vh, 56px) clamp(20px, 5vw, 56px);
}

.app-icon {
  display: block;
  width: clamp(84px, 13vw, 104px);
  height: clamp(84px, 13vw, 104px);
  border-radius: 23%;
  box-shadow: 0 6px 22px rgb(74 58 40 / 20%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.7vh, 18px);
  max-width: 660px;
}

.hero-copy[hidden],
[data-label][hidden] {
  display: none;
}

.eyebrow,
.tagline,
.description,
.release-meta {
  margin: 0;
}

.eyebrow {
  color: var(--accent);
  font: 400 12px/1 ui-monospace, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink-strong);
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(52px, 14vw, 96px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  text-align: center;
  text-wrap: balance;
}

.tagline {
  color: var(--button);
  font-size: clamp(19px, 4vw, 27px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

.description {
  color: var(--ink-soft);
  font-size: clamp(14.5px, 1.5vw, 16px);
  line-height: 1.65;
  text-align: center;
  text-wrap: pretty;
}

.description span {
  color: var(--button);
}

.hero-copy[data-copy="zh"] {
  max-width: 620px;
}

.hero-copy[data-copy="zh"] h1 {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(52px, 14vw, 96px);
  letter-spacing: -0.025em;
  line-height: 1;
}

.hero-copy[data-copy="zh"] .tagline {
  font-size: clamp(19px, 4vw, 26px);
  letter-spacing: 0;
  line-height: 1.45;
}

.hero-copy[data-copy="zh"] .description {
  line-height: 1.8;
}

.policy-main {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 88px) clamp(20px, 5vw, 56px) 72px;
}

.policy-copy {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.72;
}

.policy-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5.4vw, 58px);
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-align: left;
}

.policy-copy .effective-date {
  margin: 0 0 42px;
  color: var(--accent);
  font: 400 12px/1.5 ui-monospace, Menlo, monospace;
}

.policy-copy h2 {
  margin: 34px 0 10px;
  color: var(--ink-strong);
  font-family: Newsreader, Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.25;
}

.policy-copy p,
.policy-copy ul {
  margin: 0 0 16px;
}

.policy-copy ul {
  padding-left: 1.35em;
}

.policy-copy li + li {
  margin-top: 8px;
}

.policy-copy strong {
  color: var(--ink);
}

.policy-copy[data-copy="zh"] {
  line-height: 1.85;
}

.policy-copy[data-copy="zh"] h1,
.policy-copy[data-copy="zh"] h2 {
  font-family: Newsreader, "Songti SC", Georgia, serif;
}

.download-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 clamp(22px, 6vw, 30px);
  border-radius: 999px;
  background: var(--button);
  box-shadow: 0 3px 14px rgb(58 46 30 / 26%);
  color: var(--background);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 150ms ease, box-shadow 150ms ease,
    transform 150ms ease;
}

.download-button:hover {
  background: var(--button-hover);
  box-shadow: 0 5px 18px rgb(58 46 30 / 34%);
  color: var(--background);
  transform: translateY(-1px);
}

.download-button:active {
  transform: translateY(0);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.65em;
  color: var(--accent);
  font: 400 12px/1.5 ui-monospace, Menlo, monospace;
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  min-height: 59px;
  border-top: 6px solid #5c4632;
  padding: 16px clamp(20px, 5vw, 56px);
  background: var(--footer-background);
  color: var(--accent);
  font-size: 12.5px;
}

.domain {
  font: 400 12px/1 ui-monospace, Menlo, monospace;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.language-option:focus-visible,
.wordmark:focus-visible,
.download-button:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-footer {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .footer-links {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 20px;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-option,
  .download-button {
    transition: none;
  }
}
