/* Cornelia — personal site
   Companion to craftport.com: same type (Playfair Display + DM Sans) and
   black & white photography, with a palette of its own:
   aubergine, antique gold, light cream and soft grey. */

:root {
  --primary: #3b2640;        /* aubergine */
  --primary-deep: #26182a;
  --accent: #f8eee0;         /* light cream: fills, and buttons on dark bands */
  --accent-ink: #8f6b22;     /* antique gold: highlights on light backgrounds */
  --accent-on-dark: #d4b06a; /* antique gold, lifted for dark backgrounds */
  --on-accent: var(--primary-deep);  /* text on cream-filled buttons */
  --btn: var(--primary);     /* main button colour */
  --tint: #f8eee0;           /* alternating light sections */
  --head-tint: #f8eee0;      /* inner page headers */
  --grey: #f0eeec;           /* soft grey surfaces */
  --on-dark: #efe6ee;
  --on-dark-muted: #cdbccb;
  --ink: #221c24;
  --muted: #675d68;
  --line: #e2dfdd;
  --paper: #fcfaf7;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--primary);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; max-width: 68ch; }
em.accent, .accent { font-style: italic; color: var(--accent-ink); }
.section--dark .accent, .cta-band .accent { color: var(--accent-on-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--dark { background: var(--primary); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: var(--accent-on-dark); }
.section--dark .eyebrow, .cta-band .eyebrow { color: var(--accent-on-dark); }
.section--white { background: var(--tint); }

.eyebrow {
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.6; color: var(--muted); }
.section--dark .lede { color: var(--on-dark-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem;
  font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--btn); border-radius: var(--radius);
  background: var(--btn); color: var(--white); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--white); }
.btn--ghost { background: transparent; color: var(--btn); }
.btn--ghost:hover { background: var(--btn); border-color: var(--btn); color: var(--white); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--primary-deep); }
.btn--on-dark { background: transparent; color: var(--white); border-color: color-mix(in srgb, var(--white) 40%, transparent); }
.btn--on-dark:hover { background: var(--white); border-color: var(--white); color: var(--primary); }
.section--dark :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-ink); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
/* Wordmark: gold script C with the name in Playfair italic (SVG) */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font: 500 .82rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: .5rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--accent-ink); }
.nav .btn { padding: .75rem 1.2rem; color: var(--white); border-bottom: 1px solid var(--btn); }
.nav .btn:hover { border-color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--primary); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: #c4c4c4 url("../img/cornelia-portrait-wide.jpg") left center / cover no-repeat;
  min-height: min(82vh, 720px);
  display: flex; align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(196,196,196,0) 30%, color-mix(in srgb, var(--paper) 55%, transparent) 55%, color-mix(in srgb, var(--paper) 90%, transparent) 100%);
}
.hero .wrap { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.hero__text { max-width: 560px; padding: 4rem 0; }
.hero__text h1 { margin-bottom: .35em; }
.hero__text .lede { color: #3c3e4a; }
@media (max-width: 880px) {
  .hero { background-image: none; background: var(--paper); min-height: 0; flex-direction: column; align-items: stretch; }
  .hero::before {
    content: ""; display: block; width: 100%; aspect-ratio: 5 / 4;
    background: #c4c4c4 url("../img/cornelia-portrait-wide.jpg") 12% center / cover no-repeat;
  }
  .hero::after { display: none; }
  .hero__text { padding: 2.5rem 0 3.5rem; }
}

/* Page header (inner pages) */
.page-head { padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); background: var(--head-tint); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 18ch; }
.page-head .lede { max-width: 60ch; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 880px) {
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Two-sites strip */
.twin { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--grey); }
.twin > div { padding: clamp(28px, 4vw, 48px); }
.twin > div + div { border-left: 1px solid var(--line); }
.twin h3 { margin-bottom: .3em; }
.twin .tag { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.twin .is-here { background: var(--primary); color: var(--on-dark); }
.twin .is-here h3 { color: var(--white); }
.twin .is-here .tag { color: var(--accent-on-dark); }
@media (max-width: 700px) { .twin { grid-template-columns: 1fr; } .twin > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 2rem 1.5rem 0 0; }
.stat b { display: block; font: 500 clamp(2.2rem, 4vw, 3.2rem)/1 var(--serif); color: var(--primary); margin-bottom: .5rem; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* Pull quote */
.pull {
  font: italic 400 clamp(1.6rem, 3.2vw, 2.4rem)/1.35 var(--serif);
  color: var(--primary); margin: 0; max-width: 28ch;
}
.section--dark .pull { color: var(--white); }
.section--dark .pull::before, .section--dark .pull-cite { color: var(--accent-on-dark); }
.pull::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--accent-ink); margin-bottom: .75rem; }
.pull-cite { display: block; margin-top: 1.25rem; font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-style: normal; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.card .num { font: 500 .85rem/1 var(--serif); color: var(--accent-ink); margin-bottom: 1.25rem; letter-spacing: .08em; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card .meta { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.card .meta b { color: var(--ink); font-weight: 600; }
.quote-card p { font: italic 400 1.25rem/1.55 var(--serif); color: var(--ink); max-width: none; }

/* Talk list */
.talk { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 2rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.talk:last-child { border-bottom: 1px solid var(--line); }
.talk .num { font: 400 2.2rem/1 var(--serif); color: var(--accent-ink); }
.talk h3 { margin-bottom: .4em; }
.talk ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.talk li { margin-bottom: .35rem; }
.talk .formats { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
@media (max-width: 880px) { .talk { grid-template-columns: 1fr; gap: 1rem; } }

/* Values list */
.values { list-style: none; margin: 0; padding: 0; counter-reset: v; }
.values li { counter-increment: v; padding: 1.5rem 0 1.5rem 3.5rem; border-top: 1px solid var(--line); position: relative; }
.values li::before { content: counter(v, decimal-leading-zero); position: absolute; left: 0; top: 1.6rem; font: 400 1rem/1 var(--serif); color: var(--accent-ink); }
.values h3 { font-size: 1.2rem; margin-bottom: .25em; }
.values p { margin: 0; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--accent-ink); }
.timeline li { padding: 0 0 2.25rem 2rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .55rem; width: 9px; height: 9px; background: var(--accent-ink); border-radius: 50%; }
.timeline .when { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.timeline h3 { font-size: 1.2rem; margin: .5rem 0 .25rem; }
.timeline p { margin: 0; color: var(--muted); }

/* Logos strip */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logos div { background: var(--grey); aspect-ratio: 3 / 1.4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center; padding: .75rem; }
.logos strong { font: 500 1.2rem/1.2 var(--serif); color: var(--primary); }
.logos span { font: 600 .66rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logos .placeholder { outline-offset: -6px; }
.logos .placeholder strong { color: var(--muted); }
@media (max-width: 700px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--primary-deep); display: grid; place-items: center; color: var(--on-dark-muted); text-align: center; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--accent-on-dark); display: grid; place-items: center; margin: 0 auto 1rem; color: var(--accent-on-dark); }

/* Press: photos + bios */
.photo { background: var(--white); border: 1px solid var(--line); }
.photo .img { aspect-ratio: 4 / 5; background: var(--grey) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 1rem; }
.photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; font-size: .85rem; color: var(--muted); }
.photo figcaption a { font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 2rem; overflow-x: auto; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 1rem 1.25rem; font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--accent-ink); }
.bio-panel { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.bio-panel[hidden] { display: none; }
.bio-panel .bio-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.5rem; font-size: .85rem; color: var(--muted); }
.copy-btn.is-done { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--white); }

.facts { display: grid; grid-template-columns: 180px 1fr; margin: 0; }
.facts dt, .facts dd { padding: .9rem 0; border-top: 1px solid var(--line); margin: 0; }
.facts dt { font: 600 .75rem/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } .facts dd { border-top: 0; padding-top: 0; } }

/* Forms */
.form { display: grid; gap: 1.25rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: .55rem; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-ink) 18%, transparent); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hint { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { font-size: .95rem; margin: 0; }

.route { display: block; padding: 1.5rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.route:last-child { border-bottom: 1px solid var(--line); }
.route h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.route p { margin: 0; color: var(--muted); font-size: .95rem; }
.route:hover h3 { color: var(--accent-ink); }

/* CTA band */
.cta-band { background: var(--primary); color: var(--on-dark); text-align: center; }
.cta-band h2 { color: var(--white); max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--primary-deep); color: var(--on-dark-muted); padding: 64px 0 32px; font-size: .92rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 1.25rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .6rem; }
.footer-brand { margin-bottom: 1.5rem; }
.footer-brand .brand__logo { height: 72px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; font-size: .82rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Content still to supply — remove class once real content is in */
.placeholder { outline: 1px dashed var(--accent-ink); outline-offset: 4px; }
.placeholder-note { font-size: .8rem; color: var(--accent-ink); letter-spacing: .04em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--primary); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
