/* techauthors.eu preview
   Same teal family as the live site (W3.CSS teal, darkened to clear WCAG AA),
   but set in a serif at a reading measure: this side of the brand is the
   biography, the craft and the CV, so it is built to be read, not scanned.
   One radius (--radius) for every corner on the page. */

:root {
  --ink: #1a1a1a;
  --ink-2: #4f5a59;
  --teal: #00665c;
  --band: #12312c;
  --band-soft: #c9ded9;
  --paper: #ffffff;
  --paper-2: #f2f4f3;
  --rule: #d9dedd;
  --radius: 2px;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2.25rem; --s7: 3.25rem; --s8: 5rem;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t--1: 0.8125rem;
  --t-0: 1.125rem;
  --t-1: 1.25rem;
  --t-2: 1.4375rem;
  --t-3: clamp(1.55rem, 1.2rem + 1.5vw, 2.1rem);
  --t-4: clamp(1.75rem, 1.05rem + 3.4vw, 3.15rem);

  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--t-0)/1.65 var(--serif);
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 var(--s3); font-weight: 700; }
h1 { font-size: var(--t-4); letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: var(--t-3); }
h3 { font-size: var(--t-2); margin-top: var(--s6); }
h4 { font-size: var(--t-1); margin-top: var(--s5); font-weight: 700; }
p { margin: 0 0 var(--s4); max-width: var(--measure); text-wrap: pretty; }

a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: var(--radius); }
.band :focus-visible, .site-foot :focus-visible { outline-color: var(--band-soft); }

.skip {
  position: absolute; left: var(--s4); top: -4rem; z-index: 2;
  background: var(--band); color: #fff; padding: var(--s3) var(--s4);
  border-radius: var(--radius); text-decoration: none; font-family: var(--sans);
}
.skip:focus { top: var(--s2); }

.wrap { max-width: 64rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }

.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.head-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--s2); padding-block: var(--s2);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: var(--t-1); font-weight: 700;
}
.brand .dot { color: var(--teal); }
.navlist { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); list-style: none; margin: 0; padding: 0; }
.navlist a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s2);
  font-family: var(--sans); font-size: var(--t--1); letter-spacing: 0.01em;
  color: var(--ink-2); text-decoration: none;
}
.navlist a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }

