/* educated.org.uk — shared styles */

:root {
  --paper: #fbf7ef;
  --ink: #2b2420;
  --ink-soft: #423a30;
  --muted: #5a5040;
  --muted-2: #7a6e5c;
  --line: #e6dcc8;
  --line-strong: #d9c9a3;
  --floor: #b5502e;
  --room: #3a7d5c;
  --border-c: #3a63a8;
  --door: #9a4fa0;
  --floor-tint: #f5e4d5;
  --room-tint: #e1efe5;
  --border-tint: #e2e9f5;
  --door-tint: #f2e2f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  min-height: 100vh;
}

::selection { background: #f0d9b8; }

a { color: var(--floor); text-decoration: none; }
a:hover { color: #8a3a1f; text-decoration: underline; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-enter { /* animation: fadeUp 0.4s ease; */ }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,247,239,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.wordmark {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark span { color: var(--floor); }

.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-link:hover { text-decoration: none; color: var(--ink); }
.nav-link.active { background: var(--ink); color: var(--paper); }

/* HERO / HOME */
.eyebrow {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--muted-2);
  font-size: 17px;
  margin-bottom: 18px;
}

.eyebrow-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--floor);
  margin-bottom: 14px;
}

h1.display {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.02;
  margin: 0 0 44px;
  letter-spacing: -0.02em;
}

.dict {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.dict-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 30px 0;
}
.dict-row + .dict-row { border-top: 1px solid var(--line); }
.dict-label {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 34px;
  width: 64px;
  flex-shrink: 0;
}
.dict-label.adj { color: var(--floor); }
.dict-label.v { color: var(--room); }
.dict-text {
  flex: 1;
  min-width: 240px;
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  padding-top: 4px;
}

.lede-small {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.3;
  color: var(--floor);
  margin-bottom: 10px;
}
.lede-big {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.body-text {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.pullquote {
  border-left: 3px solid var(--line-strong);
  padding-left: 24px;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: #4a4032;
}

.dark-band { background: var(--ink); padding: 64px 28px; }
.dark-band-label {
  color: var(--line-strong);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.dark-band-text {
  color: var(--paper);
  font-family: 'Lora', serif;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.4;
  font-weight: 500;
}
.dark-band-text.statement {
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
}

.section-heading {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 40px;
  line-height: 1.6;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 600px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

.card {
  border-radius: 18px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  display: block;
  color: var(--ink);
}
.card:hover { text-decoration: none; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.card-icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.card-title { font-family: 'Lora', serif; font-weight: 700; font-size: 22px; color: var(--ink); }
.card-tagline { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 16px; min-height: 66px; }
.card-cta { font-size: 14px; font-weight: 700; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: inline-block;
}
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* PILLAR PAGES */
.pillar-hero { padding: 80px 28px 20px; }
.pillar-intro {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 500;
}
.pillar-quote-wrap { padding: 20px 28px 0; }
.pillar-quote {
  border-radius: 16px;
  padding: 28px 30px;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 8px;
}
.pillar-sections { padding: 20px 28px 80px; }
.pillar-section { border-top: 1px solid var(--line); padding: 34px 0; }
.pillar-section-title { font-family: 'Lora', serif; font-weight: 700; font-size: 24px; color: var(--ink); margin-bottom: 16px; }
.pillar-section-body { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.pillar-section-body p { margin: 0 0 16px; }

.next-band { padding: 56px 28px; }
.next-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.next-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.next-name { font-family: 'Lora', serif; font-weight: 700; font-size: 26px; color: var(--ink); }
.next-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* PRINCIPLES */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.cat-tab {
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-tab.active { background: var(--ink); color: var(--paper); }

.principle-list { display: flex; flex-direction: column; gap: 14px; }
.principle-card {
  cursor: pointer;
  border-radius: 14px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--ink);
}
.principle-row { display: flex; gap: 18px; align-items: baseline; }
.principle-num { font-size: 13px; font-weight: 700; flex-shrink: 0; width: 28px; }
.principle-text { font-family: 'Lora', serif; font-size: 18px; line-height: 1.55; color: var(--ink); flex: 1; }
.principle-icon { font-size: 18px; flex-shrink: 0; }
.principle-explain {
  display: none;
  margin: 14px 0 0 46px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.principle-card.open .principle-explain { display: block; }

/* LIBRARY */
.doc-list { display: flex; flex-direction: column; gap: 16px; }
.doc-card {
  border-radius: 16px;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.doc-title { font-family: 'Lora', serif; font-weight: 700; font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.doc-subtitle { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.doc-blurb { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.doc-badge {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  white-space: nowrap;
}

/* ABOUT */
.blunt-list { display: flex; flex-direction: column; gap: 22px; }
.blunt-item {
  border-left: 4px solid var(--ink);
  padding-left: 20px;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 28px;
  text-align: center;
  font-size: 14px;
  color: var(--muted-2);
}
