/* ==========================================================================
   rybansky.info — design system
   Editorial, paper-toned, serif prose. Built for three languages (EN/CS/SK).
   ========================================================================== */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/Newsreader-normal-300-600-latin.woff2') format('woff2');
  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: 'Newsreader';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/Newsreader-normal-300-600-latin-ext.woff2') format('woff2');
  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: 'Newsreader';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/Newsreader-italic-300-500-latin.woff2') format('woff2');
  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: 'Newsreader';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/Newsreader-italic-300-500-latin-ext.woff2') format('woff2');
  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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexSans-normal-400-latin.woff2') format('woff2');
  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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexSans-normal-400-latin-ext.woff2') format('woff2');
  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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexSans-normal-500-latin.woff2') format('woff2');
  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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexSans-normal-500-latin-ext.woff2') format('woff2');
  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 {
  --bg: #f7f4ee;
  --bg-raised: #fffdf9;
  --ink: #1a1916;
  --muted: #6f6b64;
  --rule: #d8d2c6;
  --accent: #b3281d;
  --measure: 38rem;
  --measure-wide: 64rem;

  --font-serif: 'Newsreader', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step-0: 1.0625rem;
  --step-prose: 1.125rem;
  --step-lead: 1.2rem;
  --step-name: 2.15rem;
  --step-h2: 1.35rem;
  --step-h3: 1.05rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --bg-raised: #1e1d1a;
    --ink: #ece8e0;
    --muted: #a19c92;
    --rule: #35322c;
    --accent: #e8705f;
  }
}

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

html {
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--accent);
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

ul,
ol {
  list-style: none;
}

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Layout ---------- */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}

.page.is-wide {
  max-width: var(--measure-wide);
}

.page.is-wide .bio,
.page.is-wide .prose,
.page.is-wide .article,
.page.is-wide .faq {
  max-width: var(--measure);
}

@media (min-width: 640px) {
  .page {
    padding: 5.5rem 1.75rem 7rem;
  }
}

@media (max-width: 420px) {
  .page {
    padding: 3rem 1.25rem 4.5rem;
  }
}

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.6rem;
}

.name {
  font-family: var(--font-serif);
  font-size: var(--step-name);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .name {
    font-size: 2.45rem;
  }
}

.name a {
  text-decoration: none;
}

.name a:hover {
  text-decoration: none;
  color: var(--ink);
}

.role-line {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.9;
}

.role-line .dot {
  color: var(--muted);
  padding: 0 0.35rem;
}

/* ---------- Navigation ---------- */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  display: inline-block;
  padding-block: 0.3rem;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--accent);
}

.nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.nav-lang {
  margin-left: auto;
  display: flex;
  gap: 0.1rem;
  align-items: center;
}

.nav-lang a[hreflang] {
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  padding-inline: 0.3rem;
}

.nav-lang a[aria-current='true'] {
  color: var(--ink);
  font-weight: 500;
}

.nav-lang .sep {
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  margin-top: 3.1rem;
  padding-top: 2.1rem;
  border-top: 1px solid var(--rule);
}

.section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.bio + .section:first-of-type,
.prose + .section:first-of-type,
article + .section:first-of-type {
  margin-top: 2.6rem;
}

.section--faq {
  border-top: 0;
  margin-top: 2.6rem;
  padding-top: 0;
}