.band { background: var(--band); color: #fff; }
.band a { color: var(--band-soft); }
.band h1, .band h2 { color: #fff; }
.hero { padding-block: clamp(2.75rem, 8vw, 6rem); }
.hero h1 { max-width: 19ch; }
.kicker {
  font-family: var(--sans); font-size: var(--t--1); color: var(--band-soft);
  margin-bottom: var(--s4);
}
.lead { font-size: var(--t-1); max-width: 54ch; }
.band-2 { padding-block: clamp(2rem, 5vw, 3.25rem); }

.sec-about    { padding-block: var(--s8) var(--s7); }
.sec-work     { padding-block: var(--s7); }
.sec-cv       { padding-block: var(--s7) var(--s8); background: var(--paper-2); border-block: 1px solid var(--rule); }
.sec-knowledge{ padding-block: var(--s6) var(--s7); }

.secnum {
  font-family: var(--sans); font-size: var(--t--1); font-weight: 700;
  letter-spacing: 0.08em; color: var(--teal); margin: 0 0 var(--s2);
}
.sec h2 { margin-bottom: var(--s5); }
.narrative { max-width: var(--measure); }
.narrative > h3:first-child { margin-top: 0; }
.lead-2 { font-size: var(--t-1); }
.note { font-family: var(--sans); font-size: var(--t--1); color: var(--ink-2); }

blockquote {
  margin: var(--s6) 0; padding-left: var(--s5);
  border-left: 3px solid var(--teal);
  font-size: var(--t-1); font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

ul.ticks { list-style: none; margin: 0 0 var(--s4); padding: 0; }
ul.ticks li { position: relative; padding-left: var(--s5); margin-bottom: var(--s2); }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.75em;
  width: 0.6rem; height: 2px; background: var(--teal);
}
@media (min-width: 45em) {
  ul.two-up { columns: 2; column-gap: var(--s6); }
  ul.two-up li { break-inside: avoid; }
}

ol.cvlist { list-style: none; margin: 0 0 var(--s4); padding: 0; }
ol.cvlist li { padding-block: var(--s4); border-top: 1px solid var(--rule); }
ol.cvlist li:last-child { border-bottom: 1px solid var(--rule); }
ol.cvlist b { display: block; font-family: var(--sans); font-size: var(--t-0); }
ol.cvlist span { display: block; color: var(--ink-2); font-size: 1rem; padding-top: var(--s1); }

ul.linklist { list-style: none; margin: 0 0 var(--s4); padding: 0; }
ul.linklist li { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
ul.linklist a {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); width: 100%; min-height: 44px; font-weight: 700;
}
ul.linklist a::after {
  content: "\203A"; font-size: 1.5em; line-height: 1; opacity: 0.5;
  text-decoration: none; flex: none;
}
ul.linklist span { display: block; color: var(--ink-2); font-size: 1rem; }

.strip { margin: 0; }
.strip img { width: 100%; height: clamp(8rem, 26vw, 15rem); object-fit: cover; }
.portrait {
  width: 100%; max-width: 14rem; border-radius: var(--radius);
  margin: 0 0 var(--s5);
}
@media (min-width: 45em) {
  .portrait { float: right; margin: 0 0 var(--s5) var(--s5); shape-margin: 1rem; }
}

dl.contact { margin: 0; }
dl.contact dt { font-family: var(--sans); font-size: var(--t--1); color: var(--band-soft); }
dl.contact dd { margin: 0; font-size: var(--t-1); border-bottom: 1px solid rgba(255,255,255,0.22); }
dl.contact dt { padding-top: var(--s3); }
dl.contact a { display: flex; align-items: center; width: 100%; min-height: 56px; }

.site-foot { border-top: 1px solid var(--rule); padding-top: var(--s5); }
.site-foot p { font-family: var(--sans); font-size: var(--t--1); color: var(--ink-2); margin-bottom: var(--s3); }

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


/* ─────────────────────────────────────────────────────────────────────
   Mobile pass 2026-09-26. Phones get their own nav, section rhythm and
   portrait treatment; the reading column above 45em is untouched.
   ───────────────────────────────────────────────────────────────────── */

/* Nav: one row that fits, five anchors sharing the width below the brand. */
@media (max-width: 47.99em) {
  .head-row { padding-block: var(--s1); gap: 0; }
  .brand { font-size: var(--t-0); padding-block: var(--s1); }
  .navlist {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: space-between;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-top: 1px solid var(--rule);
  }
  .navlist::-webkit-scrollbar { display: none; }
  .navlist li { flex: 1 1 0; display: flex; }
  .navlist a {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.75rem;
    padding-inline: var(--s1);
    min-height: 48px;
    border-bottom: 2px solid transparent;
  }
  /* "CV" is a 2-letter label; the equal flex-grow above still lets it
     shrink to its own min-content unless it is given its own floor. */
  .navlist a[href="#cv"] { min-width: 44px; }
  .navlist a:hover, .navlist a:focus-visible { border-bottom-color: var(--teal); }
}

/* The 44px floor above stops at 47.99em, so a 768px viewport (48em) falls
   through to the desktop nav rule and "CV" shrinks below the touch target
   again. Re-apply the floor up to 768px inclusive. */
@media (max-width: 48em) {
  .navlist a[href="#cv"] { min-width: 44px; }
}

/* Section rhythm: number and heading ride a full-width rule, and the
   4pt scale tightens by two steps so sections read as sections. */
@media (max-width: 47.99em) {
  .sec > .wrap > .secnum {
    border-top: 2px solid var(--teal);
    padding-top: var(--s3);
  }
  .sec h2 { margin-bottom: var(--s4); }
  .sec-about     { padding-block: var(--s6) var(--s5); }
  .sec-work      { padding-block: var(--s6) var(--s5); }
  .sec-cv        { padding-block: var(--s6); }
  .sec-knowledge { padding-block: var(--s6) var(--s5); }
  .band-2        { padding-block: var(--s6); }

  h3 { margin-top: var(--s5); font-size: var(--t-1); }
  h4 { margin-top: var(--s4); }
  blockquote { margin-block: var(--s5); padding-left: var(--s4); }
}

/* Lists: the ten-role CV and the service lists get tighter leading and
   a clearer break between rows. */
@media (max-width: 47.99em) {
  ul.ticks li { line-height: 1.45; margin-bottom: var(--s3); }
  ul.ticks li::before { top: 0.62em; }
  ol.cvlist li { padding-block: var(--s3); }
  ol.cvlist span { line-height: 1.5; }
  ul.linklist span { line-height: 1.45; }
}

/* Portrait: leads the biography at full column width, never floated. */
@media (max-width: 44.99em) {
  .portrait {
    width: 100%;
    max-width: none;
    margin: 0 0 var(--s5);
  }
}
