/* Vicky Lay site. Direction A "Ledger" (chosen 2026-11-19).
   Colours and type are set once here; change a token and the whole site follows. */
:root {
  --bg: #F5F6F6;
  --panel: #ECEFEF;
  --ink: #0C1A1B;
  --ink-2: #2A3A3C;
  --muted: #5F6E70;
  --rule: #DCE1E1;
  /* Accent: glacier blue (chosen 2026-11-19). Pale ice fill with dark text; deeper blue for text on light grey. */
  --accent: #BFE0F8;
  --accent-ink: #0C1A1B;
  --accent-hover: #A9D4F3;
  --accent-text: #1F5E93;   /* accent used as text on the light background */
  --contact-bg: #0D2033;
  --contact-rule: #BFE0F8;
  --display: 'Schibsted Grotesk', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Anchor links: land each section heading 48px below the sticky nav (section padding 112 - 64). */
html { scroll-behavior: smooth; scroll-padding-top: 69px; }
section[id] { scroll-margin-top: -64px; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg, rgba(245, 246, 246, .88)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.nav-in { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.mark { font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links .nav-cta { color: var(--ink); }

/* Type */
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(56px, 8vw, 112px); line-height: .95; letter-spacing: -.045em; }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -.01em; line-height: 1.3; }
.eyebrow { font-size: 14px; color: var(--muted); }
.sep { margin: 0 10px; opacity: .5; }
.label { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* Buttons and links */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 14px 22px; border-radius: 2px; font-size: 15px; transition: background .2s; }
.btn:hover { background: var(--accent-hover); }
.link { font-size: 15px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link:hover { color: var(--accent-text); border-color: var(--accent-text); }
.arrow::after { content: " \2192"; }

/* Sections */
section { padding: 112px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: baseline; margin-bottom: 56px; }
.section-head p { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.ruled { border-top: 1px solid var(--rule); }

/* Hero */
.hero { padding: 0; }
.hero-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: end; padding-top: 96px; }
.hero-copy { padding-bottom: 96px; }
.hero .eyebrow { margin-bottom: 28px; }
.lede { font-size: 20px; line-height: 1.6; color: var(--ink-2); max-width: 600px; margin-top: 32px; }
.ctas { display: flex; gap: 28px; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.hero-portrait { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.hero-portrait img { max-width: 420px; width: 100%; max-height: 600px; object-fit: cover; object-position: top; }

/* Proof row */
.proof { padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.proof-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-in div { padding: 36px 28px 36px 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.proof-in div:last-child { border-right: 0; margin-right: 0; }
.proof b { display: block; font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -.02em; color: var(--accent-text); margin-bottom: 8px; }
.proof span { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.about-copy p { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.about-copy p + p { margin-top: 20px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 4px 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.timeline .yr { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.timeline .role { font-size: 16px; }
.timeline .org { font-size: 14px; color: var(--muted); grid-column: 2; }

/* Advisory */
.advisory { background: var(--panel); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.card { background: var(--bg); padding: 36px 32px 40px; }

.card p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 14px 0 22px; }
.card li { font-size: 14px; color: var(--muted); padding: 7px 0; border-top: 1px solid var(--rule); }
.clients { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; font-size: 14px; color: var(--muted); align-items: baseline; }
.clients b { font-weight: 500; color: var(--ink); }

/* Governance */
.gov { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.gov li { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.gov li span:last-child { color: var(--muted); font-size: 14px; text-align: right; }

/* Speaking */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding: 40px 0; margin-bottom: 56px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.logo { height: 34px; width: auto; opacity: .6; transition: opacity .2s; }
.logo:hover { opacity: 1; }
.logo.tall { height: 46px; }
.sp-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 14px; align-items: start; }
.photos figure:first-child { grid-column: 1 / -1; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.photos figure:first-child img { aspect-ratio: 3 / 2; object-position: 50% 60%; }
.photos figure:not(:first-child) figcaption { font-size: 12px; }
figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; margin-top: 10px; }
figcaption span:last-child { color: var(--muted); }
.events li { display: grid; grid-template-columns: 52px 1fr; gap: 2px 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.events .yr { font-family: var(--mono); font-size: 13px; color: var(--muted); grid-row: span 2; padding-top: 2px; }
.events .ev { font-size: 16px; line-height: 1.4; }
.events .role { font-size: 14px; color: var(--muted); }
.events + .link { display: inline-block; margin-top: 28px; }

/* Writing */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.post { border-top: 1px solid var(--ink); padding-top: 18px; }
.post .date { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.post h3 { margin: 10px 0 10px; font-size: 18px; }
.post p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.post:hover h3 { color: var(--accent-text); }

/* Contact */
.contact { background: var(--contact-bg); color: #E6ECEC; }
.contact h2 { color: #F5F6F6; }
.contact .section-head p { color: #B7C3C4; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px 48px; font-size: 18px; }
.contact-links a { border-bottom: 1px solid var(--contact-rule); padding-bottom: 3px; }
.contact-links a:hover { border-color: #F5F6F6; }

footer { padding: 32px 0; font-size: 13px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Speaking page */
.page-head { padding: 96px 0 64px; }
.page-head p { font-size: 20px; line-height: 1.6; color: var(--ink-2); max-width: 680px; margin-top: 28px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 16px; align-items: start; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; height: 100%; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.gallery figure:first-child img { aspect-ratio: auto; flex: 1; min-height: 0; }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.topics div { border-top: 1px solid var(--ink); padding-top: 18px; }
.topics p { font-size: 15px; color: var(--ink-2); margin-top: 10px; line-height: 1.6; }
.list-group + .list-group { margin-top: 64px; }
.full-list li { display: grid; grid-template-columns: 64px 1.3fr 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.full-list .yr { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.full-list .role { font-size: 14px; color: var(--muted); }
.full-list a:hover { color: var(--accent-text); }

/* Phone */
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  section { padding: 72px 0; }
  html { scroll-padding-top: 97px; }
  section[id] { scroll-margin-top: -32px; }
  .nav-in { height: auto; flex-wrap: wrap; padding-top: 14px; }
  .nav-links { width: 100%; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 12px; font-size: 14px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .hero-in { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
  .hero-copy { padding-bottom: 48px; }
  .hero-portrait { max-width: 360px; }
  .lede { font-size: 18px; }
  .proof-in { grid-template-columns: 1fr 1fr; }
  .proof-in div { border-right: 0; margin-right: 0; padding: 24px 16px 24px 0; }
  .proof b { font-size: 22px; }
  .section-head, .about-grid, .sp-grid, .gov { grid-template-columns: 1fr; gap: 24px; }
  .section-head { margin-bottom: 36px; }
  .cards, .topics { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .logos { justify-content: flex-start; gap: 22px 30px; }
  .logo { height: 24px; } .logo.tall { height: 34px; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline .org { grid-column: 1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-row: auto; height: auto; }
  .gallery figure:first-child img { flex: none; aspect-ratio: 16 / 9; }
  .full-list li { grid-template-columns: 52px 1fr; gap: 4px 16px; }
  .full-list .role { grid-column: 2; }
  .gov li { flex-direction: column; gap: 2px; }
  .gov li span:last-child { text-align: left; }
}
@media (max-width: 520px) {
  .posts { grid-template-columns: 1fr; }
}

/* Article pages (writing/) */
.article { padding: 96px 0 112px; }
.article-head { max-width: 680px; margin: 0 auto 56px; }
.article-head h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.035em; margin-top: 24px; }
.article-meta { margin-top: 24px; font-size: 14px; color: var(--muted); }
.prose { max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 2em; color: var(--ink); }
.prose h3 { font-size: 21px; margin-top: 1.8em; color: var(--ink); }
.prose h4 { font-family: var(--display); font-weight: 500; font-size: 18px; margin-top: 1.6em; color: var(--ink); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--muted); }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 20px; color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: 2px; border: 1px solid var(--rule); }
.prose figcaption { font-size: 13px; color: var(--muted); }
.more-writing { padding: 96px 0; }
.posts-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .article { padding: 56px 0 72px; }
  .article-head { margin-bottom: 36px; }
  .prose { font-size: 17px; }
  .posts-3 { grid-template-columns: 1fr; }
}

/* Featured (external) post on the home page */
.post-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px 64px; padding-bottom: 36px; }
.post-featured .date { grid-column: 1; }
.post-featured h3 { grid-column: 1; grid-row: 2; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 0; }
.post-featured p { grid-column: 2; grid-row: 1 / span 2; font-size: 16px; color: var(--ink-2); align-self: end; }
.post-featured .ext { grid-column: 2; font-size: 14px; color: var(--accent-text); }
.post-featured .ext::after { content: " \2197"; }
@media (max-width: 860px) {
  .post-featured { grid-template-columns: 1fr; gap: 10px; }
  .post-featured h3, .post-featured p, .post-featured .ext, .post-featured .date { grid-column: 1; grid-row: auto; }
}

/* Contact form (Netlify Forms). Sits on the dark contact band. */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-left: calc((100% - 64px) / 2.4 + 64px); }
.contact-form .hp { position: absolute; left: -9999px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; color: #B7C3C4; }
.field label span { color: #7F8E9A; margin-left: 6px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: #F5F6F6; background: rgba(255, 255, 255, .04); border: 1px solid rgba(191, 224, 248, .32); border-radius: 2px; padding: 12px 14px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #B7C3C4 50%), linear-gradient(135deg, #B7C3C4 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); background: #FFFFFF; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 4px; }
.form-foot .btn { border: 0; cursor: pointer; font: inherit; font-size: 15px; }
.link-light { font-size: 15px; color: #E6ECEC; border-bottom: 1px solid var(--contact-rule); padding-bottom: 2px; }
.link-light:hover { border-color: #F5F6F6; }
@media (max-width: 860px) {
  .contact-form { grid-template-columns: 1fr; margin-left: 0; }
}
.form-status { font-size: 14px; color: #B7C3C4; }
.form-foot .btn:disabled { opacity: .6; cursor: default; }

/* ---------- Dark mode (preview) ---------- */
:root { --nav-bg: rgba(245, 246, 246, .88); --logo-filter: none; color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1620;
  --panel: #121C28;
  --ink: #E9EEF2;
  --ink-2: #C3CDD6;
  --muted: #8B99A7;
  --rule: #223040;
  --accent: #BFE0F8;
  --accent-ink: #0C1A1B;
  --accent-hover: #D3EAFB;
  --accent-text: #A9D4F3;
  --contact-bg: #080E16;
  --contact-rule: #BFE0F8;
  --nav-bg: rgba(14, 22, 32, .82);
  --logo-filter: invert(1) brightness(1.15);
}
:root[data-theme="dark"] .logo { filter: var(--logo-filter); opacity: .55; }
:root[data-theme="dark"] .logo:hover { opacity: .9; }
:root[data-theme="dark"] .contact { border-top: 1px solid var(--rule); }
:root[data-theme="dark"] .card { background: var(--bg); }
:root[data-theme="dark"] .post { border-top-color: var(--ink-2); }
:root[data-theme="dark"] .topics div { border-top-color: var(--ink-2); }
:root[data-theme="dark"] .prose figure img { border-color: var(--rule); }
body, .nav, .card, .advisory, .contact { transition: background-color .35s ease, color .35s ease, border-color .35s ease; }

/* Toggle: a small pill with a sliding sun/moon knob */
.nav-in { gap: 24px; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.theme-toggle { position: relative; width: 52px; height: 28px; flex: none; border-radius: 999px; border: 1px solid var(--rule); background: var(--panel); cursor: pointer; padding: 0; }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.theme-toggle .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .35s cubic-bezier(.4, .2, .2, 1), background-color .35s ease; }
.theme-toggle svg { width: 12px; height: 12px; color: var(--accent-ink); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .knob { transform: translateX(24px); }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-reduced-motion: reduce) { .theme-toggle .knob, body, .nav, .card, .advisory, .contact { transition: none; } }
@media (max-width: 860px) {
  .nav-right { width: 100%; justify-content: space-between; }
  .nav-in .theme-toggle { position: absolute; top: 14px; right: 20px; }
  .nav-in { position: relative; }
}
