:root {
  color-scheme: light;
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --ink: #34251e;
  --muted: #75665d;
  --line: #e8ddd2;
  --coffee: #6f422d;
  --caramel: #c8894c;
  --sage: #66816b;
  --foam: #f2e7d8;
  --shadow: 0 18px 50px rgba(74, 47, 33, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 7% 0%, rgba(200, 137, 76, .12), transparent 26rem),
    radial-gradient(circle at 96% 25%, rgba(102, 129, 107, .10), transparent 28rem),
    var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 17px;
  line-height: 1.82;
}

main { width: min(820px, 100%); margin: 0 auto; padding: 28px 28px 56px; }
nav, footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
nav { padding: 10px 0 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 13px; background: var(--coffee); color: #fff; font-family: "Songti SC", serif; box-shadow: 0 8px 22px rgba(111, 66, 45, .2); }
nav .links { display: flex; gap: 18px; font-size: .86rem; }
a { color: var(--coffee); text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { color: #4c2e21; }
a:focus-visible, summary:focus-visible { outline: 3px solid rgba(200, 137, 76, .55); outline-offset: 5px; border-radius: 5px; }

.hero { padding: 54px 0 18px; }
.eyebrow { margin: 0 0 12px; color: var(--sage); font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 0 0 16px; font-family: "Songti SC", "STSong", serif; font-size: clamp(2.25rem, 7vw, 4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.16; }
.lead { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.meta { margin: 14px 0 0; color: var(--muted); font-size: .84rem; }

aside {
  position: relative;
  margin: 30px 0 40px;
  padding: 22px 24px 22px 28px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
aside::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--caramel), var(--sage)); }
h2 { margin: 42px 0 12px; font-size: 1.22rem; line-height: 1.45; }
h3 { margin: 26px 0 8px; font-size: 1rem; }
p { margin: 12px 0; }
ul { margin: 12px 0; padding-left: 1.25rem; }
li { margin: 7px 0; }
strong { color: #2b1d17; }

.card {
  margin: 18px 0;
  padding: 4px 24px 20px;
  background: rgba(255, 253, 249, .82);
  border: 1px solid var(--line);
  border-radius: 20px;
}
details { padding: 20px 0; border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 12px 0;
  padding: 11px 20px;
  background: var(--coffee);
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 26px rgba(111, 66, 45, .18);
  font-weight: 650;
  text-decoration: none;
}
.button:hover { color: #fff; background: #4f3022; }
section[lang="en"] { margin-top: 58px; padding-top: 22px; border-top: 1px solid var(--line); }
footer { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

@media (max-width: 560px) {
  main { padding: 18px 20px 42px; }
  .hero { padding-top: 40px; }
  aside { padding: 18px 18px 18px 22px; }
  .card { padding-inline: 18px; }
  nav .links { width: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero, aside, .card { animation: arrive .55s ease-out both; }
  aside { animation-delay: .06s; }
  .card { animation-delay: .1s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
