:root {
  color-scheme: light;
  --paper: #F2F0EA;
  --paper-2: #E9E6DD;
  --card: #FCFBF8;
  --ink: #2A292E;
  --muted: #6B6862;
  --line: #DDD8CC;
  --red: #E0493F;
  --yellow: #E3B23C;
  --blue: #3A5BBE;
  --orange: #EE8A2B;
  --radius: 22px;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
mark.todo { background: #FFE58A; color: #5A4300; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font: 600 .8rem/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  background: var(--ink); color: var(--card);
  font: 600 1.02rem/1 var(--body); text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--card); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(42, 41, 46, .18); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(242, 240, 234, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.35rem/1 var(--display); }
.logo:hover { color: var(--ink); }
.logo svg { flex-shrink: 0; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; }
.nav nav a:not(.btn):hover { color: var(--orange); }

/* hero */
.hero { padding: 56px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.art {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(42, 41, 46, .28);
}
.art svg { width: 100%; height: auto; }

/* Shapes drift gently and the center "tap" sends out ripples. Everything rests visible. */
.float { animation: float 6s ease-in-out infinite; }
.f2 { animation-delay: -2s; }
.f3 { animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.ripple { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ripple 2.8s ease-out infinite; }
.r2 { animation-delay: 1.4s; }
@keyframes ripple { 0% { transform: scale(.35); opacity: .45; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .float, .ripple { animation: none; }
  .r1 { opacity: .25; }
}

/* sections */
.section { padding: 88px 0; }
.section-tint { background: var(--paper-2); }
.section-head { margin-bottom: 36px; }
.section-head .lead { margin-top: 8px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; }
.dot { display: block; width: 14px; height: 14px; border-radius: 50%; margin-bottom: 18px; }
.dot-red { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-blue { background: var(--blue); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px; }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt { font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: .95rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid p { margin: 0 0 6px; }
.footer-brand { font: 700 1.2rem/1.2 var(--display); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--orange); }

/* documents */
.doc { padding-top: 48px; padding-bottom: 88px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.2em; scroll-margin-top: 90px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 24px; margin: 28px 0; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { margin: .2em 0; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: 12px; padding: 18px 22px; margin: 24px 0 8px; }
.callout ul { margin: 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 650; list-style: none; position: relative; padding-right: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }
.not-found { text-align: center; padding-top: 80px; }
.not-found .lead { margin: 0 auto 28px; }
.big-404 { font: 700 6rem/1 var(--display); color: var(--line); margin-bottom: 12px; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 560px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .logo { font-size: 1.2rem; gap: 8px; }
  .logo svg { width: 34px; height: 34px; }
  .nav nav { gap: 14px; font-size: .95rem; }
  .btn-small { min-height: 36px; padding: 0 14px; font-size: .9rem; }
  .hero { padding: 32px 0 64px; }
  .section { padding: 64px 0; }
  .toc ol { columns: 1; }
}
