/* Caitria O'Neill — personal site. Plain CSS, no build step.
   Brand: brand-book.html (v0.27) — plum ground, pink/lime/cream, pixel display
   type, sparkle mark. Palette contrast is calculated (see brand book §5):
   every text colour here passes AA on plum #16030F. */

@font-face {
  font-family: "Press Start 2P";
  src: url("/assets/press-start-2p.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/plex-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/plex-mono-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --plum: #16030F;
  --panel: #1E0316;
  --panel-alpha: rgba(22, 3, 15, 0.88);
  --pink: #FF6EC7;
  --soft-pink: #FFB9E4;
  --lime: #B6FF2E;
  --green: #57FFA6;
  --cream: #FFF3E4;
  --sage: #9DC183;
  --solar: #F8D175;
  --gold: #D4A843;
  --grey: #B9AEC0;
  --pixel: "Press Start 2P", monospace;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--plum);
  background-image: url("/assets/sparkle-tile.png");
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

::selection { background: var(--pink); color: var(--plum); }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--lime); }
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--lime); color: var(--plum);
  padding: 0.6rem 1rem; font-family: var(--mono); z-index: 50;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- masthead ---------- */
.masthead {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.9rem clamp(1rem, 4vw, 3rem);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--panel-alpha); border: 1.5px solid var(--pink);
  border-radius: 999px; padding: 0.3rem 0.9rem 0.3rem 0.4rem;
  color: var(--cream); text-decoration: none;
  font-family: var(--mono); font-weight: 500; font-size: 1rem;
}
.wordmark img { border-radius: 8px; display: block; }
.masthead nav {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  background: var(--panel-alpha); border: 1.5px solid var(--gold);
  border-radius: 999px; padding: 0.3rem 0.5rem;
}
.masthead nav a {
  color: var(--cream); text-decoration: none; font-family: var(--mono);
  font-size: 0.95rem; padding: 0.25rem 0.6rem; border-radius: 999px;
}
.masthead nav a:hover { color: var(--plum); background: var(--lime); }

/* ---------- hero ---------- */
.hero { border-bottom: 3px solid var(--gold); }
.hero-inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 6.4rem clamp(1rem, 4vw, 3rem) 3.2rem;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.2rem;
  align-items: center;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border: 5px solid var(--gold);
  border-radius: 22px;
  display: block;
}
.hero-panels {
  display: flex; flex-direction: column; gap: 0.9rem;
  max-width: 42rem;
  grid-column: 1; grid-row: 1;
}
.hero-inner > .hero-photo { grid-column: 2; grid-row: 1; }
.panel {
  background: var(--panel-alpha);
  border-radius: 18px;
  padding: 1.1rem 1.3rem;
  backdrop-filter: blur(3px);
}
.panel-name { border: 2px solid var(--pink); }
.panel-tag { border: 2px solid var(--gold); }
.panel h1 {
  font-family: var(--pixel);
  font-size: clamp(2rem, 7.5vw, 4.3rem);
  line-height: 1.18;
  color: var(--pink);
  margin: 0 0 0.7rem;
  overflow-wrap: break-word;
}
.triad {
  font-family: var(--pixel);
  font-size: clamp(0.72rem, 2.4vw, 1.05rem);
  color: var(--lime);
  margin: 0;
  line-height: 1.7;
}
.tagline {
  font-family: var(--pixel);
  font-size: clamp(1.05rem, 3.6vw, 1.8rem);
  line-height: 1.5;
  color: var(--cream);
  margin: 0 0 0.8rem;
  transition: opacity 0.45s ease;
}
.tagline.is-fading { opacity: 0; }
.factual {
  font-family: var(--mono);
  font-size: 1.02rem;
  color: var(--soft-pink);
  margin: 0;
}
.factual-mobile { display: none; }


.rotation-note { display: none; }

/* ---------- tablet & desktop: the splash A composition ----------
   Text sits directly on the plum (no panel cards), plain masthead,
   giant type. Panels exist only in the mobile layout, where they
   overlap the photo band. */
