/* ===========================================================
   Fonts — open-source, self-hosted (fully portable, no license tie).
   IBM Plex Mono (body) · Inter (wordmark/nav/titles) · Source Serif 4 (home title).
   Family names kept ("MG Mono", "Social") so the rest of the sheet is unchanged.
   =========================================================== */
@font-face { font-family: "MG Mono"; src: url("assets/openfonts/PlexMono-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "MG Mono"; src: url("assets/openfonts/PlexMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "MG Mono"; src: url("assets/openfonts/PlexMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "MG Mono"; src: url("assets/openfonts/PlexMono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "MG Mono"; src: url("assets/openfonts/PlexMono-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "MG Mono"; src: url("assets/openfonts/PlexMono-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "MG Mono"; src: url("assets/openfonts/PlexMono-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "MG Mono"; src: url("assets/openfonts/PlexMono-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Social"; src: url("assets/openfonts/Inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Social"; src: url("assets/openfonts/Inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Social"; src: url("assets/openfonts/Inter-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Social"; src: url("assets/openfonts/Inter-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/SourceSerif4-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/SourceSerif4-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #14171b;
  --ink-85: rgba(20, 23, 27, 0.85);
  --paper: #ffffff;
  --accent: #14171b;
  --line: rgba(0, 0, 0, 0.13);
  --pad: 42px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  min-height: 100vh;
  font-family: "MG Mono", ui-monospace, monospace;
  font-variation-settings: "MONO" 1, "slnt" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 44px var(--pad) 18px;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  font-family: "Social";
  font-variation-settings: "slnt" 0, "wdth" 100;
  font-weight: 700;
  font-style: italic;
  font-size: 11.4px;
  color: var(--ink-85);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 28px;
  font-family: "Social";
  font-variation-settings: "slnt" 0, "wdth" 100;
  font-weight: 500;
  font-size: 11.4px;
  color: var(--ink-85);
}
.nav a {
  position: relative;
  white-space: nowrap;
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.22s ease;
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { right: 0; }

/* Accent on interactive text links */
.bio a:hover,
.longbio a:hover,
.lead a:hover,
.entries a:hover,
.contact-list a:hover,
.fee-note a:hover,
.page-intro a:hover,
.gate a:hover,
.quote cite a:hover,
.way p a:hover,
.signup p a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Accessible focus for keyboard users */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.lang {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.lang img { width: 13px; height: 13px; display: block; opacity: 0.85; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 4fr 8fr;
  column-gap: 40px;
  padding: 40px var(--pad) 64px;
  align-items: start;
}

/* Left media column — pinned while the bio scrolls */
.media {
  margin: 0;
  position: sticky;
  top: 40px;
}

.media__frame {
  overflow: hidden;
  border: 0.1rem solid rgba(0, 0, 0, 0.15);
}
.media__frame img {
  width: 100%;
  height: auto;
  display: block;
}

figcaption {
  margin-top: 10px;
  font-style: italic;
  font-weight: 300;
  font-size: 9.33px;
  line-height: 1.2;
  color: var(--ink-85);
}

/* ---------- Bio ---------- */
.bio {
  max-width: 760px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.bio p { margin: 0 0 1.2em; }
.bio a { text-decoration: underline; text-underline-offset: 2px; }

/* Appointments block on the home page */
.appointments { margin-top: 44px; }

/* Selected features */
.features { margin-top: 40px; }
.features__label {
  font-style: italic;
  font-weight: 300;
  font-size: 9.33px;
  color: var(--ink-85);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin: 0 0 24px;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px 36px;
}
.logo {
  display: inline-flex;
  align-items: center;
  height: 30px;
}
.logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo--wide { height: 24px; }
a.logo { transition: opacity 0.15s ease; }
a.logo:hover { opacity: 0.6; }

/* Single-column (full-width) page variant */
.layout--single { grid-template-columns: 1fr; }
.layout--single .page-body { max-width: 900px; }
.layout--single .longbio p { max-width: 74ch; }

/* Motion: gentle entrance + hover life */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.layout > * { animation: fadeUp 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.layout > *:nth-child(2) { animation-delay: 0.09s; }
.hero { animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.logo img { transition: transform 0.2s ease, opacity 0.15s ease; }
a.logo:hover img { transform: translateY(-2px); }
.embed__frame { transition: transform 0.2s ease; }
.embed:hover .embed__frame { transform: translateY(-3px); }
.topic, .quote, .way { transition: background-color 0.2s ease; }
@media (prefers-reduced-motion: reduce) {
  .layout > *, .hero { animation: none; }
  .logo img, .embed__frame { transition: none; }
}

/* ---------- Inner content pages ---------- */
.page-side { position: sticky; top: 40px; }
.page-title {
  margin: 0 0 18px;
  font-family: "Social";
  font-variation-settings: "slnt" 0, "wdth" 100;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 17.1px;
  line-height: 1.2;
  color: var(--accent);
}
.section-label, .group__label, .features__label, .signup__title { color: var(--accent); }
.page-intro {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-85);
  max-width: 34ch;
}
.page-side .backlink {
  display: inline-block;
  margin-top: 26px;
  font-size: 11.4px;
  color: var(--ink-85);
}
.page-side .backlink:hover { text-decoration: underline; text-underline-offset: 2px; }

.page-body { max-width: 820px; }
.group { margin: 0 0 40px; }
.group:last-child { margin-bottom: 0; }
.group__label {
  font-style: italic;
  font-weight: 300;
  font-size: 9.33px;
  letter-spacing: 0.04em;
  color: var(--ink-85);
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin: 0 0 20px;
}
.entries { list-style: none; margin: 0; padding: 0; }
.entries li {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.entries li:last-child { border-bottom: none; }
.entries li .yr { color: rgba(0, 0, 0, 0.45); }
.entries a { text-decoration: underline; text-underline-offset: 2px; }

/* Bio / Info page */
.section-label {
  font-style: italic;
  font-weight: 300;
  font-size: 9.33px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-85);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin: 0 0 22px;
}
.bio-block { margin: 0 0 44px; }
.longbio p { font-size: 13.5px; line-height: 1.55; margin: 0 0 16px; }
.longbio p:last-child { margin-bottom: 0; }
.longbio a { text-decoration: underline; text-underline-offset: 2px; }

.credit {
  margin-top: 10px;
  font-style: italic;
  font-weight: 300;
  font-size: 9.33px;
  line-height: 1.4;
  color: var(--ink-85);
}
.downloadlink { display: inline-block; margin-top: 14px; font-size: 11.4px; text-decoration: underline; text-underline-offset: 2px; }

/* Testimonials */
.quotes { margin: 0; }
.quote {
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.quote:first-child { padding-top: 0; }
.quote:last-child { border-bottom: none; }
.quote p {
  font-size: 17.1px;
  line-height: 1.35;
  font-style: italic;
  margin: 0 0 12px;
}
.quote cite {
  display: block;
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-85);
}
.quote cite b { font-weight: 700; font-style: normal; }

/* Working-with page */
.ways { margin: 0; }
.way {
  padding: 26px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.way:last-child { border-bottom: none; }
.way h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}
.way p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.gate {
  font-size: 17.1px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 30px;
  max-width: 60ch;
}

/* Accordion (appointments) */
details.acc {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  margin: 0 0 44px;
}
details.acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-style: italic;
  font-weight: 300;
  font-size: 9.33px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-85);
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after {
  content: "+";
  font-style: normal;
  font-size: 15px;
  line-height: 1;
}
details.acc[open] > summary::after { content: "\2013"; }
details.acc .entries { padding-bottom: 8px; }

/* Contact form */
.form { max-width: 640px; margin-top: 4px; }
.field { margin: 0 0 22px; }
.field label {
  display: block;
  font-size: 11.4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-85);
  margin: 0 0 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--mono);
  font-variation-settings: "MONO" 1;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.25);
  padding: 11px 12px;
  border-radius: 0;
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); }
.form__submit {
  font-family: var(--mono);
  font-variation-settings: "MONO" 1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  padding: 13px 28px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.form__submit:hover { opacity: 0.88; }
.hp { position: absolute; left: -9999px; }

/* Book-updates signup */
.signup {
  border: 1px solid var(--ink);
  padding: 26px 26px 28px;
  margin: 0 0 44px;
}
.signup__title {
  font-size: 9.33px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-85);
  margin: 0 0 12px;
}
.signup p { font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.signup p a { text-decoration: underline; text-underline-offset: 2px; }
.signup__row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup__row input {
  flex: 1 1 260px;
  font-family: var(--mono);
  font-variation-settings: "MONO" 1;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.25);
  padding: 12px;
}
.signup__row input:focus { outline: none; border-color: var(--ink); }
.signup__row button {
  font-family: var(--mono);
  font-variation-settings: "MONO" 1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  padding: 12px 24px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.signup__row button:hover { opacity: 0.88; }

/* Full-bleed hero (Speaking) */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: #0b0b12;
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.is-empty {
  background: repeating-linear-gradient(45deg, #0b0b12 0 14px, #14141f 14px 28px);
}
.hero__caption {
  position: absolute;
  left: var(--pad);
  bottom: 20px;
  color: #fff;
  font-size: 11.4px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 26px var(--pad);
  margin-top: 64px;
  border-top: 1px solid var(--ink);
  color: var(--ink-85);
  font-family: "Social";
  font-variation-settings: "slnt" 0, "wdth" 100;
  font-weight: 500;
  font-size: 11.4px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ink); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Homepage stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 38px 0 4px;
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat__num {
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.stat__label {
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-85);
}
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Page headline (large title statement) */
.page-headline {
  font-size: 22px;
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 40px;
  max-width: 40ch;
}
.page-headline em { font-style: italic; }

/* Publications image gallery */
.pubgallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 12px;
}
.pubgallery a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; }
.pubgallery img {
  width: 100%; height: auto; display: block;
  transition: transform 0.25s ease;
}
.pubgallery a:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .pubgallery { grid-template-columns: 1fr 1fr; } }

/* Media kit — commentary topics */
.topic {
  padding: 22px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.topic:first-of-type { border-top: 1px solid var(--ink); }
.topic h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.topic p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-85); }

/* Homepage title (ABC Social — contrasts the mono body) */
.hometitle {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-variation-settings: normal;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin: 0 0 26px;
  max-width: 16ch;
  color: var(--accent);
}
@media (max-width: 860px) { .hometitle { font-size: 32px; } }
.meta-row a { text-decoration: underline; text-underline-offset: 2px; }
.meta-row a:hover { color: var(--accent); }

/* Space-architecture definition */
.definition { margin: 0; border-left: 3px solid var(--accent); padding: 2px 0 2px 20px; }
.definition p { font-size: 19px; line-height: 1.42; font-style: italic; margin: 0 0 12px; color: var(--ink); }
.definition cite { font-style: normal; font-size: 12px; line-height: 1.5; color: var(--ink-85); }
.definition a { text-decoration: underline; text-underline-offset: 2px; }
.definition a:hover { color: var(--accent); }
.hometitle .accent { color: var(--accent); }
.hometitle__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.hometitle__links a { text-decoration: underline; text-underline-offset: 3px; }
.hometitle__links a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .hometitle { font-size: 34px; }
}

