:root {
  --bg: #110f0d;
  --bg-deep: #0b0a09;
  --raised: #221c1a;
  --paper: #f6f1e8;
  --ink: #1c1612;
  --button: #c2312b;
  --button-hover: #a82824;
  --gold: #c6a774;
  --bronze: #6b5436;
  --mist: #a79c8e;
  --line: rgba(246, 241, 232, 0.14);
  --serif: "Newsreader", "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --sans: "Outfit", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --nav: 76px;
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

[data-lang="zh"] .en,
[data-lang="zh"] .es,
[data-lang="en"] .zh,
[data-lang="en"] .es,
[data-lang="es"] .zh,
[data-lang="es"] .en { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

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

a { color: inherit; }

button,
input { font: inherit; color: inherit; }

::selection { background: #e7c3b8; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.paper :focus-visible,
.legal :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.paper .eyebrow { color: var(--bronze); }

h1, h2, h3, p, li, blockquote { text-wrap: pretty; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav);
  background: rgba(17, 15, 13, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(246, 241, 232, 0.78);
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--paper); }

.langs {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
}

.langs button {
  border: 0;
  background: transparent;
  color: var(--mist);
  padding: 6px 7px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.langs button[aria-pressed="true"] {
  color: var(--paper);
  box-shadow: inset 0 -1px 0 var(--gold);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.menu-btn .icon-close { display: none; }
.nav.is-open .menu-btn .icon-open { display: none; }
.nav.is-open .menu-btn .icon-close { display: block; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav));
  display: grid;
  background: var(--bg-deep);
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #0b0a09 0%, rgba(11, 10, 9, 0.78) 28%, rgba(11, 10, 9, 0.18) 58%, rgba(11, 10, 9, 0.28) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - var(--nav));
  padding: 48px 20px 56px;
}

.hero h1 {
  margin: 0;
  max-width: 11em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

[data-lang="zh"] .hero h1 {
  letter-spacing: 0;
  max-width: 7em;
}

.hero-lead {
  max-width: 28em;
  margin: 18px 0 0;
  color: rgba(246, 241, 232, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--mist);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.btn:hover { background: var(--button-hover); }

.btn-quiet {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(246, 241, 232, 0.32);
}

.btn-quiet:hover { background: rgba(246, 241, 232, 0.06); }

.section { padding: 92px 0; }

.section h2 {
  margin: 0;
  max-width: 12em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.16;
}

.lede {
  max-width: 36em;
  margin: 16px 0 0;
  color: rgba(246, 241, 232, 0.78);
}

.style-heading {
  margin: 72px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
}

.fine-note {
  margin: 22px 0 0;
  max-width: 46em;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.6;
}

.story-grid {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.story-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-radius: 18px;
  background: var(--raised);
}

.story-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-own img { object-position: center 30%; }

.story-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 78px 22px 20px;
  background: linear-gradient(to top, rgba(11, 10, 9, 0.92) 18%, rgba(11, 10, 9, 0.5) 62%, transparent);
}

.story-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
}

.story-card p {
  margin: 6px 0 0;
  color: rgba(246, 241, 232, 0.82);
}

.paper {
  background: var(--paper);
  color: var(--ink);
}

.paper .lede,
.quote figcaption { color: #5e564e; }

.quote-grid {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}

.quote { margin: 0; }

.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.28;
}

.quote-stack { display: grid; gap: 32px; }
.quote-stack blockquote { font-size: clamp(22px, 2vw, 28px); }

.quote figcaption {
  margin-top: 12px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.steps {
  list-style: none;
  display: grid;
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
}

.steps h3 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
}

.steps p {
  margin: 10px 0 0;
  color: rgba(246, 241, 232, 0.78);
}

.num {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 14px;
}

.style-list {
  list-style: none;
  display: grid;
  gap: 0 32px;
  margin: 56px 0 0;
  padding: 8px 0 0;
}

.style-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.style-list strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
}

.style-list li > span {
  color: var(--mist);
  font-size: 14px;
  text-align: right;
}

.promise-grid {
  display: grid;
  gap: 28px;
}

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.promise-list li {
  padding: 16px 0;
  border-top: 1px solid rgba(28, 22, 18, 0.12);
}

.promise-list strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
}

.promise-list li > span {
  display: block;
  margin-top: 4px;
  color: #5e564e;
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--button);
  font-weight: 500;
}

.close {
  padding-bottom: 28px;
}

.close h2 {
  max-width: 10em;
  font-size: clamp(42px, 6vw, 78px);
}

.close-app {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.close-app img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.close-app p { margin: 0; }

.close-app .fine {
  margin-top: 4px;
  color: var(--mist);
  font-size: 15px;
}

.footer {
  padding: 28px 0 40px;
  color: var(--mist);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer p { margin: 0; }
.footer a { color: rgba(246, 241, 232, 0.82); }
.footer nav { display: flex; gap: 18px; }

.legal {
  padding: 36px 0 88px;
  background:
    radial-gradient(ellipse at top, rgba(198, 167, 116, 0.08), transparent 46%),
    var(--bg);
}

.legal article {
  width: min(740px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
}

.legal h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
}

.legal .updated {
  margin: 12px 0 0;
  color: #5e564e;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal h2 {
  margin: 2.2em 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
}

.legal h3 {
  margin: 1.35em 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
}

.legal ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.legal li {
  margin-top: 8px;
  line-height: 1.75;
}

.legal p { margin: 12px 0 0; font-size: 17px; line-height: 1.75; }
.legal a { color: var(--button); }

@media (min-width: 720px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-card { min-height: 420px; }
  .quote-grid { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .promise-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 42px; }
  .style-list { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1fr min(42vw, 620px);
    min-height: calc(100svh - var(--nav));
  }

  .hero-photo {
    position: relative;
    min-height: 0;
    order: 2;
  }

  .hero-photo::after {
    background: linear-gradient(to right, rgba(11, 10, 9, 0.28), transparent 24%);
  }

  .hero-copy {
    order: 1;
    min-height: calc(100svh - var(--nav));
    padding: 64px 56px 72px max(20px, calc((100vw - var(--wrap)) / 2));
  }

  .story-grid {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: 320px 320px;
  }

  .story-card { min-height: 0; height: 100%; }
  .story-little { grid-column: 1; grid-row: 1 / span 2; }
  .story-love { grid-column: 2; grid-row: 1; }
  .story-pet { grid-column: 3; grid-row: 1; }
  .story-own { grid-column: 2 / span 2; grid-row: 2; }
}

@media (max-width: 800px) {
  .menu-btn { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 22px 16px;
    background: rgba(17, 15, 13, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav-links { display: flex; }
  .nav-links a { width: 100%; padding: 14px 0; font-size: 18px; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .story-card img { transition: transform 800ms ease; }
  .story-card:hover img,
  .story-card:focus-within img { transform: scale(1.04); }
}

@media (max-width: 380px) {
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

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

@media print {
  .nav, .footer, .skip, .hero-actions, .menu-btn { display: none !important; }
  body { background: white; color: black; }
  .legal { background: white; padding: 0; }
  .legal article { width: auto; border-radius: 0; }
}
