/* Aten School — atenschool.com
   Palette measured from the logo (navy #05345F, gold #D4A73D). Type echoes the lockup:
   Marcellus for the inscriptional "ATEN", Jost for the tracked geometric "SCHOOL".
   Single light theme by choice: the logo artwork sits on white. */

:root {
  color-scheme: light;
  --navy: #05345f;
  --navy-deep: #0a2442;
  --ink: #15263b;
  --muted: #4b5b70;
  --gold: #d4a73d;
  --gold-bright: #e3b74b;
  --gold-ink: #8a6512;
  --gold-wash: #fbf3de;
  --gold-line: #ead39a;
  --paper: #ffffff;
  --wash: #f4f6f9;
  --line: #dce2ea;
  --line-strong: #c5cfdb;
  --on-navy: #e9eef4;
  --on-navy-muted: #c3cedb;

  --serif: "Marcellus", "Trajan Pro", "Optima", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", Roboto, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.2rem, 1.4rem + 3.6vw, 3.6rem);
  --step-5: clamp(2.4rem, 1.5rem + 3.8vw, 3.7rem);

  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--navy-deep); text-decoration-color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy-deep);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
p + p { margin-top: 1em; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--navy); color: #fff; padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ---------- Masthead: the crest, the horizon, the nav ---------- */

.masthead { background: var(--paper); text-align: center; padding-top: clamp(18px, 3vw, 30px); }

.crest { display: inline-block; border-radius: 4px; }
.crest img { width: clamp(118px, 22vw, 168px); margin-inline: auto; } /* transparent lockup, cleaned from the source artwork */

.horizon {
  height: 2px;
  margin: clamp(12px, 2vw, 18px) auto 0;
  max-width: 1120px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--gold) 44%, var(--gold) 56%, var(--line) 88%, transparent);
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .horizon { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { transform: scaleX(0.35); opacity: 0.5; } to { transform: scaleX(1); opacity: 1; } }
}

.primary ul {
  list-style: none; margin: 0; padding: 12px var(--gutter) 14px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(18px, 3.4vw, 40px);
}
.primary a {
  display: inline-block;
  padding: 8px 2px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.primary a:hover { border-bottom-color: var(--line-strong); }
.primary a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--navy-deep); }

/* ---------- Home hero ---------- */

.hero { padding-block: clamp(36px, 6vw, 80px) var(--section); border-top: 1px solid var(--line); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 { font-size: var(--step-5); margin-top: 14px; }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--muted); margin-top: 22px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 32px; }

.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1px solid var(--navy);
}
.button:hover { background: var(--navy-deep); color: #fff; }
.textlink { font-weight: 500; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* The example record: the one lifted object on the page */
.record {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 var(--line), 0 22px 44px -28px rgba(5, 52, 95, 0.45);
}
.record-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--wash); border-bottom: 1px solid var(--line);
}
.record-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); }
.record-meta { font-size: var(--step--1); color: var(--muted); }
.record-objective { padding: 18px 20px 14px; }
.record-objective .eyebrow { font-size: 0.72rem; }
.record-objective p:last-child { font-family: var(--serif); font-size: var(--step-1); line-height: 1.35; color: var(--navy-deep); margin-top: 6px; }
.entries { list-style: none; margin: 0; padding: 0; }
.entries li {
  display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 14px;
  padding: 13px 20px; border-top: 1px dashed var(--line);
}
.entry-date { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; padding-top: 2px; }
.entry-note { font-size: 0.97rem; line-height: 1.5; }
.chip {
  display: inline-block; margin-top: 7px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  padding: 5px 8px; border-radius: 2px; border: 1px solid var(--line-strong); color: var(--muted);
}
.chip-independent { color: var(--gold-ink); background: var(--gold-wash); border-color: var(--gold-line); }
.record-decision { background: var(--navy); color: var(--on-navy); padding: 16px 20px; display: grid; gap: 4px; }
.record-decision strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); color: var(--gold-bright); letter-spacing: 0.02em; }
.record-decision span { font-size: 0.95rem; color: var(--on-navy-muted); line-height: 1.5; }
.record-note { font-size: var(--step--1); color: var(--muted); margin-top: 12px; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-wash { background: var(--wash); }
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-4); margin-top: 12px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); margin-top: 16px; line-height: 1.6; }