/* Authority / positioning statement */
.standfirst {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  max-width: 26ch;
}
.standfirst .accent { color: var(--ink); border-bottom: 3px solid var(--accent); }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-top: 22px;
  font-size: 11.4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-85);
}
.fee-note {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-85);
}
.fee-note a { text-decoration: underline; text-underline-offset: 2px; }

/* Video embeds (interviews / talks) */
.embeds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  max-width: 720px;
}
.embed { margin: 0; }
.embed__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: #000;
}
.embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed__cap {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-85);
}
.embed__cap .src { color: rgba(0, 0, 0, 0.45); }

.lead {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 30px;
  max-width: 64ch;
}
.lead a { text-decoration: underline; text-underline-offset: 3px; }

.contact-list { list-style: none; margin: 0; padding: 0; font-size: 17.1px; font-weight: 500; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .page-side { position: static; margin-bottom: 8px; }
  .page-intro { max-width: none; }
  .lead, .contact-list { font-size: 16px; }
  .embeds { grid-template-columns: 1fr; }
  :root { --pad: 24px; }
  .site-header { flex-wrap: wrap; gap: 12px 20px; padding: 28px var(--pad) 14px; }
  .nav { width: 100%; margin-left: 0; flex-wrap: wrap; gap: 10px 16px; font-size: 12px; }
  .layout { grid-template-columns: 1fr; row-gap: 28px; padding: 28px var(--pad) 48px; }
  .media { position: static; }
  .media__frame { aspect-ratio: 4 / 3; }
  .bio { font-size: 16px; }
}
