:root {
  color-scheme: light;
  --ink: #221b18;
  --muted: #685f59;
  --paper: #fffaf0;
  --card: rgba(255, 255, 255, 0.9);
  --line: #ead8bd;
  --accent: #ef476f;
  --accent-dark: #bd274b;
  --gold: #ffc857;
  --blue: #3a86ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 200, 87, 0.35), transparent 26rem),
    linear-gradient(135deg, #fff9e9, #fff3d8 55%, #fce8c5);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--gold);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 22px;
}

nav { display: flex; flex-wrap: wrap; gap: 18px; }
nav a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 64px 0 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; }
h1 { margin: 0 0 18px; font-size: clamp(42px, 8vw, 78px); letter-spacing: -0.055em; }
h2 { margin-top: 38px; font-size: 25px; letter-spacing: -0.025em; }
h3 { margin-top: 28px; font-size: 18px; }

.lead { max-width: 650px; color: var(--muted); font-size: 19px; }

.puzzle-card {
  display: grid;
  aspect-ratio: 1;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 22px;
  transform: rotate(2deg);
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: #fff;
  box-shadow: 12px 12px 0 var(--ink);
}

.puzzle-card span { border-radius: 16px; background: var(--gold); }
.puzzle-card span:nth-child(2), .puzzle-card span:nth-child(6) { background: var(--accent); }
.puzzle-card span:nth-child(4), .puzzle-card span:nth-child(8) { background: var(--blue); }
.puzzle-card span:nth-child(5) { display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 36px; }

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 64px;
}

.link-card, .document {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(73, 46, 20, 0.08);
}

.link-card { padding: 26px; text-decoration: none; }
.link-card strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 20px; }
.link-card span { color: var(--muted); }

.document { margin: 28px 0 64px; padding: clamp(24px, 5vw, 58px); }
.document h1 { font-size: clamp(34px, 6vw, 54px); }
.document p, .document li { color: #3e3631; }
.document .meta { margin-bottom: 32px; color: var(--muted); font-size: 14px; }
.document table { width: 100%; border-collapse: collapse; }
.document th, .document td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.document th { background: #fff2d9; }

.notice {
  padding: 16px 18px;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  background: #fff1f4;
}

footer {
  padding: 24px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 22px; }
footer p { margin: 0; }
footer .footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; padding-top: 38px; }
  .puzzle-card { width: min(360px, 85vw); margin: 0 auto; }
  .links-grid { grid-template-columns: 1fr; }
  .document { margin-top: 12px; }
}

