/* ============================================================
   Gesche Haas — geschehaas.com
   Static, no dependencies, no webfonts. Light + dark.
   ============================================================ */

:root {
  --bg:        #fbf9f6;
  --surface:   #ffffff;
  --ink:       #17130f;
  --muted:     #6e635b;
  --faint:     #9b9088;
  --line:      #e7e0d6;
  --accent:    #7d8259;
  --accent-bg: #f0f1e7;
  --on-accent: #ffffff;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;

  --logo-invert: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #14110f;
    --surface:   #1c1815;
    --ink:       #f4efe9;
    --muted:     #a89b90;
    --faint:     #7d7268;
    --line:      #2f2823;
    --accent:    #b4bc85;
    --accent-bg: #23261b;
    --on-accent: #14110f;

    --logo-invert: 1;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.vh, .hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: .75rem 1.25rem;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: .875rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 720px) { .site-nav { display: none; } }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1.4rem;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow span { opacity: .5; margin-inline: .3em; }

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 6.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--accent); }

.lede {
  margin: 1.75rem 0 0;
  max-width: 46ch;
  font-size: 1.075rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: .9rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: transform .18s, border-color .18s, background .18s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--ink); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { border-color: var(--accent); }

.hero-portrait {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* keeps the peaks in frame while trimming a little off the bottom */
  object-position: center 40%;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 420px; }
}

/* ---------- as seen in (free-floating strip, no boxes) ---------- */

.seenin {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}

.seenin-title {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

.logos {
  --k: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3.6vw, 3rem);
  max-width: 950px;
  margin-inline: auto;
}

.logo-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3.36vw, 2.72rem);
}

/* the lower row is one logo shorter, so nudge it left to sit
   optically centred under the row above */
@media (min-width: 901px) {
  .logos-lower { transform: translateX(-16px); }
}

@media (max-width: 900px) { .logos { --k: .88; } }
@media (max-width: 560px) { .logos { --k: .76; } }

/* Each logo carries its own --lh, precomputed so every mark occupies roughly
   the same optical area regardless of aspect ratio — otherwise a wide
   wordmark like HuffPost dwarfs a square one like the UN seal. */
.logos img {
  height: calc(var(--lh, 20) * 1px * var(--k));
  width: auto;
  opacity: .8;
  filter: invert(var(--logo-invert));
  transition: opacity .2s;
}
.logos li:hover img { opacity: 1; }

/* ---------- sections ---------- */

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

.section-title {
  margin: 0 0 2.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.section-title .num {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: .25rem .6rem;
  flex: none;
}

.section-intro {
  margin: -1.5rem 0 2.25rem;
  color: var(--muted);
  max-width: 55ch;
}

/* ---------- bio ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.prose p { margin: 0 0 1.35rem; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }

.bio-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
}

.side-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 820px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .bio-side .side-photo { flex: 1 1 220px; }
}

/* ---------- pull quotes (full-width bands between sections) ---------- */

.pullquote {
  background: var(--accent-bg);
  border-block: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 4.75rem);
}

.pullquote-alt { background: var(--surface); }

.pullquote blockquote {
  margin: 0 auto;
  max-width: 46ch;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.9vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: pretty;
  position: relative;
}

.pullquote blockquote::before {
  content: "\201C";
  display: block;
  font-size: 3rem;
  line-height: .6;
  margin-bottom: .5rem;
  color: var(--accent);
  opacity: .5;
}

.attrib {
  margin: 2rem 0 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.q-name { font-weight: 600; font-size: .95rem; }
.q-role { font-size: .85rem; color: var(--muted); }

/* ---------- awards ---------- */

.awards {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.awards li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 700px) {
  .awards li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .2rem 1rem;
    align-items: baseline;
  }
  .awards .trophy { grid-row: 1 / 3; }
  .awards .award-by { margin-left: 0; }
}

.trophy {
  flex: none;
  font-size: 1.05rem;
  line-height: 1;
  /* keep emoji colour independent of theme */
  filter: saturate(.9);
}

.award-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  flex: 1 1 auto;
}

.award-by {
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-left: auto;
}

/* ---------- press / speaking card grid ---------- */


#f-speaking:checked ~ .grid li[data-cat="press"] { display: none; }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* .card-static is a card whose source article is gone: same box, but
   nothing to click, so it gets no hover affordance and no cursor change. */
.grid a,
.grid .card-static {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.grid a:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 10px 26px -14px rgba(0,0,0,.35);
}

.shot {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--accent-bg);
  border-bottom: 1px solid var(--line);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  transition: transform .35s ease;
}
.grid a:hover .shot img { transform: scale(1.035); }

/* entries with no surviving photo get a typographic tile instead */
.shot-none {
  display: grid;
  place-items: center;
  padding: 1rem;
}
.shot-mark {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--accent);
  text-align: center;
  opacity: .85;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.1rem 1.15rem 1.35rem;
}

.outlet {
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.entry-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.32;
  color: var(--ink);
}

.card-body .meta {
  font-size: .8rem;
  color: var(--faint);
  line-height: 1.4;
}

/* ---------- connect ---------- */

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 345px) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "photo lead"
    "photo social"
    "photo form";
  column-gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.connect-photo { grid-area: photo; }
.connect-lead  { grid-area: lead; }
.social-list   { grid-area: social; }
.contact-form  { grid-area: form; }

/* on small screens the socials come first, so the invitation to connect
   is visible before the photo pushes the form down the page */
@media (max-width: 820px) {
  .connect-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "lead"
      "social"
      "photo"
      "form";
  }
  .connect-photo { max-width: 340px; margin-bottom: 2rem; }
}

.connect-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}
.connect-photo img {
  width: 100%;
  height: auto;   /* full frame, nothing trimmed */
}

.connect-lead {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--muted);
}

/* Set in the page's serif, like every other name and title, with the
   same underline treatment as prose links. The handle is dropped —
   the link already goes there, and it was the mismatched element. */
.social-list {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0 0 1.75rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.25rem;
}

/* Same face, size and colour as .connect-lead so the block reads as one
   voice. The rule sits on the span alone, so it never runs under the
   gap between the glyph and the words. */
.social-list a {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--muted);
  transition: color .18s;
}

.social-list svg {
  flex: none;
  color: var(--accent);
  align-self: center;
  margin-right: .5rem;
  transition: color .18s;
}

.social-list span {
  padding-bottom: 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 32%, transparent);
  transition: border-color .18s;
}

.social-list a:hover { color: var(--ink); }
.social-list a:hover span { border-bottom-color: var(--ink); }

/* ---------- contact form ---------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .4rem; }

.field label {
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem .85rem;
  width: 100%;
  transition: border-color .18s, box-shadow .18s;
}

.field textarea { resize: vertical; min-height: 7rem; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.contact-form button { align-self: flex-start; margin-top: .25rem; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: .85rem;
  color: var(--muted);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
}

.foot-inner p { margin: 0; }
.foot-tag { font-style: italic; }

/* ---------- thank-you page ---------- */

.centered {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}
.centered h1 { margin-bottom: 1rem; }
.centered p { color: var(--muted); margin: 0 0 2rem; max-width: 46ch; }
.centered p a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.centered p a:hover { border-bottom-color: var(--accent); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
