/* jacdewet.com — every colour, font and spacing value is a token here. */
:root {
  --ink: #0b0b0b;
  --ink-soft: #2a2a2a;
  --paper: #ffffff;
  --stone: #f4f4f2;
  --photo-bg: #dadada;
  --grey: #6b6b6b;
  --line: #d9d9d6;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 11vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 22px;
}

/* Header — solid black bar, like Investec */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.mark { font: 600 22px/1 var(--serif); letter-spacing: 0.02em; text-decoration: none; margin: 0; }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.site-header nav a {
  font: 500 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: #cfcfcf; padding: 8px 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-header nav a:hover { color: var(--paper); border-color: var(--paper); }

/* Hero */
.hero { background: var(--photo-bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: clamp(24px, 5vw, 80px); min-height: min(78vh, 720px); }
.hero-text { align-self: center; padding: clamp(56px, 8vw, 112px) 0; }
.hero h1 { font-size: clamp(56px, 9vw, 120px); font-weight: 500; margin-bottom: 28px; }
.lede { font: 500 clamp(24px, 2.6vw, 34px)/1.25 var(--serif); max-width: 22ch; margin-bottom: 20px; }
.intro { color: var(--ink-soft); max-width: 46ch; }
.roles { list-style: none; padding: 26px 0 0; margin: 30px 0 0; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 10px 0; }
.roles li { font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.roles li:not(:last-child)::after { content: "·"; margin: 0 14px; color: var(--grey); }
.hero-photo { margin: 0; align-self: end; justify-self: end; width: 100%; max-width: 440px; }
.hero-photo img { width: 100%; filter: grayscale(1); -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.hero .eyebrow, .hero .roles li::after { color: #4a4a4a; }

/* Sections */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(36px, 5vw, 60px); max-width: 18ch; margin-bottom: 40px; }
.section-intro { color: var(--ink-soft); max-width: 60ch; margin: -12px 0 48px; }
.tint { background: var(--stone); border-top: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.prose p { color: var(--ink-soft); }
.prose p:first-child { font-size: 19px; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); margin-bottom: 10px; }
.facts dd { margin: 0; font: 500 20px/1.3 var(--serif); }

/* Media list */
.media-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.media-list li {
  display: grid; grid-template-columns: 110px 220px 1fr 80px; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.m-type { font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.m-outlet { font-weight: 500; }
.m-title { font: 500 22px/1.3 var(--serif); }
.m-title a { text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.m-title a:hover { background-size: 100% 1px; }
.m-date { color: var(--grey); text-align: right; font-size: 15px; }

/* Speaking cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: clamp(28px, 3vw, 44px); transition: background .25s, color .25s; }
.card:hover { background: var(--ink); color: var(--paper); }
.card:hover p, .card:hover .card-num { color: #bdbdbd; }
.card-num { display: block; font: 500 14px/1 var(--sans); letter-spacing: 0.1em; color: var(--grey); margin-bottom: 48px; }
.card h3 { font-size: 30px; margin-bottom: 16px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* Footer */
.site-footer { background: var(--ink); color: #bdbdbd; padding: 64px 0 40px; font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid #2e2e2e; }
.site-footer .mark { color: var(--paper); font-size: 26px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--paper); text-decoration: none; font-weight: 500; letter-spacing: 0.04em; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.disclaimer { max-width: 80ch; margin: 28px 0 16px; line-height: 1.6; color: #9a9a9a; }
.copyright { margin: 0; color: #6f6f6f; }
.text-link { font-weight: 500; text-underline-offset: 4px; }

/* Gentle reveal (only when JS runs and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .media-list li { grid-template-columns: 90px 1fr 60px; }
  .m-outlet { grid-column: 2; grid-row: 1; }
  .m-title { grid-column: 1 / -1; grid-row: 2; }
  .m-date { grid-column: 3; grid-row: 1; }
}

/* Phone */
@media (max-width: 720px) {
  .header-row { height: 60px; }
  .site-header nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-text { padding: 48px 0 32px; }
  .hero-photo { justify-self: center; max-width: 340px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .roles li:not(:last-child)::after { margin: 0 10px; }
}
