/* Simon Theobald — one-page site
   Colours sampled from the business card PDF (Photoshop eyedropper):
   --ink  #000000 top panel   --gold #c5942c band   --text #464646 body text
   Fonts as specified for the card: Didot (name; bold italic tagline) and
   Avenir Next (body; bold for "Simon Theobald"). Both are licensed fonts that
   ship with Apple devices; other devices fall back to free look-alikes. */
:root {
  --ink: #000000;
  --name-drop: 2px; /* how far the letters dip into the 6px gold band */
  --ink-deep: #000000;
  --gold: #c5942c;
  --paper: #ffffff;
  --paper-warm: #f6f6f4;
  --text: #464646;
  --muted: #6e6e6e;
  --rule: #e6e6e6;
  --serif: "Site Didot", "Bodoni Moda", "Bodoni 72", Georgia, serif;
  --sans: "Avenir Next", "Avenir Next LT Pro", "Nunito Sans", "Avenir", "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}

/* Linotype Didot webfont (Pro Roman + Pro Bold Italic, licensed for simontheobald.com).
   Purchased Nov 2026 via MyFonts; files in /fonts. Bodoni Moda is only a
   fallback while the webfont loads or if it fails. */
@font-face {
  font-family: "Site Didot";
  src: url("fonts/LinotypeDidotProRoman/font.woff2") format("woff2"), url("fonts/LinotypeDidotProRoman/font.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Site Didot";
  src: url("fonts/LinotypeDidotProBoldItalic/font.woff2") format("woff2"), url("fonts/LinotypeDidotProBoldItalic/font.woff") format("woff");
  font-weight: 700; font-style: italic; font-display: swap;
}
/* Fallback fonts, self-hosted (SIL Open Font Licence) so no visitor data goes to Google. */
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/fallback/bodoni-moda-roman.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/fallback/bodoni-moda-bold-italic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/fallback/nunito-sans.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------- Header / hero: the business card ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  min-height: clamp(240px, 36vh, 400px);
  display: flex;
  flex-direction: column;
}
.hero nav {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  padding: 28px 24px 0;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero nav a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.hero nav a:hover, .hero nav a:focus-visible { opacity: 1; color: var(--gold); }

.hero-name {
  margin-top: auto;
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  container-type: inline-size;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 9.4vw, 106px);
  font-size: 10.35cqi; /* name fills the content width, as on the card */
  letter-spacing: 0;
  margin: 0;
  white-space: nowrap;
  /* As on the card: the bottom of the letters sits just below the top edge
     of the gold band. The box is trimmed to the baseline, then nudged down. */
  line-height: 1;
  text-box: trim-both cap alphabetic;
  position: relative;
  top: var(--name-drop);
}
/* Browsers without text-box trimming (e.g. Firefox): approximate baseline */
@supports not (text-box: trim-both cap alphabetic) {
  .hero h1 { line-height: .75; top: calc(var(--name-drop) + .17em); }
}
.gold-line { height: 6px; background: var(--gold); }

.tagline {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px 0;
  box-sizing: border-box;
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(17px, 2.2vw, 24px);
  color: var(--text);
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--rule); }
.eyebrow {
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  color: var(--ink-deep);
  margin: 0 0 28px;
}
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-deep);
  margin: 0 0 8px;
}
p { margin: 0 0 1.1em; }

.intro { padding-top: 56px; }
.intro .lead {
  font-family: var(--serif);
  font-size: clamp(21px, 1.95vw, 25px);
  line-height: 1.45;
  color: var(--ink-deep);
  max-width: none;
  text-wrap: pretty;
  margin: 0 0 32px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }
.intro .lead { margin-top: -.3em; }
/* Keep "authority on German Expressionism." on one line; on wide screens break
   after "century" so the lead sits on two lines beside the portrait. */
.intro .lead .keep { white-space: nowrap; }
.br-wide { display: none; }
@media (min-width: 1100px) { .br-wide { display: inline; } }
@media (max-width: 600px) { .intro .lead .keep { white-space: normal; } }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.services { background: var(--paper-warm); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  margin-top: 16px;
}
.service { border-top: 2px solid var(--gold); padding-top: 20px; }
.service p { font-size: 16px; color: var(--muted); margin: 0; }

.clients-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-deep);
  columns: 2;
  column-gap: 48px;
}
.clients-list li { padding: 6px 0; break-inside: avoid; }

.affiliations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 16px; }
.affiliation {
  display: flex;
  align-items: center;
  gap: 28px;
  text-decoration: none;
  border: 1px solid var(--rule);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.affiliation-logo { flex: none; width: 88px; height: auto; }
.affiliation-logo.wide { width: 172px; }
.affiliation:hover, .affiliation:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.affiliation strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink-deep);
  letter-spacing: .04em;
}
.affiliation span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.affiliation em { display: block; font-style: normal; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-deep); margin-top: 14px; }

/* ---------- Contact (echoes the card back) ---------- */
.contact { text-align: center; }
.contact h2 { margin-bottom: 8px; }
.contact .name { font-weight: 700; font-size: 24px; color: var(--text); margin: 24px 0 12px; }
.contact address { font-style: normal; font-size: 20px; line-height: 1.8; }
.contact address a { text-decoration: none; border-bottom: 1px solid transparent; }
.contact address a:hover, .contact address a:focus-visible { border-color: var(--gold); }
.contact .note { font-size: 15px; color: var(--muted); margin-top: 20px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.7;
  border-top: 6px solid var(--gold);
}
footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; color: #fff; }
footer a:hover, footer a:focus-visible { color: var(--gold); }

/* ---------- Legal pages ---------- */
.page-head { background: var(--ink); color: #fff; }
.page-head .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 40px; }
.page-head .mark {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 48px);
  line-height: .8;
  text-decoration: none;
  transform: translateY(.07em);
  white-space: nowrap;
}
.page-head .back { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; opacity: .8; padding-bottom: 14px; }
.page-head .back:hover { color: var(--gold); opacity: 1; }
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); color: var(--ink-deep); margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 17px; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal li { margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait { width: 180px; }
  section { padding: 72px 0; }
  .two-col, .service-grid, .affiliations { grid-template-columns: 1fr; gap: 32px; }
  .clients-list { columns: 1; }
  .hero { min-height: clamp(190px, 30vh, 260px); }
  .intro { padding-top: 48px; }
  .hero nav { gap: 20px; font-size: 12px; }
}
@media (max-width: 520px) {
  .affiliation { flex-direction: column; align-items: flex-start; gap: 18px; }
  body { font-size: 17px; }
  .hero nav { justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding-top: 20px; }
  .hero-name, .tagline { padding-left: 16px; padding-right: 16px; }
  .wrap { padding: 0 16px; }
  .contact address { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Sticky name bar (appears once the big name scrolls away) ---------- */
html { scroll-padding-top: 72px; }
.mini-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.mini-bar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .3s ease, visibility 0s;
}
.mini-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mini-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.mini-bar nav { display: flex; gap: 28px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.mini-bar nav a { color: #fff; text-decoration: none; opacity: .8; }
.mini-bar nav a:hover, .mini-bar nav a:focus-visible { opacity: 1; color: var(--gold); }
@media (max-width: 720px) {
  html { scroll-padding-top: 56px; }
  .mini-inner { height: 52px; padding: 0 16px; justify-content: center; }
  .mini-name { font-size: 22px; }
  .mini-bar nav { display: none; }
}

/* Site credit */
footer .credit { flex-basis: 100%; font-size: 12px; opacity: .8; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); }
footer .credit a { text-decoration: underline; text-underline-offset: 2px; }