.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 56px) clamp(32px, 6vw, 80px); }
.pillar h3 { font-size: var(--step-2); }
.pillar h3::before { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); margin-bottom: 18px; }
.pillar p { margin-top: 12px; color: var(--ink); max-width: 36em; }

.band { background: var(--navy-deep); color: var(--on-navy); padding-block: var(--section); }
.band .eyebrow { color: var(--gold-bright); }
.band h2 { color: #fff; font-size: var(--step-4); margin-top: 12px; max-width: 18em; }
.band p { color: var(--on-navy-muted); font-size: var(--step-1); line-height: 1.6; margin-top: 18px; max-width: 38em; }
.band a { color: #fff; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.band a:hover { color: var(--gold-bright); }

/* ---------- Inner pages ---------- */

.page-head { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: var(--step-4); margin-top: 12px; max-width: 16em; }
.page-head .lede { max-width: 38em; }

.split {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: 18px clamp(32px, 6vw, 80px);
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.split:first-child { border-top: 0; }
.split h2 { font-size: var(--step-3); }
.split .body { max-width: 40rem; }
.split .body > * + * { margin-top: 1em; }

.definition { background: var(--wash); border: 1px solid var(--line); padding: clamp(20px, 3vw, 30px); }
.definition .term { font-family: var(--serif); font-size: var(--step-3); color: var(--navy-deep); line-height: 1.1; }
.definition .term small { font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin-left: 10px; }
.definition p + p { margin-top: 10px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line-strong); }
.steps li { counter-increment: step; padding: 22px 22px 22px 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: var(--step-3); color: var(--gold); line-height: 1; margin-bottom: 12px; }
.steps h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 600; color: var(--navy-deep); letter-spacing: 0.01em; }
.steps p { margin-top: 8px; font-size: 0.97rem; color: var(--ink); }
.aside { margin-top: 18px; font-size: 0.97rem; color: var(--muted); max-width: 44em; }

.parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); margin: 0; }
.parts div { padding-block: 16px; border-top: 1px solid var(--line); }
.parts dt { font-weight: 600; color: var(--navy-deep); }
.parts dd { margin: 4px 0 0; color: var(--ink); font-size: 0.97rem; }

.subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); margin: 0; }
.subjects div { padding-block: 20px 22px; border-top: 1px solid var(--line); }
.subjects dt { font-family: var(--serif); font-size: var(--step-2); color: var(--navy-deep); line-height: 1.2; }
.subjects dd { margin: 8px 0 0; color: var(--ink); max-width: 34em; }

.ledger-wrap { overflow-x: auto; margin-top: 8px; }
.ledger { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.97rem; }
.ledger th, .ledger td { text-align: left; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
.ledger thead th { border-top: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.ledger tbody th { font-weight: 500; color: var(--navy-deep); width: 38%; }
.pill { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 8px; border-radius: 2px; line-height: 1; white-space: nowrap; }
.pill-mapped { background: var(--navy); color: #fff; }
.pill-referenced { background: var(--gold-wash); color: var(--gold-ink); border: 1px solid var(--gold-line); }
.pill-planned { color: var(--muted); border: 1px solid var(--line-strong); }
.ledger .detail { display: block; color: var(--muted); font-size: var(--step--1); font-weight: 400; margin-top: 6px; }

.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); }
.principles li { padding-block: 18px; border-top: 1px solid var(--line); }
.principles strong { display: block; font-weight: 600; color: var(--navy-deep); }
.principles span { display: block; margin-top: 4px; font-size: 0.97rem; }

.addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); margin-top: 8px; }
.address { padding-block: 22px; border-top: 1px solid var(--line-strong); }
.address .eyebrow { display: block; }
.address a { display: inline-block; margin-top: 10px; font-family: var(--serif); font-size: var(--step-2); color: var(--navy-deep); overflow-wrap: anywhere; text-decoration-color: var(--gold); }
.address p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }

/* ---------- Footer ---------- */

.site-foot { background: var(--wash); border-top: 1px solid var(--line); padding-block: 44px 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px 48px; align-items: start; }
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--navy); line-height: 1; }
.wordmark .w-aten { font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0.08em; }
.wordmark .w-school { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.52em; margin-top: 6px; padding-left: 0.1em; }
.foot-tag { margin-top: 14px; color: var(--muted); font-size: 0.95rem; max-width: 22em; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-list a { text-decoration: none; color: var(--navy); }
.foot-list a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.foot-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.small-print { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pillars, .parts, .subjects, .principles, .addresses { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .entries li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
