@import url('/shared-ui.css');

:root {
  --paper: #f4ecdd;
  --paper-light: #fbf6eb;
  --paper-deep: #e8dbc4;
  --ink: #24221d;
  --muted: #6f675a;
  --line: #877154;
  --line-light: rgba(111, 89, 57, .24);
  --indigo: #24434b;
  --indigo-deep: #182f35;
  --vermilion: #78372c;
  --mist: #dce0d7;
  --focus: #9f4c2f;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% 19%, rgba(87,65,39,.075) 0 1px, transparent 1.4px),
    radial-gradient(circle at 86% 32%, rgba(87,65,39,.05) 0 1px, transparent 1.4px),
    linear-gradient(125deg, rgba(255,255,255,.38), transparent 38%, rgba(90,68,45,.055));
  background-size: 23px 21px, 31px 35px, 100% 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(78,60,37,.015) 7px 8px);
  content: "";
  pointer-events: none;
}
a { color: var(--indigo); text-decoration-color: rgba(38,61,69,.5); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header, main, footer { width: min(100% - 40px, 760px); margin: 0 auto; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0 20px;
  border-top: 8px double var(--ink);
  border-bottom: 1px solid var(--line-light);
}
.brand { color: var(--ink); font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .1em; text-decoration: none; }
.site-header nav, footer nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.hero {
  position: relative;
  padding: 92px 0 96px;
  border-bottom: 1px solid var(--line-light);
}
.hero::before { position: absolute; top: 155px; left: -16px; width: 5px; height: 68px; background: var(--vermilion); content: ""; }
.eyebrow, .section-kicker { margin: 0 0 16px; color: var(--vermilion); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.eyebrow::before, .section-kicker::before { content: "— "; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 700; letter-spacing: .08em; line-height: 1.42; text-wrap: balance; }
h1 { max-width: 720px; margin: 0; font-size: clamp(34px,5vw,46px); letter-spacing: .05em; word-break: keep-all; overflow-wrap: normal; }
h2 { margin: 0 0 34px; font-size: clamp(30px,5.5vw,40px); }
h3 { margin: 0; font-size: 21px; }
.hero-lead { max-width: 34em; margin: 32px 0 30px; letter-spacing: .025em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual {
  max-width: 690px;
  margin: 46px auto 0;
  padding: 7px;
  border: 1px solid rgba(79,62,39,.46);
  background: rgba(251,246,235,.74);
  box-shadow: 6px 7px 0 rgba(77,59,37,.10);
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(79,62,39,.26);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  letter-spacing: .045em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.button:hover { box-shadow: 3px 4px 0 rgba(42,34,23,.28); transform: translate(-1px,-1px); }
.button:active { box-shadow: none; transform: translate(1px,1px); }
.button-primary { background: var(--indigo); color: #f9f3e7; box-shadow: 2px 3px 0 rgba(42,34,23,.22); }
.button-primary:hover { background: var(--indigo-deep); }
.button-secondary { border-color: var(--indigo); background: transparent; color: var(--indigo); }
.button-secondary:hover { background: rgba(38,61,69,.08); }
.section { position: relative; padding: 92px 0 96px; border-bottom: 1px solid var(--line-light); }
.section-heading { margin-bottom: 34px; }
.section-intro { max-width: 34em; margin: -12px 0 0; color: var(--muted); }
.featured-list { display: grid; gap: 18px; margin-top: 32px; border-top: 1px solid var(--line); }
.story {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 40px;
  gap: 20px;
  align-items: center;
  padding: 30px 8px 30px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background .16s ease, padding .16s ease;
}
.story:hover { padding-left: 8px; background: rgba(255,253,247,.36); }
.story-meta { color: var(--muted); font-size: 12px; line-height: 1.6; }
.story h3 { margin: 0 0 8px; font-size: clamp(24px,4.2vw,31px); }
.story p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.story-arrow { color: var(--vermilion); font-family: var(--serif); font-size: 28px; text-align: right; }
.text-link { display: inline-block; margin-top: 26px; font-weight: 700; }
.worksheet-box {
  padding: 34px 36px;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--indigo);
  background: rgba(220,224,215,.54);
}
.worksheet-box h2 { margin: 8px 0 20px; font-size: clamp(28px,4.8vw,38px); }
.worksheet-box p { max-width: 34em; margin: 0; }
.worksheet-box .button { margin-top: 22px; }
.small-note { margin-top: 14px !important; color: var(--muted); font-size: 13px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 42px; }
.about-grid h2 { position: relative; font-size: clamp(28px,4vw,38px); }
.about-grid h2::after { display: block; width: 46px; height: 2px; margin-top: 24px; background: var(--vermilion); content: ""; }
.about-grid p { margin-top: 0; }
footer { padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 10px; }
@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { padding: 66px 0 70px; }
  .hero::before { top: 123px; left: -10px; height: 58px; }
  .hero-visual { margin-top: 34px; padding: 5px; box-shadow: 4px 5px 0 rgba(77,59,37,.10); }
  .section { padding: 68px 0 72px; }
  .story { grid-template-columns: 1fr; gap: 9px; padding: 24px 0; }
  .story:hover { padding-left: 0; }
  .story-arrow { display: none; }
  .worksheet-box { padding: 28px 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .button { width: 100%; }
}
