/* RE/EDUCATION, LLC. Design tokens first: retune the whole site from this block.
   Palette is paint chart inspired (Farrow & Ball style), drawn from the original logo:
   ochre ground, plum RE, coral /EDUCATION. It shares paper, ink, and Fraunces with
   bryansanders.com so the two sites sit side by side without looking the same. */
:root {
  /* paper and ink (shared family with bryansanders.com) */
  --paper: #f4ecdc;        /* warm limewash white */
  --paper-2: #ece1c8;      /* deeper cream, for bands */
  --card: #fffaf0;
  --ink: #241c26;          /* plum black */
  --ink-soft: #5a4f5c;
  --rule: #d4c6a8;

  /* RE/EDUCATION paints */
  --ochre: #d49d42;        /* the logo ground; think India Yellow */
  --ochre-deep: #b9822c;
  --plum: #5e3769;         /* the RE; think Brinjal */
  --plum-deep: #45264f;
  --coral: #c15050;        /* the /EDUCATION; think Picture Gallery Red, lighter */
  --sage: #8a9a7b;         /* quiet accent; think Lichen */

  --brand: var(--plum);
  --brand-ink: var(--paper);
  --accent: var(--coral);

  /* type */
  --f-display: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Fraunces", Georgia, "Times New Roman", serif;

  /* shape */
  --radius: 6px;
  --shadow: 0 1px 0 rgba(36,28,38,.05), 0 10px 28px -16px rgba(36,28,38,.4);
  --max: 1120px;
  --gutter: clamp(18px, 4vw, 44px);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 20; }
.nowrap { white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(244,236,220,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.top .wrap { max-width: 1360px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.mark { font: 800 22px/1 var(--f-display); letter-spacing: .02em; text-decoration: none; color: var(--coral); white-space: nowrap; }
.mark b { color: var(--plum); font-weight: 800; }
.mark:hover { color: var(--coral); }
.mark { display: inline-flex; align-items: center; gap: 12px; }
.mark-logo { display: block; width: 76px; height: 44px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(36,28,38,.08), 0 1px 0 rgba(36,28,38,.12); flex: none; }
@media (max-width: 420px) {
  .mark { font-size: 19px; gap: 9px; }
  .mark-logo { width: 62px; height: 36px; border-radius: 7px; }
}
.nav { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 22px); white-space: nowrap; font: 600 15px var(--f-display); }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--plum); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu { display: none; }
/* The header carries the logo badge and the wordmark, so the full nav needs about 1240px; below that, the menu. */
@media (max-width: 1320px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font: 700 15px var(--f-display); padding: 8px 12px; border: 2px solid var(--ink); border-radius: var(--radius); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; right: 0; top: 48px; width: min(78vw, 300px); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; gap: 0; }
  .menu[open] .nav a { padding: 10px 8px; border-bottom: 1px solid var(--rule); }
  .menu[open] .nav a:last-child { border-bottom: 0; margin-top: 8px; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: 700 16px/1 var(--f-display); letter-spacing: .01em; padding: 14px 20px; border-radius: var(--radius);
  background: var(--plum); color: var(--paper) !important; text-decoration: none !important; border: 2px solid var(--plum); cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--coral); border-color: var(--coral); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper) !important; }
.btn.small { padding: 10px 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(36px, 5vw, 60px); }
h2 { font-weight: 800; font-size: clamp(28px, 4vw, 42px); }
h3 { font-weight: 700; font-size: 22px; }
.kicker { font: 700 13px var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin: 0 0 14px; }
.lede { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; color: var(--ink-soft); max-width: 38ch; margin: 0; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin-top: 1.6em; }
.muted { color: var(--ink-soft); }

/* ---------- the RE stack: the signature motif ---------- */
.re-stack { margin: 0; padding: 0; list-style: none; font: 800 clamp(40px, 7vw, 88px)/.98 var(--f-display); letter-spacing: -.02em; }
.re-stack li { display: block; color: var(--ink); }
.re-stack .re { color: var(--plum); }
.re-stack .sl { color: var(--coral); }
.re-stack li:nth-child(2) { padding-left: .6em; }
.re-stack li:nth-child(3) { padding-left: 1.2em; }

/* ---------- hero ---------- */
.hero { background: var(--ochre); color: var(--ink); border-bottom: 6px solid var(--plum); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(44px, 7vw, 96px); padding-bottom: clamp(44px, 7vw, 96px); }
.hero .lede { color: var(--ink); }
.hero .kicker { color: var(--plum-deep); }
.hero .btn.ghost { border-color: var(--ink); }
.hero-art { justify-self: end; }
.hero-logo { display: block; width: 440px; height: auto; max-width: 100%; margin: 0 0 clamp(18px, 2.4vw, 30px); }
.hero-art .re-stack { font-size: clamp(36px, 5.2vw, 66px); }
.hero-art .re-stack .re { color: var(--plum); }
.hero-art .re-stack li { color: var(--paper); text-shadow: 0 2px 0 rgba(69,38,79,.25); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; order: -1; }
  .hero-art .re-stack { font-size: clamp(30px, 9vw, 46px); }
  .hero-logo { width: min(84vw, 360px); margin-left: -10px; }
}

/* page hero (inner pages) */
.page-hero { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.page-hero .wrap { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.page-hero .re-stack { font-size: clamp(26px, 3.4vw, 40px); }
.page-hero .re-stack li { color: var(--ink-soft); }
@media (max-width: 820px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero .re-stack { display: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }

.grid { display: grid; gap: 20px; align-content: start; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.four { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow); }
.card p { margin: 0 0 .8em; }
.card p:last-child { margin-bottom: 0; }
a.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-top: 6px solid var(--plum); transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-top-color: var(--coral); color: var(--ink); }
a.card .more { margin-top: auto; padding-top: 12px; font: 700 15px var(--f-display); color: var(--plum); }
a.card:hover .more { color: var(--coral); }
.card .slash { font: 800 15px var(--f-display); color: var(--coral); letter-spacing: .04em; display: block; margin-bottom: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font: 600 15px var(--f-display); background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; }

.ticks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.ticks li { break-inside: avoid; padding: 6px 0 6px 28px; position: relative; border-bottom: 1px solid var(--rule); }
.ticks li::before { content: "/"; position: absolute; left: 6px; top: 4px; font: 800 20px var(--f-display); color: var(--coral); }
@media (max-width: 640px) { .ticks { columns: 1; } }

.pull { margin: 36px 0; padding: 4px 0 4px 24px; border-left: 6px solid var(--ochre); font: 600 clamp(22px, 2.6vw, 28px)/1.35 var(--f-body); font-style: italic; color: var(--plum-deep); max-width: 34ch; }

.byline { font: 700 14px var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* people */
.person { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.person img, .person .initials { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; border: 6px solid var(--card); box-shadow: var(--shadow); }
.initials { display: grid; place-items: center; background: var(--plum); color: var(--paper); font: 800 54px/1 var(--f-display); letter-spacing: .02em; }
.initials.coral { background: var(--coral); }
.person h3 { margin-bottom: 2px; }
.person .creds { font: 600 15px var(--f-display); color: var(--coral); margin: 0 0 10px; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; } }

/* publications */
.pubs { list-style: none; padding: 0; margin: 0; }
.pubs li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.pubs a { font-weight: 600; }
.pubs span { display: block; color: var(--ink-soft); font-size: 16px; }

/* CTA band */
.cta { background: var(--plum); color: var(--paper); }
.cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.cta h2 { color: var(--paper); margin-bottom: .3em; }
.cta p { margin: 0; color: #eadfe9; max-width: 52ch; }
.cta .btn { background: var(--ochre); border-color: var(--ochre); color: var(--ink) !important; }
.cta .btn:hover { background: var(--coral); border-color: var(--coral); color: var(--paper) !important; }
@media (max-width: 720px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- contact form ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: grid; gap: 6px; font: 700 15px var(--f-display); }
.form .opt { font-weight: 400; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  font: 400 17px/1.4 var(--f-body); color: var(--ink); background: var(--card);
  border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--plum); outline: 2px solid rgba(94,55,105,.2); }
.form textarea { min-height: 160px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 15px; color: var(--ink-soft); margin: 0; }
.status { min-height: 1.5em; font: 600 16px var(--f-display); margin: 0; }
.status.ok { color: #2f6b3f; }
.status.err { color: var(--coral); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #d9cfd9; font-size: 16px; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { color: var(--ochre); }
.foot h2 { font: 700 13px var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-logo { display: inline-block; line-height: 0; border-radius: 10px; }
.foot-logo img { display: block; width: 220px; height: auto; border-radius: 10px; }
.foot-logo:hover img { box-shadow: 0 0 0 3px var(--coral); }
.foot .tag { margin: 10px 0 0; font: 600 15px var(--f-display); letter-spacing: .04em; color: #bfb3bf; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid #3d3340; padding-top: 18px; font-size: 14px; color: #a89ca8; }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
