/* ─────────────────────────────────────────────────────────────
   Rachael Nolan — personal site
   Theme: "playbill modern" — poster type, ink & West End red,
   ticket-stub mono for the small print. Sharp edges, no fluff.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #ffffff;
  --paper-deep: #f4f3f0;
  --ink: #14161b;
  --ink-soft: #50535b;
  --line: #e3e2de;
  --accent: #c8102e;        /* West End red */
  --accent-dark: #9d0c24;
  --dark: #14161d;          /* house-lights-down blue-black */
  --dark-soft: rgba(244, 243, 240, 0.75);
  --tint-red: #faf0f1;
  --radius: 2px;
  --max: 1080px;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Libre Franklin", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2 {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; line-height: 1.04; letter-spacing: 0.012em;
}
h3 { font-family: var(--font-body); font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; }

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

/* ── Header / nav ─────────────────────────────────────────── */

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  letter-spacing: 0.03em;
}
.wordmark .dot { color: var(--accent); }
nav.primary { display: flex; gap: 26px; align-items: center; }
nav.primary a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
}
nav.primary a:hover { color: var(--ink); }
nav.primary a.active { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
nav.primary a.btn { border-bottom-color: currentColor; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink);
  border-radius: var(--radius); padding: 6px 10px; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-block; padding: 13px 24px;
  border-radius: var(--radius); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  text-decoration: none; transition: transform .12s ease, background .12s ease, color .12s ease;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--ink); color: var(--paper) !important; }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink) !important; background: transparent; padding: 11px 22px; }
.btn-ghost:hover { background: var(--ink); color: var(--paper) !important; }

/* ── Hero ─────────────────────────────────────────────────── */

.hero { padding: 84px 0 68px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem;
  font-weight: 600; color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before { content: "— "; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); max-width: 16ch; margin-bottom: 24px; }
.hero .lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 34px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .aside-link { font-size: 0.95rem; color: var(--ink-soft); margin-top: 26px; }

/* ── Hero with image ──────────────────────────────────────── */

.hero.with-image .hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center;
}
.hero-img {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: 12px 12px 0 var(--ink);
  aspect-ratio: 4 / 3;
}
.hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.12) contrast(1.04);
}
.hero-img::after {
  /* ink + a breath of red, to tie photography to the poster palette */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(200, 16, 46, 0.10), rgba(20, 22, 29, 0.22));
  pointer-events: none;
}
.hero-img figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 18px 12px; font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(transparent, rgba(20, 22, 29, 0.72));
  z-index: 1;
}

/* ── Full-bleed image band ────────────────────────────────── */

.img-band { position: relative; margin: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.img-band img {
  width: 100%; height: min(46vh, 460px); object-fit: cover;
  filter: grayscale(0.12) contrast(1.04);
}
.img-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(200, 16, 46, 0.08), rgba(20, 22, 29, 0.26));
  pointer-events: none;
}
.img-band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 40px 0 16px;
  background: linear-gradient(transparent, rgba(20, 22, 29, 0.68));
}
.img-band figcaption .wrap {
  color: rgba(255, 255, 255, 0.95); font-size: 0.82rem;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── Sections ─────────────────────────────────────────────── */

section { padding: 68px 0; }
section.tint { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--dark); color: #f4f3f0; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark a { color: #ff5c72; }

.section-head { max-width: 64ch; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
section.dark .section-head p { color: var(--dark-soft); }

/* ── Cards & grids ────────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--paper); border: 1.5px solid var(--ink);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius); padding: 30px 28px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card ul { margin: 14px 0 0 0; padding-left: 0; list-style: none; }
.card li {
  padding: 7px 0 7px 24px; position: relative;
  color: var(--ink-soft); font-size: 0.97rem;
}
.card li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.card .card-cta { margin-top: 20px; }

.audience-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 5px 10px; margin-bottom: 16px;
}

/* steps */
.step { position: relative; border-top: 2px solid var(--ink); padding-top: 18px; }
.step .num {
  font-family: var(--font-display); font-size: 2.7rem;
  color: var(--accent); line-height: 1; margin-bottom: 12px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ── Fine print / note boxes ──────────────────────────────── */

.note {
  border: 1.5px solid var(--ink); background: var(--paper-deep);
  padding: 20px 24px; border-radius: var(--radius);
  font-size: 0.92rem; color: var(--ink-soft); margin-top: 26px;
}
.note .note-label {
  display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent);
  margin-bottom: 8px;
}

/* ── Credits strip ────────────────────────────────────────── */

.credits {
  display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 8px;
}
.credit {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.03em;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 9px 16px; background: var(--paper); color: var(--ink-soft);
}
section.dark .credit { background: transparent; border-color: rgba(244, 243, 240, 0.3); color: rgba(244, 243, 240, 0.9); }

/* ── Case studies ─────────────────────────────────────────── */

.case { display: grid; grid-template-columns: 180px 1fr; gap: 26px; padding: 30px 0; border-top: 1.5px solid var(--ink); }
.case:last-of-type { border-bottom: 1.5px solid var(--ink); }
.case .where {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.07em; padding-top: 7px;
}
.case h3 { font-size: 1.28rem; margin-bottom: 8px; }
.case p { color: var(--ink-soft); font-size: 0.99rem; max-width: 66ch; }

/* ── Timeline (about) ─────────────────────────────────────── */

.timeline { border-left: 2px solid var(--ink); margin: 30px 0 10px 8px; padding-left: 30px; }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -38px; top: 7px;
  width: 12px; height: 12px;
  background: var(--accent); border: 2.5px solid var(--paper);
}
.tl-item .when { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.tl-item h3 { font-size: 1.14rem; margin: 4px 0 6px; }
.tl-item p { color: var(--ink-soft); font-size: 0.96rem; max-width: 62ch; }

/* ── CV download panel ────────────────────────────────────── */

.cv-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cv-card {
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 12px;
}
.cv-card .for { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.cv-card h3 { font-size: 1.28rem; }
.cv-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

/* ── Contact ──────────────────────────────────────────────── */

.contact-block { max-width: 62ch; }
.contact-ways { margin-top: 34px; display: grid; gap: 16px; }
.way {
  display: flex; gap: 16px; align-items: baseline;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 20px 24px;
}
.way .k { font-family: var(--font-mono); font-weight: 600; min-width: 100px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────── */

footer.site {
  background: var(--dark); color: rgba(244, 243, 240, 0.72);
  border-top: 4px solid var(--accent);
  padding: 44px 0; font-size: 0.9rem;
}
footer.site .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site a { color: rgba(255, 255, 255, 0.92); }
footer.site .fineprint { margin-top: 22px; font-size: 0.78rem; font-family: var(--font-mono); color: rgba(244, 243, 240, 0.45); max-width: 78ch; }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 860px) {
  .grid-2, .grid-3, .cv-panel { grid-template-columns: 1fr; }
  .hero.with-image .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-img { aspect-ratio: 16 / 10; box-shadow: 8px 8px 0 var(--ink); }
  .case { grid-template-columns: 1fr; gap: 6px; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav.primary {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: 10px 24px 20px;
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 12px 0; font-size: 0.95rem; width: 100%; }
  nav.primary a.active { border-bottom: none; color: var(--accent); }
}