@media (min-width: 701px) {
  .wordmark { background: none; border: none; padding-left: 0; }
  .masthead nav { background: none; border: none; padding: 0; gap: 1.6rem; }
  .masthead nav a { color: var(--pink); font-weight: 500; padding: 0.25rem 0; }
  .masthead nav a:hover { color: var(--lime); background: none; text-decoration: underline; }
  .hero-inner { padding-top: 5.4rem; align-items: start; }
  .panel { background: none; border: none; padding: 0; backdrop-filter: none; }
  .panel h1 { font-size: clamp(3rem, 6.6vw, 5.4rem); }
  .tagline { font-size: clamp(1.55rem, 3vw, 2.25rem); min-height: 2.5em; }
  .factual { font-size: 1.06rem; max-width: 34rem; }
  .rotation-note {
    display: block;
    font-family: var(--mono); font-size: 0.82rem; color: var(--grey);
    margin: 1.6rem 0 0;
  }
}

/* ---------- sections ---------- */
.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 3rem;
}
section { margin-top: 3.2rem; }
.sec-h {
  font-family: var(--pixel);
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  color: var(--pink);
  margin: 0 0 0.4rem;
}
.sec-sub { color: var(--grey); margin: 0 0 1.4rem; max-width: 62ch; }

/* now strip */
.now-strip {
  display: flex; gap: 1rem; align-items: stretch;
  background: var(--panel);
  border: 2px solid var(--gold); border-radius: 14px;
  padding: 0.55rem 0.85rem;
}
.now-strip p { font-size: 0.92rem; line-height: 1.5; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0.1rem 0 0.5rem; padding: 0; }
.tags li { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--cream); border: 1px solid #452138; background: rgba(255, 243, 228, 0.05); padding: 0.2rem 0.55rem; border-radius: 999px; }
.tags.t-pink li { border-color: rgba(255, 110, 199, 0.55); }
.tags.t-green li { border-color: rgba(87, 255, 166, 0.5); }
.tags.t-lime li { border-color: rgba(182, 255, 46, 0.5); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover, .card h3 a:focus-visible { text-decoration: underline; }
.sec-h a { color: inherit; text-decoration: none; }
.sec-h a:hover, .sec-h a:focus-visible { text-decoration: underline; }
.now-marker { flex: 0 0 10px; background: var(--solar); border-radius: 6px; }
.now-strip p { margin: 0; font-family: var(--mono); font-size: 1rem; }
.now-label { color: var(--solar); font-family: var(--pixel); font-size: 0.8rem; }

/* project cards */
.cards {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--panel);
  border: 2px solid var(--pink); border-radius: 16px;
  padding: 1.2rem 1.25rem 1.35rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.card-lime { border-color: var(--lime); }
.card-green { border-color: var(--green); }
.card h3 {
  font-family: var(--pixel);
  font-size: 1.05rem; line-height: 1.6;
  color: var(--pink); margin: 0;
}
.card-lime h3 { color: var(--lime); }
.card-green h3 { color: var(--green); }
.card p { margin: 0; }
.card-img { width: 100%; height: 250px; flex: none; object-fit: cover; display: block; border-radius: 10px; border: 2px solid var(--gold); }
.card-img.top { object-position: top; }
.card-img.contain { object-fit: contain; background: #F5EEDA; }
.card-meta { margin-top: auto; }
.chip {
  font-family: var(--mono); font-weight: 500; font-size: 0.8rem;
  color: var(--solar); border: 1.5px solid var(--solar);
  border-radius: 999px; padding: 0.2rem 0.65rem;
  display: inline-block;
}
.card-links { font-family: var(--mono); font-size: 0.95rem; }

/* bio */
.bio-panel {
  background: var(--panel);
  border: 2px solid var(--sage); border-radius: 16px;
  padding: 1.3rem 1.4rem;
  max-width: 68ch;
}
.bio-panel p { margin: 0 0 1rem; }
.bio-panel p:last-child { margin-bottom: 0; }
.bio-spelling { font-family: var(--mono); font-size: 0.95rem; color: var(--sage); }

/* elsewhere */
.elsewhere-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.elsewhere-list li {
  background: var(--panel); border: 1.5px solid var(--gold);
  border-radius: 12px; padding: 0.8rem 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline;
}
.elsewhere-list a { font-family: var(--mono); font-weight: 500; }
.elsewhere-list span { color: var(--grey); font-size: 0.95rem; }
#elsewhere .sec-sub { margin-top: 1.2rem; }

/* ---------- footer ---------- */
footer {
  border-top: 2px solid var(--gold);
  padding: 1.6rem clamp(1rem, 4vw, 3rem) 2.2rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center;
  font-family: var(--mono); font-size: 0.95rem;
}
footer p { margin: 0; }
footer img { border-radius: 7px; }
.footer-note { color: var(--grey); width: 100%; }

/* ---------- small screens: stacked masthead, face rides higher ---------- */
@media (max-width: 700px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .masthead nav { border-radius: 16px; padding: 0.2rem 0.35rem; }
  .masthead nav a { font-size: 0.88rem; padding: 0.2rem 0.5rem; }
  .panel { padding: 0.95rem 1.05rem; }
  /* mobile hero v8: the v12 structure that verifiably renders in
     Caitria's staging viewer — fixed-height hero section, photo
     absolutely stretched inside it, panels absolutely placed.
     v8 geometry: the photo starts below a plum name zone at the
     hero's top (name lives there, never on the photo); the rotating
     tagline rides as a pill on the photo's bottom edge; the factual
     hangs below the hero and the welcome carries its clearance. */
  .hero { position: relative; height: 692px; height: calc(54svh + 15.2rem); min-height: 39.5rem; }
  .hero-inner { display: block; position: relative; height: 100%; padding: 0; }
  .hero-photo {
    position: absolute; inset: 15.2rem 0 0 0;
    width: 100%; height: auto;
    object-fit: cover; object-position: 50% 12%;
    border: none; border-radius: 0;
  }
  .hero-panels { position: absolute; inset: 0; width: auto; max-width: none; z-index: 2; padding: 0; display: block; }
  .panel-name {
    position: absolute; top: 6.3rem; left: 1rem; right: 1rem;
    background: none; border: none; padding: 0; backdrop-filter: none;
    text-align: left;
  }
  .panel h1 {
    font-size: clamp(2rem, 10.5vw, 2.7rem); line-height: 1.16;
    text-shadow: none;
  }
  .triad { display: block; font-size: 0.92rem; margin-top: 0.55rem; }
  .panel-tag { position: static; width: auto; background: none; border: none; padding: 0; backdrop-filter: none; }
  .tagline {
    position: absolute; left: 1rem; right: 1rem; bottom: 0.7rem;
    font-size: 0.78rem; line-height: 1.5;
    background: var(--panel-alpha);
    border: 2px solid var(--gold); border-radius: 14px;
    padding: 0.55rem 0.8rem;
    min-height: 0;
    margin: 0;
    text-align: center;
    transition: opacity 0.45s ease;
  }
  .factual { display: none; }
  .factual-mobile {
    display: block;
    position: absolute; left: 1rem; right: 1rem; top: calc(100% + 0.8rem);
    font-family: var(--mono);
    font-size: 0.84rem; line-height: 1.55;
    color: var(--cream);
    margin: 0; padding: 0.6rem 0.85rem;
    background: var(--panel-alpha);
    border: 2px solid var(--gold); border-radius: 16px;
  }
  #welcome { margin-top: 6rem; }
  .now-strip { padding: 0.5rem 0.7rem; }
  .now-strip p { font-size: 0.78rem; line-height: 1.45; }
}

/* ---------- smallest phones: the factual pill wraps to a fourth
   line at 320px-class widths and outgrows the clearance #welcome
   carries at 360px and up — extra air at this width only, so the
   locked hero geometry above is untouched. ---------- */
@media (max-width: 340px) {
  #welcome { margin-top: 7.5rem; }
}

/* ---------- motion discipline ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tagline { transition: none; }
}

/* ---------- subpages (bio, projects) ---------- */
.page-head { padding: 7.5rem 0 0.5rem; }
.page-head h1 {
  font-family: var(--pixel);
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  line-height: 1.15; margin: 0 0 0.7rem;
}
.page-head .lede {
  font-family: var(--mono); color: var(--soft-pink);
  font-size: 1.05rem; line-height: 1.6; max-width: 44rem; margin: 0;
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li > * { grid-column: 2; }
.timeline li > .when { grid-column: 1; }
.timeline .ministats, .timeline .tl-quote, .timeline .codeblock { grid-column: 2; }
.ministats { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 0; font-family: var(--mono); font-size: 0.86rem; color: var(--grey); }
.ministats b { color: var(--gold); font-size: 1.05rem; margin-right: 0.35rem; }
.tl-quote { margin: 0; padding: 0.4rem 0 0.4rem 1rem; border-left: 3px solid var(--pink); font-size: 1.06rem; line-height: 1.55; color: var(--cream); }
.tl-quote cite { display: block; margin-top: 0.35rem; font-family: var(--mono); font-style: normal; font-size: 0.8rem; color: var(--grey); }
.codeblock { margin: 0; font-family: var(--mono); font-size: 0.84rem; line-height: 1.6; color: var(--green); background: var(--panel); border: 1px solid #452138; border-radius: 10px; padding: 0.7rem 0.95rem; white-space: pre-wrap; }
.embed-wrap { position: relative; aspect-ratio: 16 / 9; max-width: 52rem; }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.tl-controls { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 1.2rem; font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; color: var(--gold); }
.tl-btn { font: inherit; color: var(--cream); background: var(--panel); border: 2px solid var(--gold); border-radius: 999px; padding: 0.35rem 0.9rem; cursor: pointer; }
.tl-btn:hover, .tl-btn:focus-visible { border-color: var(--lime); color: var(--lime); }
.timeline li {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.2rem;
  padding: 1.05rem 0; border-bottom: 1px solid rgba(212, 168, 67, 0.35);
}
.timeline li:last-child { border-bottom: none; }
.timeline .when {
  font-family: var(--pixel); font-size: 0.78rem; line-height: 1.5;
  color: var(--solar); padding-top: 0.2rem;
}
.timeline .what { margin: 0; line-height: 1.65; max-width: 46rem; }
.timeline .what strong { color: var(--cream); }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid rgba(212, 168, 67, 0.35);
}
.cv-list li:last-child { border-bottom: none; }
.cv-list .role { color: var(--cream); font-weight: 600; }
.cv-list .org { font-family: var(--mono); color: var(--soft-pink); font-size: 0.95rem; text-align: right; }
.facts-line {
  font-family: var(--mono); color: var(--soft-pink); line-height: 1.7; margin: 0;
}
.entry {
  border: 2px solid var(--gold); border-radius: 18px;
  background: var(--panel); padding: 1.5rem 1.6rem; margin-bottom: 1.4rem;
}
.entry h2 {
  font-family: var(--pixel); font-size: 1.35rem; line-height: 1.3; margin: 0 0 0.4rem;
}
.entry .entry-sub { font-family: var(--mono); color: var(--grey); font-size: 0.9rem; margin: 0 0 0.9rem; }
.entry p { line-height: 1.65; margin: 0 0 0.8rem; max-width: 46rem; }
.entry p:last-child { margin-bottom: 0; }
.entry ul { margin: 0 0 0.8rem; padding-left: 1.2rem; line-height: 1.65; }
.pagelink {
  display: inline-block; margin-top: 1.1rem;
  font-family: var(--mono); font-weight: 500; color: var(--lime);
}
.pagelink:hover { color: var(--pink); }
.backline { font-family: var(--mono); margin: 0 0 2.5rem; }
@media (max-width: 700px) {
  .page-head { padding-top: 10.5rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
  .timeline li > * { grid-column: 1; }
  .cv-list li { grid-template-columns: 1fr; gap: 0.15rem; }
  .cv-list .org { text-align: left; }
  .entry { padding: 1.15rem 1.1rem; }
}

/* ---------- project entry data + excerpts ---------- */
.chart-wrap {
  max-width: 52rem;
  border: 1px solid rgba(212, 168, 67, 0.55); border-radius: 14px;
  background: rgba(22, 3, 15, 0.72);
  padding: 1.1rem 1.2rem; margin: 1rem 0 0.9rem;
}
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-cap {
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.6;
  color: var(--soft-pink); margin: 0.8rem 0 0;
}
.data-table {
  width: 100%; border-collapse: collapse; margin: 0.9rem 0 0.4rem;
  font-family: var(--mono); font-size: 0.88rem;
}
.data-table caption {
  text-align: left; color: var(--grey); padding-bottom: 0.45rem; font-size: 0.84rem;
}
.data-table th, .data-table td {
  border-bottom: 1px solid rgba(212, 168, 67, 0.3);
  padding: 0.4rem 0.5rem; text-align: right;
}
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th { color: var(--cream); font-weight: 500; }
.excerpt {
  border-left: 4px solid var(--gold);
  margin: 1rem 0; padding: 0.2rem 0 0.2rem 1.1rem;
}
.excerpt blockquote {
  margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--cream); font-style: italic;
}
.excerpt .verdict {
  font-family: var(--pixel); font-size: 0.7rem; letter-spacing: 0.04em;
  display: inline-block; margin-bottom: 0.45rem;
}
.excerpt .why {
  font-family: var(--mono); font-size: 0.9rem; line-height: 1.6;
  color: var(--soft-pink); margin: 0.5rem 0 0;
}
.unlocked {
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.55;
  color: var(--lime); margin: 0.5rem 0 0;
}
.unlocked b { color: var(--cream); font-weight: 600; }
.jobs { margin: 0.45rem 0 0 1.15rem; padding: 0; }
.jobs li { margin: 0.18rem 0; }
.statband {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem; margin: 1.5rem 0 0;
}
.stat {
  border: 1px solid var(--gold); border-radius: 12px;
  background: #1E0316; padding: 0.85rem 0.95rem;
}
.stat .n {
  font-family: var(--pixel); font-size: 1rem; line-height: 1.5;
  color: var(--solar); display: block; margin-bottom: 0.4rem;
}
.stat .l { font-size: 0.84rem; line-height: 1.45; color: var(--cream); opacity: 0.88; }
.timeline .unlocked, .timeline .jobs { grid-column: 2; }
.timeline .jobs li { display: list-item; padding: 0; border-bottom: none; }
@media (max-width: 700px) {
  .timeline .unlocked, .timeline .jobs { grid-column: 1; }
}
.quotes { display: grid; gap: 0.9rem; margin-top: 1rem; }
.quotes blockquote {
  margin: 0; border-left: 4px solid var(--lime);
  padding: 0.3rem 0 0.3rem 1.1rem;
  font-size: 1.08rem; line-height: 1.55; color: var(--cream); font-style: italic;
}
.quotes blockquote span {
  display: block; margin-top: 0.4rem;
  font-family: var(--mono); font-size: 0.82rem; font-style: normal; color: var(--soft-pink);
}

/* ---------- media figures (photos, screenshots, video) ---------- */
.media { margin: 1.2rem 0 0.4rem; max-width: 46rem; }
.media img, .media video { width: 100%; height: auto; display: block; border: 1px solid #452138; background: #000; }
.media figcaption { font-family: var(--mono); font-size: 0.72rem; color: var(--grey); margin-top: 0.45rem; line-height: 1.55; }
.media figcaption a { color: var(--sage); }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 58rem; }
.media-row .media img { max-height: 32rem; object-fit: contain; background: var(--panel); }
.timeline .media { grid-column: 2; max-width: 40rem; }
@media (max-width: 700px) {
  .media-row { grid-template-columns: 1fr; }
  .timeline .media { grid-column: 1; }
}
.media.daylight img { border: 2px solid var(--gold); }

.contact-line { margin-top: 1.1rem; font-size: 1.02rem; max-width: 62ch; }

/* ---------- 404 panel ---------- */
.panel-404 { margin-top: 6rem; }
@media (min-width: 701px) {
  /* The desktop splash rule zeroes .panel padding for the home
     hero; the 404 panel is a standalone reading panel, so it
     keeps the padding the mobile .panel rule gives it. */
  .panel-404 { padding: 0.95rem 1.05rem; }
}
@media (max-width: 700px) {
  /* Same top clearance .page-head gives the subpages, so the
     absolute masthead clears the panel's top border. */
  .panel-404 { margin-top: 7.5rem; }
}