.section--faq:first-of-type {
  margin-top: 2rem;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

h2.section-title {
  font-family: var(--font-serif);
  font-size: var(--step-h2);
  font-weight: 450;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 1.1rem;
}

h1:not(.name) {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

@media (min-width: 640px) {
  h1:not(.name) {
    font-size: 2.2rem;
  }
}

h3 {
  font-family: var(--font-serif);
  font-size: var(--step-h3);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

/* ---------- Prose ---------- */

.bio {
  display: flex;
  flex-direction: column;
  gap: 1.15em;
}

.bio p {
  font-family: var(--font-serif);
  font-size: var(--step-prose);
  line-height: 1.68;
}

.bio a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--rule);
}

.bio a:hover {
  text-decoration-color: var(--accent);
}

.lead {
  font-size: var(--step-lead) !important;
}

.vita {
  color: var(--muted);
  font-size: 1.05rem !important;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 1.15em;
}

.prose p,
.prose li {
  font-family: var(--font-serif);
  font-size: var(--step-prose);
  line-height: 1.68;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  padding-left: 1.1em;
}

.prose ul li {
  list-style: none;
  position: relative;
}

.prose ul li::before {
  content: '—';
  position: absolute;
  left: -1.1em;
  color: var(--rule);
}

.prose ol {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  counter-reset: step;
  padding-left: 1.6em;
}

.prose ol li {
  list-style: decimal;
}

.prose ol li::marker {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.prose strong {
  font-weight: 600;
}

.prose code,
code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.86em;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.1em 0.32em;
}

.prose h3 {
  margin-top: 1.4em;
  font-size: 1.2rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 1.8em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose table {
  margin: 0.4em 0;
}

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Cards / lists ---------- */

.work {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
}

.work li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.work-name {
  font-family: var(--font-serif);
  font-size: var(--step-prose);
  letter-spacing: -0.005em;
}

a.work-name {
  text-decoration: underline;
  text-decoration-color: var(--rule);
}

a.work-name:hover {
  text-decoration-color: var(--accent);
}

.work-meta {
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.work-note {
  font-family: var(--font-serif);
  font-size: 0.99rem;
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid > article {
  background: var(--bg);
  padding: 1.3rem 1.2rem 1.4rem;
}

.grid .work-name {
  display: block;
  margin-bottom: 0.15rem;
}

/* ---------- News ---------- */

.selected {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.selected li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.year {
  color: var(--muted);
  font-size: 0.88rem;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.event {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
}

.event a {
  position: relative;
}

.event a::after {
  content: '';
  position: absolute;
  inset: -0.45rem -0.3rem;
}

.quiet {
  font-family: var(--font-serif);
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 420px) {
  .selected li {
    grid-template-columns: 3.1rem 1fr;
    gap: 0.7rem;
  }
}

/* ---------- Connect ---------- */

.connect {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.connect a {
  display: inline-block;
  padding-block: 0.4rem;
}

.connect-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-open {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: inherit;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  cursor: pointer;
}

.contact-open:hover,
.contact-open[aria-expanded='true'] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
}

.contact-open[aria-expanded='true'] {
  color: var(--accent);
}

.contact-panel {
  margin-top: 1.7rem;
}

.contact-panel[hidden] {
  display: none;
}

.contact-form,
.contact-form label {
  display: flex;
  flex-direction: column;
}

.contact-form {
  gap: 1.15rem;
}

.contact-form label {
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0 0.5rem;
  border-radius: 0;
  width: 100%;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 1.2rem, calc(100% - 7px) 1.2rem;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 0.25rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0.15rem 0;
  cursor: pointer;
  position: relative;
}

.contact-form button::after {
  content: '';
  position: absolute;
  inset: -0.8rem -0.8rem;
}

.contact-form button:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-error,
.contact-note,
.contact-ok {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-error {
  color: var(--accent);
}

.contact-ok {
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0 0 0.85rem;
}

.faq details:first-of-type {
  border-top: 1px solid var(--rule);
}

.faq summary {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.85rem 0 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  align-self: center;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: auto;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq .answer {
  margin-top: 0.6rem;
  padding-right: 1.4rem;
}

.faq .answer p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-serif);
  font-size: 1rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.5;
}

thead th {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Pills / meta ---------- */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 2rem;
  padding: 0.15rem 0.65rem;
  white-space: nowrap;
}

.kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

/* ---------- Breadcrumbs ---------- */

.crumbs {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.crumbs li::after {
  content: '/';
  color: var(--muted);
  margin-left: 0.45rem;
}

.crumbs li:last-child::after {
  content: none;
}

.crumbs a {
  text-decoration: none;
  color: var(--muted);
  display: inline-block;
  padding-block: 0.3rem;
}

.crumbs a:hover {
  color: var(--accent);
}

/* ---------- Article ---------- */

.article-meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
}

.article h1 {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

@media (min-width: 640px) {
  .article h1 {
    font-size: 2.2rem;
  }
}

.article .standfirst {
  font-family: var(--font-serif);
  font-size: var(--step-lead);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.toc {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
  margin: 1.6rem 0 2rem;
}

.toc .label {
  margin-bottom: 0.5rem;
}

.toc ol {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  list-style: decimal;
  padding-left: 1.4rem;
  font-family: var(--font-serif);
  font-size: 1rem;
}

.toc a {
  text-decoration: none;
  display: inline-block;
  padding-block: 0.3rem;
}

.toc a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ---------- Callout ---------- */

.callout {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  background: var(--bg-raised);
  padding: 1rem 1.1rem;
  margin: 1.6rem 0;
}

.callout p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
}

.callout .label {
  color: var(--accent);
}

/* ---------- CTA ---------- */

.cta {
  margin-top: 3.1rem;
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
}

.cta p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta .actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.cta .actions a {
  display: inline-block;
  padding-block: 0.4rem;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer .grow {
  flex: 1 1 14rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

/* ---------- Portrait ---------- */

.portrait {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--rule);
  margin-bottom: 1.3rem;
  flex: none;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.masthead-top {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

@media (prefers-color-scheme: dark) {
  .portrait img {
    filter: grayscale(100%) contrast(1.1) brightness(0.95);
  }
}

/* ---------- Motion ---------- */

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

/* ---------- Print ---------- */

@media print {
  .nav,
  .skip,
  .contact-panel,
  .footer {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}