/* ==========================================================================
   Swallow — ship's papers
   A warm chart-paper ground, deep ink, oxide red. Fraunces for voice,
   EB Garamond for reading, IBM Plex Mono for anything measured.
   ========================================================================== */

:root {
  --paper:      #EFE9DC;
  --paper-2:    #E7E0D0;
  --paper-3:    #DCD3BF;
  --paper-deep: #14202B;

  --ink:        #17222E;
  --ink-soft:   #5A6672;
  --ink-faint:  #8C8577;

  --accent:     #C0442A;
  --accent-dk:  #9A3520;
  --mark:       #0E3159;  /* the navy of the swallow mark itself */
  --brass:      #A8853C;
  --sea:        #4A6572;
  --sea-lt:     #7C99A6;

  --rule:       #BFB39D;
  --rule-soft:  #D2C9B4;
  --graticule:  #E2DAC8;

  --grid:       26px;
  --shell:      1280px;
  --measure:    68ch;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "EB Garamond", Georgia, serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Lobster Two Italic Bold — the typeface chosen for her transom lettering
     (outputs/swallow-name-mockup.html). Reserved for the name itself: it is a
     wordmark, not a heading face. */
  --font-name:    "Lobster Two", "Brush Script MT", cursive;

  --shadow-lift: 0 1px 0 rgba(255,255,255,.5), 0 22px 50px -28px rgba(20,32,43,.5);
  --shadow-deep: 0 30px 70px -34px rgba(20,32,43,.62);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--graticule) 1px, transparent 1px),
    linear-gradient(90deg, var(--graticule) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: -1px -1px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* fine grain over everything, so flat colour never reads as flat */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 900;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: .16;
}

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

a { color: var(--accent-dk); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--paper); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1.1rem; font-family: var(--font-mono); font-size: .74rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 999; }

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

/* --------------------------------------------------------------- shared -- */

.label,
.eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.wrap { max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--rule), transparent);
  margin: 3rem 0;
}

/* ------------------------------------------------------------ masthead -- */

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

.masthead__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: .85rem clamp(1.25rem, 4vw, 3rem);
  display: flex; align-items: center; gap: 2rem;
}

.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); }
/* The swallow mark. Taller than it is wide, so height drives the sizing. */
.brand__mark {
  height: 38px; width: auto; flex: none;
  transition: transform .35s var(--ease);
}
.brand:hover .brand__mark { transform: translateY(-2px) rotate(-4deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60, "SOFT" 40;
  font-size: 1.5rem; font-weight: 600; letter-spacing: .005em;
}
.brand__sub {
  font-family: var(--font-mono); font-size: .6rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
  margin-top: .18rem;
}

.nav { margin-left: auto; display: flex; gap: .35rem; }
.nav__link {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  padding: .55rem .8rem; border-radius: 2px;
  position: relative; transition: color .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.nav__toggle {
  display: none; margin-left: auto;
  width: 42px; height: 34px; padding: 8px 6px;
  background: none; border: 1px solid var(--rule); border-radius: 2px;
  flex-direction: column; justify-content: space-between; cursor: pointer;
}
.nav__toggle span { display: block; height: 1.5px; background: var(--ink); transition: .25s var(--ease); }

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

.hero {
  position: relative;
  max-width: var(--shell);
  margin: clamp(1.25rem, 3vw, 2.5rem) auto 0;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.hero__img {
  position: relative;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  background: var(--paper-3);
}
.hero__img img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 58%;
  filter: saturate(.93) contrast(1.03);
  animation: slowpan 38s var(--ease) infinite alternate;
}
@keyframes slowpan { from { transform: scale(1.015); } to { transform: scale(1.075); } }

/* a whisper of ink at the foot, so the panel has something to sit against */
.hero__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(190deg, transparent 55%, rgba(20,32,43,.3) 100%);
}

/* the papers, laid over the photograph */
.hero__panel {
  position: relative; z-index: 2;
  width: min(53rem, 92%);
  margin: clamp(-9rem, -11vw, -4.5rem) 0 0;
  padding: clamp(1.6rem, 3.4vw, 2.9rem) clamp(1.5rem, 3vw, 2.9rem) clamp(1.8rem, 3.4vw, 2.9rem);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-deep);
}
.hero__panel::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--rule-soft);
  margin: 6px; pointer-events: none;
}

/* The name, as it will read on her transom. A script needs room the serif did
   not: no negative tracking, and enough leading for the descender on the 'w'. */
.hero__name {
  font-family: var(--font-name);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3.1rem, 8.8vw, 6.6rem);
  line-height: 1.06;
  letter-spacing: 0;
  margin: .1rem 0 .5rem;
  padding-right: .08em;   /* the terminal stroke overhangs its advance width */
  color: var(--ink);
}
.hero__sub {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2rem; padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule-soft);
}
.hero__lede {
  font-size: 1.14rem; line-height: 1.56;
  color: var(--ink-soft);
  max-width: 38rem; margin: 0 0 1.7rem;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.hero__plate {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.hero__plate span {
  flex: 1 1 auto; text-align: center;
  padding: .85rem 1rem;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft);
  border-right: 1px solid var(--rule-soft);
}
.hero__plate span:last-child { border-right: 0; }

/* --------------------------------------------------------------- button -- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .82rem 1.4rem;
  border: 1px solid currentColor; border-radius: 2px;
  text-decoration: none; color: inherit;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--solid:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: var(--paper); }
.btn:not(.btn--solid) { border-color: var(--rule); color: var(--ink-soft); }
.btn:not(.btn--solid):hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------ page head -- */

.pagehead {
  max-width: var(--shell);
  margin: clamp(2rem, 5vw, 4rem) auto clamp(1.5rem, 4vw, 3rem);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
}
.pagehead--plain { grid-template-columns: 1fr; max-width: 1040px; }

.pagehead h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 110, "SOFT" 30;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 400; line-height: 1.02; letter-spacing: -.018em;
  margin: .5rem 0 0;
  text-wrap: balance;
}
.pagehead .lede {
  font-size: 1.24rem; line-height: 1.5; color: var(--ink-soft);
  max-width: 40rem; margin: 1.1rem 0 0;
  text-wrap: pretty;
}
.pagehead__img {
  margin: 0; border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.pagehead__img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------------------------------------------------------------- prose -- */

/* Pages read left-aligned under the page head; log entries read centred. */
.prose {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem);
}
.prose > * { max-width: var(--measure); }
.prose--entry > * { margin-inline: auto; }
.prose--home { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

.prose > h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -.012em;
  margin: 3.2rem 0 .9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  text-wrap: balance;
}
.prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.prose > h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-size: 1.28rem; font-weight: 600; letter-spacing: .002em;
  margin: 2.3rem 0 .6rem;
}
.prose > h4 {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
  margin: 2.2rem 0 .7rem;
}

.prose p { margin: 0 0 1.25rem; text-wrap: pretty; }
.prose > p:first-of-type::first-letter { }

.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; padding-left: .25rem; }
.prose ul { list-style: none; padding-left: 1.15rem; }
.prose ul > li { position: relative; }
.prose ul > li::before {
  content: "";
  position: absolute; left: -1.05rem; top: .62em;
  width: 6px; height: 6px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.prose ol { list-style: none; counter-reset: n; padding-left: 1.9rem; }
.prose ol > li { counter-increment: n; position: relative; }
.prose ol > li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: -1.9rem; top: .16em;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  color: var(--accent);
}

.prose code {
  font-family: var(--font-mono); font-size: .82em;
  background: var(--paper-3); padding: .12em .38em; border-radius: 2px;
}

.prose blockquote {
  margin: 1.8rem 0; padding: .2rem 0 .2rem 1.5rem;
  border-left: 2px solid var(--accent);
  font-style: italic; color: var(--ink-soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* full-bleed elements escape the measure */
.prose .figure--wide,
.prose .gallery,
.prose .cards,
.prose .table-wrap,
.prose .embed,
.prose .specs { max-width: none; }

.prose .gallery--wide,
.prose .figure--full {
  width: min(var(--shell), 94vw);
  margin-inline: calc(50% - min(var(--shell), 94vw) / 2);
}

/* --------------------------------------------------------------- figure -- */

.figure { margin: 2.2rem 0; }
.figure img {
  width: 100%;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift);
  background: var(--paper-3);
}
.figure figcaption {
  display: flex; gap: .7rem; align-items: baseline;
  margin-top: .7rem;
  font-family: var(--font-mono); font-size: .72rem; line-height: 1.5;
  color: var(--ink-soft);
}
.figure__plate {
  flex: none;
  font-weight: 600; letter-spacing: .1em;
  color: var(--accent);
  border: 1px solid currentColor; border-radius: 2px;
  padding: .05rem .38rem; font-size: .62rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin: 2.4rem 0;
}
.gallery .figure { margin: 0; }
.gallery .figure img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------------------------------------------------------------- cards -- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.3rem;
  margin: 2.2rem 0 3rem;
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule);
  padding: 1.4rem 1.5rem 1.5rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card--done  { border-top-color: var(--sea); }
.card--now   { border-top-color: var(--accent); }
.card--next  { border-top-color: var(--brass); }
.card--later { border-top-color: var(--rule); }

.card__head { margin-bottom: .8rem; }
.card__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-size: 1.22rem; font-weight: 600; line-height: 1.2;
  margin: .5rem 0 0;
}
.card__meta {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .08em; color: var(--ink-faint);
  margin: .35rem 0 0;
}
.card__body { font-size: .96rem; }
.card__body p { margin: 0 0 .8rem; }
.card__body p:last-child { margin-bottom: 0; }
.card__body ul { margin: 0; padding-left: 1.1rem; font-size: .94rem; }

.chip {
  display: inline-block;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 2px;
  background: var(--paper-3); color: var(--ink-soft);
}
.chip--done  { background: var(--sea);   color: var(--paper); }
.chip--now   { background: var(--accent); color: var(--paper); }
.chip--next  { background: var(--brass); color: var(--paper); }
.chip--watch { background: var(--ink);   color: var(--paper); }

/* ---------------------------------------------------------------- specs -- */

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0; margin: 2.2rem 0 2.8rem;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.spec {
  padding: .95rem 1.1rem;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.spec dt {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: .3rem;
}
.spec dd { margin: 0; font-size: 1.02rem; font-weight: 500; }

/* ----------------------------------------------------------- pull / note -- */

.pull {
  margin: 2.6rem 0;
  padding: 1.6rem 0 1.6rem 1.8rem;
  border-left: 3px solid var(--accent);
}
.pull p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60, "SOFT" 60;
  font-size: 1.5rem; line-height: 1.32; font-weight: 400;
  margin: 0; text-wrap: pretty;
}
.pull cite {
  display: block; margin-top: .8rem;
  font-family: var(--font-mono); font-size: .68rem; font-style: normal;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}

.note {
  margin: 2rem 0;
  padding: 1.15rem 1.35rem;
  background: color-mix(in srgb, var(--brass) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
  font-size: .96rem;
}
.note p:last-child { margin-bottom: 0; }

.placeholder {
  margin: 2rem 0; padding: 2.5rem 1.5rem;
  border: 1.5px dashed var(--rule);
  text-align: center; color: var(--ink-soft);
  background: repeating-linear-gradient(-45deg, transparent, transparent 12px,
              color-mix(in srgb, var(--rule) 16%, transparent) 12px,
              color-mix(in srgb, var(--rule) 16%, transparent) 24px);
}
.placeholder__tag {
  display: inline-block; margin-bottom: .8rem;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: .25rem .6rem;
}
.placeholder p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- table -- */

.table-wrap { overflow-x: auto; margin: 2rem 0 2.6rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th {
  text-align: left; padding: .6rem .9rem;
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid var(--rule);
}
td { padding: .65rem .9rem; border-bottom: 1px solid var(--rule-soft); }
tbody tr:hover { background: color-mix(in srgb, var(--paper-3) 50%, transparent); }

/* ---------------------------------------------------------------- embed -- */

.embed {
  margin: 2.2rem 0;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift);
  background: var(--paper-3);
  aspect-ratio: var(--ratio, 16 / 10);
}
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ------------------------------------------------------------- log index -- */

.entries {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem);
  display: grid; gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.entrycard {
  display: flex; flex-direction: column;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.entrycard--lead { grid-column: 1 / -1; }
.entrycard--lead .entrycard__img img { aspect-ratio: 21 / 9; }
.entrycard--lead h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.entrycard--lead .entrycard__text { max-width: 46rem; }

.entrycard__img { margin: 0 0 1.2rem; overflow: hidden; border: 1px solid var(--rule); }
.entrycard__img img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .6s var(--ease);
}
.entrycard:hover .entrycard__img img { transform: scale(1.04); }

.entrycard__stamp {
  display: flex; gap: .9rem; align-items: baseline; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: .55rem;
}
.entrycard__stamp span { color: var(--accent); }

.entrycard h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: 1.6rem; font-weight: 500; line-height: 1.15; letter-spacing: -.01em;
  margin: 0 0 .6rem; text-wrap: balance;
}
.entrycard h2 a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease); }
.entrycard h2 a:hover { background-size: 100% 1px; }
.entrycard p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 1.02rem; }

.more {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--accent-dk);
  margin-top: auto; align-self: flex-start;
}
.more::after { content: "\2192"; margin-left: .45em; transition: .25s var(--ease); display: inline-block; }
.more:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------- log entry -- */

.entry {
  max-width: var(--shell);
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.entry__head { max-width: var(--measure); margin: 0 auto clamp(1.8rem, 4vw, 3rem); }
.entry__stamp {
  display: flex; gap: 1.1rem; align-items: baseline; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .69rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
  padding-bottom: .9rem; border-bottom: 1px solid var(--rule);
}
.entry__place { color: var(--accent); }
.entry__head h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 110, "SOFT" 30;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  font-weight: 400; line-height: 1.05; letter-spacing: -.018em;
  margin: 1.2rem 0 0; text-wrap: balance;
}
.entry__head .lede {
  font-size: 1.2rem; line-height: 1.5; color: var(--ink-soft);
  margin: .9rem 0 0; text-wrap: pretty;
}
.prose--entry > p:first-of-type {
  font-size: 1.1rem;
}

.entrynav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding: 1.6rem 0 clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
}
.entrynav a { text-decoration: none; color: var(--ink); display: block; }
.entrynav a:hover { color: var(--accent); }
.entrynav__next { text-align: right; }
.entrynav .label { display: block; margin-bottom: .3rem; }
.entrynav span:last-child { font-family: var(--font-display); font-size: 1.08rem; }

/* ------------------------------------------------------------ home latest -- */

.latest {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3.5rem, 8vw, 6rem);
}
.latest__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: .9rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem;
}
.teasers {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.teaser__stamp {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: .5rem;
}
.teaser h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-size: 1.3rem; font-weight: 500; line-height: 1.2; margin: 0 0 .5rem;
}
.teaser h3 a { color: inherit; text-decoration: none; }
.teaser h3 a:hover { color: var(--accent); }
.teaser p { margin: 0; color: var(--ink-soft); font-size: .99rem; }

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

.foot {
  background: var(--paper-deep);
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  border-top: 3px solid var(--accent);
  margin-top: auto;
}
.foot__inner {
  max-width: var(--shell); margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.foot .label { color: color-mix(in srgb, var(--paper) 45%, transparent); }
.foot p { margin: .7rem 0 0; font-size: .96rem; line-height: 1.65; }
.foot__year { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; }

/* ------------------------------------------------------------ page load -- */

.pagehead, .hero, .prose, .entries, .latest, .entry {
  animation: rise .7s var(--ease) both;
}
.hero { animation-delay: .04s; }
.prose, .entries { animation-delay: .13s; }
.latest { animation-delay: .2s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

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

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 900px) {
  body { font-size: 18px; background-attachment: scroll; }

  .nav {
    position: fixed; inset: 61px 0 auto;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .5rem clamp(1.25rem, 4vw, 3rem) 1.25rem;
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
    box-shadow: var(--shadow-lift);
  }
  body.nav-open .nav { transform: none; }
  .nav__link { padding: .85rem 0; font-size: .82rem; border-bottom: 1px solid var(--rule-soft); }
  .nav__link::after { display: none; }
  .nav__toggle { display: flex; }
  body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
  body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

  .hero__img img { aspect-ratio: 4 / 3; }
  .hero__panel { width: 100%; margin-top: -3rem; }

  .pagehead { grid-template-columns: 1fr; }
  .pagehead__img { order: -1; }

  .entrynav { grid-template-columns: 1fr; gap: 1.2rem; }
  .entrynav__next { text-align: left; }
}

@media (max-width: 560px) {
  .hero__plate span { flex-basis: 50%; border-bottom: 1px solid var(--rule-soft); }
  .prose .gallery--wide, .prose .figure--full { width: auto; margin-inline: 0; }
}

@media print {
  .masthead, .nav, .foot, .entrynav, .hero__actions { display: none; }
  body { background: #fff; font-size: 11pt; }
  body::after { display: none; }
}
