/* ---------------------------------------------------------------------------
   MUDr. Helena Singerová — design system
   Direction B ("tlumená zemitá"), approved 2026-08-24.

   Flat surfaces, ONE accent, hierarchy from spacing and type weight. No
   gradients and no glows: they read as machine-made and this is a surgeon's
   personal site, where that costs trust.

   Fonts are self-hosted on purpose. A Google Fonts <link> would hand every
   visitor's IP to a third party before she can ask their consent, on her own
   domain. latin-ext is not optional — without it every ě š č ř ž ů falls back
   to a different face mid-word.
--------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter var";
  src: url("../fonts/inter-var-latin.260c81a4759b.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter var";
  src: url("../fonts/inter-var-latin-ext.1ad231aac0a8.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif var";
  src: url("../fonts/source-serif-4-var-latin.11c8ede91d1e.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif var";
  src: url("../fonts/source-serif-4-var-latin-ext.bf3f39dc393a.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --clay: #9c6b4f;
  --clay-dark: #815440;
  --ink: #2c2621;
  --ink-soft: #5d554c;
  --ink-faint: #8a8078;
  --paper: #ffffff;
  --paper-warm: #faf7f3;
  --paper-warmer: #f4efe8;
  --rule: #e8e3dc;

  --serif: "Source Serif var", Georgia, "Times New Roman", serif;
  --sans: "Inter var", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 45ch;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  font-synthesis-weight: none;
}

img { max-width: 100%; display: block; }

a { color: var(--clay); }
a:hover { color: var(--clay-dark); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

.site-header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.site-header__brand {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.langs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.langs a { color: var(--ink-faint); text-decoration: none; }
.langs a:hover { color: var(--clay); }
.langs [aria-current="true"] { color: var(--clay); font-weight: 600; }

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

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(74vh, 620px);
  background-color: var(--paper-warm);
  background-image: url("../img/hero-operating.177d6e934c6f.jpg");
  background-size: cover;
  /* Keep her face in frame as the viewport narrows — the interesting third of
     this photograph is centre-right, so a default `center` crops her out. */
  background-position: 62% center;
  isolation: isolate;
}

/* The left third of the photograph is a plain cream wall, which is where the
   name sits. The scrim only insures against a browser that has not painted the
   image yet — it is not doing the legibility work on its own. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 253, 250, 0.8) 0%,
    rgba(255, 253, 250, 0.5) 20%,
    rgba(255, 253, 250, 0) 40%
  );
  z-index: -1;
}

.hero__inner {
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter);
  max-width: 34rem;
}

.hero__eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--clay);
}

.hero__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.hero__name .hero__title {
  display: block;
  font-size: 0.44em;
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-weight: 400;
}

@media (max-width: 46rem) {
  /* At phone width the name stops sitting ON the photograph and sits under it.
     A 4:5 crop tall enough to show her face leaves no clean area for text, and
     a scrim strong enough to fix that is a scrim strong enough to bury her. */
  .hero {
    display: block;
    min-height: 0;
    background-image: none;
    background-color: var(--paper);
  }
  .hero::before {
    position: static;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 56vh;
    background: url("../img/hero-operating-portrait.50fe3d4e3b93.jpg") 60% 42% / cover no-repeat;
    z-index: auto;
  }
  .hero__inner {
    max-width: none;
    padding-top: clamp(1.75rem, 6vw, 2.5rem);
  }
}

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

.site-footer {
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--rule);
  background: var(--paper-warm);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  display: flex;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--clay); }
.site-footer__mm { margin-left: auto; }

/* --- interior pages ------------------------------------------------------
   Full width used with purpose: a portrait rail carries the left edge while
   the CV runs down the main column. A single centred measure would waste half
   a desktop screen and make a long career look thinner than it is.
------------------------------------------------------------------------- */

.page { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5.5rem); }

.page__head {
  max-width: 52rem;
  margin: 0 0 clamp(2.5rem, 5vw, 3.75rem);
}
.page__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--clay);
}
.page__title {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
}
.page__lead p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.9vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
  /* px, not ch: sibling blocks in different faces must share the same edge,
     because `ch` resolves per element and would stagger them. */
  max-width: 46rem;
}

.page__body {
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.page__rail { position: sticky; top: 2rem; }

.portrait { margin: 0 0 2rem; }
.portrait img {
  width: 100%;
  height: auto;
  background: var(--paper-warm);
}
.portrait figcaption {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.45;
}
.portrait figcaption span {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.rail-note {
  background: var(--paper-warmer);
  padding: 1.5rem 1.5rem 1.65rem;
}
.rail-note__title {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay);
}
.rail-note p { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--ink-soft); }

.cv-block { margin: 0 0 clamp(2.25rem, 4.5vw, 3.25rem); }
.cv-block__title {
  margin: 0 0 1.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: -0.005em;
}

.timeline { margin: 0; }
.timeline__row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
  gap: 0.5rem 1.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.timeline__row:last-child { border-bottom: none; }
.timeline__year {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--clay);
  /* A long range like "2005–2006, 2014–dosud" must wrap, not push the column. */
  min-width: 0;
  overflow-wrap: anywhere;
}
.timeline__what {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.societies { margin: 0; padding: 0; list-style: none; }
.societies li {
  padding: 0.7rem 0 0.7rem 1.35rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.societies li:last-child { border-bottom: none; }
.societies li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.42em;
  width: 0.4rem;
  height: 1px;
  background: var(--clay);
}

.cv-closing p {
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-faint);
  max-width: 46rem;
}

@media (max-width: 60rem) {
  .page__body { grid-template-columns: 1fr; }
  .page__rail { position: static; max-width: 26rem; }
}
@media (max-width: 40rem) {
  .timeline__row { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.9rem 0; }
}

.site-nav { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--clay); }
.site-nav [aria-current="page"] { color: var(--clay); }
