/* ============================================================
   erinthornton.co.uk — stylesheet
   Palette: cool paper / ink / pine green (interactive) /
   amber (means "current" only). No decorative colour.
   Type: Literata (display + italic intro) · Public Sans (body)
         · IBM Plex Mono (labels, dates, tags)
   ============================================================ */

:root {
  --paper: #F7F8F6;
  --card: #FFFFFF;
  --ink: #1A1F1D;
  --moss: #545D58;      /* secondary text / mono labels — AA on paper */
  --pine: #1E5C4A;      /* accent 1: interactive (links, active, focus) */
  --pine-dark: #164536;
  --amber: #8F6210;     /* accent 2: "current" status only */
  --line: #DCE0DA;

  --display: "Literata", Georgia, serif;
  --body: "Public Sans", -apple-system, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --max: 62rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: baseline; justify-content: space-between;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.brand {
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--pine); }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--moss); text-decoration: none;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--pine); border-bottom-color: var(--pine); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--moss); margin: 0 0 1rem;
}
.intro-line {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 1.15rem; color: var(--moss); margin: 0 0 1.2rem;
}
.meta {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.05em;
  color: var(--moss);
}

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 46rem) {
  .hero .wrap { grid-template-columns: 3fr 2fr; gap: 3.5rem; }
}
.hero-portrait img {
  border-radius: 4px;
  border: 1px solid var(--line);
}
.hero p { max-width: 34em; }

/* ---------- sections ---------- */
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line); }

.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.4rem 1.4rem 1.5rem;
}
.card h3 { margin-top: 0.2rem; }
.card p { margin-bottom: 0; font-size: 0.98rem; }

/* ---------- signature: five-dimension rail ----------
   Numbering here is honest: these are the five named
   dimensions of the agentic AI governance model. */
.dimensions { margin-top: 1.75rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.dimension {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem;
  align-items: baseline; padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
.dimension .num {
  font-family: var(--mono); font-size: 0.85rem; color: var(--pine); letter-spacing: 0.1em;
}
.dimension .name {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 3vw, 1.6rem);
}
@media (min-width: 46rem) {
  .dimensions { grid-template-columns: repeat(5, 1fr); border-top: none; }
  .dimension {
    grid-template-columns: 1fr; gap: 0.4rem; padding: 1rem 1.1rem 1.2rem;
    border-bottom: none; border-left: 1px solid var(--line);
  }
  .dimension:first-child { border-left: none; padding-left: 0; }
}

/* ---------- "now" panel — amber means current ---------- */
.now-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.5rem 1.6rem; margin-top: 1.5rem;
}
.now-panel .eyebrow { color: var(--amber); margin-bottom: 0.8rem; }
.now-panel ul { margin: 0; padding-left: 1.1rem; }
.now-panel li { margin-bottom: 0.45rem; }
.now-panel li:last-child { margin-bottom: 0; }

/* ---------- career timeline ---------- */
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 0.45em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--moss);
}
.timeline li.current::before { border-color: var(--amber); background: var(--amber); }
.timeline .role { font-weight: 600; }
.timeline p { margin: 0.25rem 0 0; font-size: 0.97rem; max-width: 38em; }

.figure-note { margin: 1.5rem 0 0; }
.figure-note img { border-radius: 6px; border: 1px solid var(--line); }
.figure-note figcaption { margin-top: 0.5rem; }

/* ---------- speaking ---------- */
.engagement {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  padding: 2rem 0; border-top: 1px solid var(--line);
}
.engagement:first-of-type { border-top: none; padding-top: 1rem; }
@media (min-width: 46rem) { .engagement { grid-template-columns: 3fr 2fr; align-items: start; } }
.engagement img { border-radius: 6px; border: 1px solid var(--line); }
.engagement h2 { margin-bottom: 0.3rem; font-size: 1.35rem; }
.pull-quote {
  border-left: 3px solid var(--pine); margin: 1rem 0 0; padding: 0.2rem 0 0.2rem 1rem;
  font-family: var(--display); font-style: italic; color: var(--moss);
}
.pull-quote cite { display: block; font-family: var(--mono); font-style: normal; font-size: 0.75rem; margin-top: 0.4rem; }

/* ---------- writing ---------- */
.post-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.post-list li { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.post-list h2 { margin: 0.3rem 0 0.4rem; font-size: 1.35rem; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--pine); text-decoration: underline; }
.post-list p { margin: 0; max-width: 42em; }

article.post { padding: clamp(2rem, 5vw, 3.5rem) 0; }
article.post .wrap { max-width: 44rem; }
article.post h1 { margin-bottom: 0.4rem; }
article.post h2 { margin-top: 2rem; }
article.post p, article.post li { max-width: 42em; }
article.post .post-footer {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.refs { font-size: 0.88rem; color: var(--moss); }

/* ---------- contact ---------- */
form { max-width: 34rem; margin-top: 1.5rem; }
.field { margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%; padding: 0.65rem 0.75rem; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--moss); border-radius: 4px;
}
textarea { min-height: 9rem; resize: vertical; }
button[type="submit"] {
  font: inherit; font-weight: 600; color: #fff; background: var(--pine);
  border: none; border-radius: 4px; padding: 0.75rem 1.5rem; cursor: pointer;
}
button[type="submit"]:hover { background: var(--pine-dark); }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: clamp(2rem, 6vw, 4rem);
  padding: 1.75rem 0 2.25rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.site-footer p { margin: 0; font-size: 0.85rem; color: var(--moss); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }
