/* ==========================================================================
   vish — engineering notebook
   A single stylesheet. No frameworks. System type. Two themes.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  color-scheme: light;

  --paper: #fbf9f5;
  --paper-raised: #ffffff;
  --paper-sunk: #f4f1ea;
  --ink: #15140f;
  --ink-soft: #3c3931;
  --muted: #6f6a5f;
  --faint: #a29c8f;
  --rule: #e5e0d6;
  --rule-strong: #d3ccbe;
  --accent: #bf3527;
  --accent-ink: #8d2519;
  --accent-wash: #f7e6e1;
  --mark: #f6ef9c;

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

  --measure: 40rem;
  --shell: 52rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  --step-0: 1rem;
  --step--1: 0.8889rem;
  --step--2: 0.7901rem;
  --step-1: 1.125rem;
  --step-2: 1.4238rem;
  --step-3: 1.802rem;
  --step-4: 2.2815rem;
  --step-5: 2.8878rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #100f0e;
  --paper-raised: #171614;
  --paper-sunk: #0b0a09;
  --ink: #f0ece4;
  --ink-soft: #cfc9be;
  --muted: #918b7f;
  --faint: #6a655c;
  --rule: #272420;
  --rule-strong: #3a3630;
  --accent: #e8664f;
  --accent-ink: #f4907c;
  --accent-wash: #2a1713;
  --mark: #4a3f10;
}

/* --- Reset -------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl,
dt,
dd,
pre,
table {
  margin: 0;
}

dd {
  margin-inline-start: 0;
}

ul,
ol {
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--mark);
  color: var(--ink);
}

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

/* --- Shell -------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 99;
  font-size: var(--step--2);
}

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

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.masthead[data-pinned="true"] {
  border-bottom-color: var(--rule);
}

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

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.wordmark span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}

@media (max-width: 34rem) {
  .wordmark span {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 1.6rem);
  font-size: var(--step--2);
  letter-spacing: 0.02em;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

/* Theme control */

.theme {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 0.3rem 0.65rem 0.3rem 0.5rem;
  cursor: pointer;
  color: var(--muted);
  font-size: var(--step--2);
  line-height: 1;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.theme:hover {
  color: var(--ink);
  border-color: var(--faint);
}

.theme svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
}

.theme__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.theme .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme .icon-moon {
  display: block;
}

.masthead-sentinel {
  height: 1px;
  margin-top: -1px;
}

/* --- Typography primitives --------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.lede {
  font-size: var(--step-2);
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-weight: 400;
  max-width: 34rem;
  text-wrap: balance;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--rule);
}

.section--flush {
  border-top: 0;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3 {
  letter-spacing: -0.015em;
  line-height: 1.22;
  margin: 2.5rem 0 0.85rem;
}

.prose h3 {
  font-size: var(--step-1);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.08em 0.32em;
}

.prose pre {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 0 0 1.35rem;
  font-size: var(--step--2);
  line-height: 1.6;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 1em;
}

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.15rem 0 0.15rem 1.1rem;
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* --- Links -------------------------------------------------------------- */

a.link,
.prose a,
.lede a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.18s var(--ease),
    text-decoration-thickness 0.18s var(--ease);
}

a.link:hover,
.prose a:hover,
.lede a:hover {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

a.quiet {
  text-decoration: none;
}

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

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
}

.hero__top {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.hero__portrait {
  width: 4.25rem;
  height: 4.25rem;
  flex: none;
  border-radius: 3px;
  border: 1px solid var(--rule-strong);
  object-fit: cover;
  filter: saturate(1.02);
}

.hero__id {
  font-family: var(--mono);
  font-size: var(--step--2);
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted);
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

.page-deck {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34rem;
  margin: 0;
}

.hero__id strong {
  display: block;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.status::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* --- Now list ----------------------------------------------------------- */

.now {
  display: grid;
  gap: 0.7rem;
  max-width: var(--measure);
}

.now__item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
}

.now__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.now__key {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.now__val {
  color: var(--ink-soft);
}

@media (max-width: 34rem) {
  .now__item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* --- Work entries (details) -------------------------------------------- */

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

.entry {
  border-bottom: 1px solid var(--rule);
}

.entry > summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  list-style: none;
  transition: color 0.18s var(--ease);
}

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

.entry > summary:hover .entry__org {
  color: var(--accent);
}

.entry__org {
  font-size: var(--step-1);
  letter-spacing: -0.012em;
  font-weight: 500;
  transition: color 0.18s var(--ease);
}

.entry__org small {
  display: block;
  font-weight: 400;
  font-size: var(--step--2);
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 0.15rem;
}

.entry__when {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--faint);
  white-space: nowrap;
}

.entry__sign {
  width: 0.85rem;
  height: 0.85rem;
  position: relative;
  flex: none;
  align-self: center;
}

.entry__sign::before,
.entry__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: var(--faint);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}

.entry__sign::after {
  transform: rotate(90deg);
}

.entry[open] > summary .entry__sign::after {
  transform: rotate(0deg);
}

.entry[open] > summary .entry__sign::before,
.entry[open] > summary .entry__sign::after {
  background: var(--accent);
}

.entry__body {
  padding: 0 0 1.5rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: var(--step--1);
  animation: reveal 0.32s var(--ease) both;
}

.entry__body p {
  margin: 0 0 0.9rem;
}

.entry__body ul {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
}

.entry__body li {
  margin-bottom: 0.35rem;
}

.entry__body > :last-child {
  margin-bottom: 0;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry__body {
    animation: none;
  }
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 0.85rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-raised);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.card__title {
  font-size: var(--step-0);
  font-weight: 550;
  letter-spacing: -0.008em;
}

.card__meta {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.card__desc {
  font-size: var(--step--2);
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.card__tags {
  margin-top: auto;
  padding-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

/* --- Writing list ------------------------------------------------------- */

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

.post {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}

.post__title {
  font-size: var(--step-1);
  letter-spacing: -0.014em;
  line-height: 1.3;
  font-weight: 500;
  transition: color 0.18s var(--ease);
}

.post:hover .post__title {
  color: var(--accent);
}

.post__sum {
  grid-column: 1 / -1;
  font-size: var(--step--2);
  color: var(--muted);
  max-width: 36rem;
}

.post__when {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--faint);
  white-space: nowrap;
}

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

.article {
  padding: clamp(2rem, 6vw, 3.5rem) 0 0;
}

.article__head {
  max-width: var(--measure);
  margin-bottom: 2.25rem;
}

.article__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

.article__deck {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1.35rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.article__body {
  max-width: var(--measure);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.article__body h2 {
  font-family: var(--sans);
  font-size: var(--step-2);
  color: var(--ink);
  margin: 2.75rem 0 0.8rem;
  letter-spacing: -0.015em;
}

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

.article__body h3 {
  font-family: var(--sans);
  font-size: var(--step-1);
  color: var(--ink);
  margin: 2rem 0 0.6rem;
}

.article__body p {
  margin: 0 0 1.25rem;
}

.article__body ul,
.article__body ol {
  margin: 0 0 1.35rem;
  padding-left: 1.2rem;
}

.article__body li {
  margin-bottom: 0.5rem;
}

.article__body strong {
  color: var(--ink);
  font-weight: 600;
}

.article__body a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 0.18em;
}

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

.article__body code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.08em 0.32em;
}

.article__body pre {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.article__body pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 1em;
  color: var(--ink-soft);
}

.article__body blockquote {
  margin: 0 0 1.5rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
}

.article__body blockquote p:last-child {
  margin-bottom: 0;
}

.article__body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.75rem 0;
}

/* Data table inside articles */

.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.article__body th,
.article__body td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.article__body th {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--rule-strong);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article__body td:not(:first-child),
.article__body th:not(:first-child) {
  text-align: right;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.6rem;
}

/* Callout */

.note {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--paper-raised);
  padding: 0.95rem 1.15rem;
  margin: 0 0 1.6rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-soft);
}

.note p {
  margin: 0 0 0.7rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.note__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* Article footer nav */

.article__foot {
  max-width: var(--measure);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: var(--step--2);
}

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

.article__foot a:hover {
  color: var(--ink);
}

/* --- About page --------------------------------------------------------- */

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}

.timeline__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
}

.timeline__when {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--faint);
  padding-top: 0.15rem;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stack li {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
}

@media (max-width: 34rem) {
  .timeline__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* --- Colophon ----------------------------------------------------------- */

.colophon {
  border-top: 1px solid var(--rule);
  padding: clamp(2.25rem, 6vw, 3.25rem) 0 4rem;
}

.colophon__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}

.colophon h2 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.colophon ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: var(--step--2);
}

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

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

.colophon__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.6563rem;
  letter-spacing: 0.05em;
  color: var(--faint);
}

kbd {
  font-family: var(--mono);
  font-size: 0.9em;
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.05em 0.34em;
  color: var(--muted);
}

/* --- Utility ------------------------------------------------------------ */

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
}

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

.fade {
  animation: fade-up 0.5s var(--ease) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    animation: none;
  }
}

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

@media print {
  :root {
    --paper: #fff;
    --ink: #000;
    --ink-soft: #1a1a1a;
    --muted: #444;
    --rule: #ddd;
  }

  .masthead,
  .colophon,
  .article__foot,
  .skip {
    display: none;
  }

  .article__body {
    font-size: 11.5pt;
    line-height: 1.55;
    max-width: none;
  }

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