:root {
  color-scheme: light;
  --ink: #17221f;
  --muted: #596663;
  --paper: #fffaf1;
  --paper-deep: #f5efe3;
  --panel: #fffdf8;
  --line: rgba(23, 34, 31, 0.14);
  --green: #2f6756;
  --green-dark: #193f35;
  --blue: #365f7c;
  --navy: #17365d;
  --gold: #d79b2f;
  --shadow: 0 24px 70px rgba(24, 35, 32, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--panel);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.08rem;
  line-height: 1.75;
}

a { color: inherit; }
h1, h2, p { margin-top: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.93);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-nav a { text-decoration: none; }
.header-nav a:hover, .header-nav a:focus-visible { color: var(--ink); }

.hero {
  display: grid;
  min-height: auto;
  align-items: center;
  padding: clamp(64px, 7vw, 82px) 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 16%, rgba(215, 155, 47, 0.12), transparent 26%),
    linear-gradient(180deg, var(--paper) 0%, #fbf7ee 100%);
}

.hero-logo {
  display: block;
  width: min(400px, 100%);
  height: auto;
  margin: 0 0 clamp(24px, 3vw, 32px);
}

h1 {
  max-width: 900px;
  margin-bottom: clamp(24px, 3vw, 32px);
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--green-dark);
  border-radius: 9px;
  color: #ffffff;
  background: var(--green-dark);
  box-shadow: 0 12px 28px rgba(25, 63, 53, 0.16);
  font-size: 0.96rem;
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.hero-cta:hover, .hero-cta:focus-visible {
  border-color: var(--navy);
  outline: none;
  background: var(--navy);
  transform: translateY(-1px);
}

.story-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 720px);
  gap: clamp(46px, 8vw, 98px);
  justify-content: center;
  align-items: start;
  padding: clamp(76px, 9vw, 116px) 0 clamp(100px, 12vw, 156px);
}

.story-rail {
  position: sticky;
  top: 98px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(24, 35, 32, 0.05);
}

.story-rail a {
  position: relative;
  display: block;
  margin: 0 -10px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.story-rail a:last-child { border-bottom: 0; }
.story-rail a:hover, .story-rail a:focus-visible { background: rgba(47, 103, 86, 0.06); outline: none; }
.story-rail a:hover .rail-title, .story-rail a:focus-visible .rail-title { color: var(--green); }
.story-rail a[aria-current="location"] {
  background: rgba(47, 103, 86, 0.1);
  box-shadow: inset 3px 0 0 var(--gold);
}
.story-rail a[aria-current="location"] .rail-title { color: var(--navy); font-weight: 700; }
.rail-title { display: block; margin-top: 2px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 0.9rem; line-height: 1.2; }

.story-section {
  scroll-margin-top: 92px;
}

.story-section + .story-section {
  margin-top: clamp(92px, 12vw, 150px);
  padding-top: clamp(82px, 10vw, 118px);
  border-top: 1px solid var(--line);
}

.story-heading {
  position: relative;
  margin-bottom: clamp(42px, 7vw, 62px);
  padding-bottom: 26px;
}

.story-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 112px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0 78%, transparent 78% 84%, var(--gold) 84% 100%);
  content: "";
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.story-body p {
  margin-bottom: 1.35em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.14rem, 1.6vw, 1.24rem);
  line-height: 1.78;
}

.story-body p:last-child { margin-bottom: 0; }
.story-body .beat { color: var(--green-dark); font-size: clamp(1.22rem, 1.9vw, 1.34rem); font-weight: 600; line-height: 1.6; }
.story-body .question { color: var(--navy); font-size: clamp(1.18rem, 1.8vw, 1.3rem); font-style: italic; line-height: 1.65; }
.story-body .closing { color: var(--green-dark); font-size: clamp(1.34rem, 2.2vw, 1.58rem); font-weight: 600; line-height: 1.55; }

.story-intro {
  margin-bottom: clamp(82px, 10vw, 118px);
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(24, 35, 32, 0.05);
}

.story-intro h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.story-intro p {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.name-origin {
  margin: 32px 0 38px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--paper);
}

.story-body .name-origin-label {
  margin-bottom: 7px;
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.name-origin h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.38rem, 2.5vw, 1.72rem);
  line-height: 1.25;
}

.story-body .name-origin-copy {
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.governed-steps {
  margin: 30px 0 36px;
  padding: 26px 26px 26px 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

.governed-steps li + li { margin-top: 10px; }

.principle-block {
  margin: 30px 0 36px;
  padding: 26px;
  border-left: 3px solid var(--gold);
  background: var(--paper);
}

.principle-block p {
  margin-bottom: 0.7em;
  color: var(--green-dark);
  font-weight: 600;
  line-height: 1.55;
}

.principle-block p:last-child { margin-bottom: 0; }

.story-action {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.story-action p { margin-bottom: 14px; color: var(--muted); font-family: inherit; font-size: 0.98rem; line-height: 1.6; }

.story-action a {
  color: var(--green-dark);
  font-weight: 780;
  text-decoration: none;
}

.story-action a:hover, .story-action a:focus-visible { color: var(--navy); }

.final-invitation {
  margin-top: 44px;
  padding: clamp(28px, 5vw, 42px);
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-dark), var(--navy));
  box-shadow: var(--shadow);
}

.final-invitation p { margin-bottom: 0; color: rgba(255, 255, 255, 0.82); font-family: inherit; font-size: 1rem; line-height: 1.65; }

.story-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.story-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 9px;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
}

.story-button-primary { border-color: #ffffff; color: var(--green-dark); background: #ffffff; }
.story-button:hover, .story-button:focus-visible { transform: translateY(-1px); }
.tertiary-link { display: inline-block; margin-top: 16px; color: #ffffff; font-weight: 720; text-decoration: none; }
.tertiary-link:hover, .tertiary-link:focus-visible { text-decoration: underline; }

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.9rem;
}

.footer a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--ink); }

@media (max-width: 900px) {
  .story-shell { grid-template-columns: minmax(0, 720px); }
  .story-rail { display: none; }
}

@media (max-width: 1120px) {
  .header-nav { display: none; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .hero { padding: 64px 0 72px; }
  h1 { font-size: clamp(3.5rem, 18vw, 5.3rem); }
  .story-body p { font-size: 1.1rem; line-height: 1.72; }
  .brand span:last-child { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cta, .story-rail a { transition: none; }
}

/* Reading options sit above the section links at both screen sizes. */
.hero-reading-options { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.reading-link { color: var(--green-dark); font-size: .96rem; font-weight: 700; text-underline-offset: 5px; }
.story-rail .story-version-link, .mobile-contents .story-version-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--green-dark);
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.45;
  text-decoration: none;
}
.story-rail .story-version-link:hover, .mobile-contents .story-version-link:hover { background: var(--green); }
.story-rail .story-version-link:focus-visible, .mobile-contents .story-version-link:focus-visible {
  background: var(--green);
  outline: 3px solid #b77b22;
  outline-offset: 5px;
}
.story-rail { max-height: calc(100dvh - 125px); overflow-y: auto; }
.story-rail nav { border-top: 1px solid var(--line); padding-top: 10px; }
.story-rail nav a { padding-block: 12px; }
.story-rail .rail-title { margin-top: 0; line-height: 1.4; }
.mobile-contents .story-version-link { margin: 22px 0 0; }
.mobile-contents nav a { padding-block: 9px; }
.mobile-contents nav a[aria-current="location"] { color: var(--green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.story-short .hero { padding-block: clamp(44px, 6vw, 68px); }
.story-short .story-deck { margin-bottom: 0; }
.story-short .story-shell { padding-top: clamp(44px, 6vw, 72px); }
.story-short h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; }
.story-short .story-heading { margin-bottom: 28px; padding-bottom: 20px; }
.story-short .story-section + .story-section { margin-top: 56px; padding-top: 48px; }
.story-short .story-buttons { margin-bottom: 0; }
@media (max-width: 640px) {
  .hero-reading-options { align-items: flex-start; flex-direction: column; gap: 16px; }
  .story-short .story-section + .story-section { margin-top: 42px; padding-top: 36px; }
}
