:root {
  color-scheme: light;
  --paper: #fffaf4;
  --paper-deep: #f7ecdf;
  --ink: #302820;
  --muted: #71655a;
  --line: #dfd1c2;
  --accent: #b65f46;
  --accent-soft: #f2d7ca;
  --green: #527263;
  --shadow: 0 18px 50px rgba(75, 52, 34, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 2%, rgba(242, 215, 202, 0.72), transparent 28rem),
    linear-gradient(180deg, var(--paper), #fff 38rem);
  line-height: 1.7;
}

a { color: var(--accent); text-underline-offset: 3px; }

.shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(223, 209, 194, 0.75);
  background: rgba(255, 250, 244, 0.9);
  backdrop-filter: blur(18px);
}

.bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -0.02em; }
.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 7px 18px rgba(182, 95, 70, 0.28);
}
.mark::before { content: "∿"; font-size: 23px; line-height: 1; transform: translateY(-1px); }

nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 16px; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
.lang { padding-left: 14px; border-left: 1px solid var(--line); font-weight: 650; }

main { padding: 70px 0 96px; }

.hero { max-width: 720px; margin-bottom: 54px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 7vw, 66px); line-height: 1.08; letter-spacing: -0.055em; }
.lead { margin: 22px 0 0; max-width: 650px; color: var(--muted); font-size: clamp(18px, 2.8vw, 22px); line-height: 1.65; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0 60px; }
.quick-card {
  min-height: 138px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.74);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}
.quick-card b { display: block; margin-bottom: 7px; font-size: 18px; }
.quick-card span { color: var(--muted); font-size: 14px; }

.document {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
}
.document h1 { font-size: clamp(34px, 5.5vw, 52px); }
.document h2 { margin: 2.25em 0 0.55em; font-size: 23px; line-height: 1.3; letter-spacing: -0.025em; }
.document h3 { margin: 1.65em 0 0.4em; font-size: 18px; }
.document p, .document li { color: #51483f; }
.document ul { padding-left: 1.25em; }
.document li + li { margin-top: 8px; }
.meta { margin: 12px 0 34px; color: var(--muted); font-size: 14px; }
.note { padding: 18px 20px; border-left: 4px solid var(--green); border-radius: 0 14px 14px 0; background: #eff6f1; }

footer { padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .bar { align-items: flex-start; padding: 14px 0; }
  nav { max-width: 56%; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 0; }
  main { padding-top: 46px; }
}

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

