/* Self-hosted copies of Caveat, Libre Franklin and Newsreader (Google Fonts, OFL). Latin and latin-ext subsets cover English and Polish. */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/caveat-normal-latin-ext-6b2267.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/caveat-normal-latin-4230ff.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: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/caveat-normal-latin-ext-6b2267.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/caveat-normal-latin-4230ff.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: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-franklin-normal-latin-ext-f7f41c.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-franklin-normal-latin-c52e5c.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: 'Libre Franklin';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/libre-franklin-normal-latin-ext-f7f41c.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/libre-franklin-normal-latin-c52e5c.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: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/libre-franklin-normal-latin-ext-f7f41c.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/libre-franklin-normal-latin-c52e5c.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: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/libre-franklin-normal-latin-ext-f7f41c.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/libre-franklin-normal-latin-c52e5c.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 800;
  font-display: swap;
  src: url(fonts/newsreader-italic-latin-ext-e36b6b.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/newsreader-italic-latin-78bd98.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 800;
  font-display: swap;
  src: url(fonts/newsreader-normal-latin-ext-7a09be.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/newsreader-normal-latin-f0c28d.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;
}
/* chriskobylecki.com
   Layout: a broadsheet front page (masthead, column rules, section desks) that opens
   into a single quiet reading column. The personal layer is the facilitator's kit:
   celadon ink for handwritten annotations and links, sticky-note yellow for highlights.
   Greens and slate come from the traditional Japanese seiji-iro, byakuroku and sekiban-iro. */

:root {
  --paper: #fbfaf7;
  --paper-2: #f2f0ea;
  --ink: #141413;
  --ink-2: #57544e;
  --ink-3: #85817a;
  --rule: #dcd8cf;
  --rule-strong: #141413;
  --marker: #2d7360;   /* deep celadon: text-safe (5.4:1 on paper) */
  --celadon: #7ebeab;  /* seiji-iro: bars, rules, underlines */
  --celadon-pale: #a5d4ad; /* byakuroku */
  --slate: #3f4551;    /* sekiban-iro */
  --note: #fbe36c;
  --note-ink: #141413;

  --f-display: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-text: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --f-ui: 'Libre Franklin', 'Franklin Gothic Medium', 'Helvetica Neue', Arial, sans-serif;
  --f-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

  --wrap: 1240px;
  --measure: 680px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}


/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 18px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--marker); outline-offset: 3px; border-radius: 2px; }

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

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.hand {
  font-family: var(--f-hand);
  color: var(--marker);
  font-weight: 700;
}

.selectable { user-select: all; }

.kicker,
.rail-label {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker a:hover { color: var(--marker); }

.rail-label {
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 14px;
}

.text-link {
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--marker);
}

.monogram {
  display: block;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-2);
}
.monogram--sm { width: 36px; height: 36px; }
.monogram--lg { width: 64px; height: 64px; }

/* ---------- masthead (front page) ---------- */

.masthead { padding-top: 14px; }

.masthead__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--ink-2);
}
.masthead__links { display: flex; align-items: center; gap: 18px; font-weight: 600; color: var(--ink); }

.masthead__name {
  margin-top: 18px;
  text-align: center;
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 72;
  font-weight: 600;
  font-size: clamp(46px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.masthead__name a:hover { text-decoration: none; }

.masthead__tag {
  text-align: center;
  margin-top: 2px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
}
.masthead__tag .hand {
  display: inline-block;
  transform: rotate(-2deg) translateX(clamp(20px, 9vw, 150px));
  position: relative;
}
.masthead__tag a.hand:hover { text-decoration: none; }
/* Marker underline, drawn once, like a flipchart heading. */
.masthead__tag .hand::after {
  content: '';
  position: absolute;
  left: 2%;
  right: -2%;
  bottom: -4px;
  height: 7px;
  background: var(--celadon);
  -webkit-mask: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.5C40 2.5 90 2 198 4' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  mask: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.5C40 2.5 90 2 198 4' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.85;
}

.masthead__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 22px;
  padding-block: 10px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 3px double var(--rule-strong);
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- compact header (inner pages) ---------- */

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar__name {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 48;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.topbar__nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 500;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
  padding-right: 24px;
}
.topbar__nav a,
.masthead__nav a { white-space: nowrap; color: var(--ink-2); }
.topbar__nav a:hover,
.masthead__nav a:hover { color: var(--ink); }
.topbar__nav a[aria-current='page'],
.masthead__nav a[aria-current='page'] { color: var(--ink); font-weight: 700; }

.progress { height: 2px; }
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--celadon);
}

/* ---------- front page ---------- */

.front { padding-block: 28px 0; }

.front__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0 36px;
}
.front__main { min-width: 0; }
.front__rail {
  min-width: 0;
  padding-left: 36px;
  border-left: 1px solid var(--rule);
  display: grid;
  gap: 34px;
  align-content: start;
}

.lead {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.lead__text { display: grid; gap: 12px; align-content: start; }
.lead__head {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 60;
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.lead__dek {
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink-2);
}
.lead__media img,
.story__media img,
.index-row__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-ui);
  font-size: 13px;
}
.byline > span { display: grid; gap: 1px; }
.byline__name { font-weight: 600; color: var(--ink); }
.byline__meta { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.front__second {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.front__second > .story { padding: 24px 0 28px; }
.front__second > .story + .story { padding-left: 28px; margin-left: 28px; border-left: 1px solid var(--rule); }
.front__second > .story:first-child { padding-right: 0; }

/* Stories */
.story { display: grid; gap: 12px; align-content: start; min-width: 0; }
.story__text { display: grid; gap: 7px; }
.story__head {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.story--md .story__head { font-size: 25px; font-variation-settings: 'opsz' 36; }
.story--sm .story__head { font-size: 20px; font-variation-settings: 'opsz' 24; }
.story__dek { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.story__meta {
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--ink-3);
}
.story__head a:hover,
.lead__head a:hover,
.latest a:hover .latest__head { text-decoration: underline; text-decoration-color: var(--marker); }

/* Rail */
.notebook__card {
  display: grid;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.notebook__lede {
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
}
.notebook__purpose {
  font-size: 25px;
  line-height: 1.1;
  transform: rotate(-1.5deg);
  margin-block: 4px;
}

.latest__list { list-style: none; margin: 0; padding: 0; counter-reset: latest; }
.latest__list li { counter-increment: latest; border-bottom: 1px solid var(--rule); }
.latest__list li:last-child { border-bottom: 0; }
.latest__list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 10px;
  padding-block: 11px;
}
.latest__list a::before {
  content: counter(latest);
  grid-row: span 2;
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1;
  color: var(--ink-3);
  font-variant-numeric: lining-nums;
}
.latest__list a:hover { text-decoration: none; }
.latest__kicker { font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.latest__head { font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.25; }

.rail-notes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rail-notes__list a { display: grid; gap: 3px; font-size: 15.5px; line-height: 1.45; }
.rail-notes__list time { font-family: var(--f-ui); font-size: 12px; font-weight: 600; color: var(--marker); }

/* Desk blocks */
.desk-block {
  margin-top: 44px;
  padding-top: 12px;
  border-top: 3px double var(--rule-strong);
}
.desk-block__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 20px;
}
.desk-block__head h2 {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 40;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.desk-block__head h2 a::after { content: ' \203A'; color: var(--ink-3); }
.desk-block__head p { font-size: 15px; color: var(--ink-2); font-style: italic; }

.desk-block__grid { display: grid; }
.desk-block__grid.cols-1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.desk-block__grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.desk-block__grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.desk-block__grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.desk-block__grid > .story { padding-inline: 22px; border-left: 1px solid var(--rule); }
.desk-block__grid > .story:first-child { padding-left: 0; border-left: 0; }
.desk-block__grid > .story:last-child { padding-right: 0; }
.desk-block__grid.cols-1 > .story--has-media { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }

/* Series band */
.series-band {
  margin-top: 56px;
  padding: 32px clamp(20px, 4vw, 44px);
  background: var(--paper-2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px 48px;
}
.series-band__intro h2 {
  font-family: var(--f-hand);
  font-size: 40px;
  line-height: 1;
  color: var(--marker);
  transform: rotate(-1.5deg);
  transform-origin: left;
}
.series-band__intro p { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.series-band__list { list-style: none; margin: 0; padding: 0; }
.series-row + .series-row { border-top: 1px solid var(--rule); }
.series-row a {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 64px;
  align-items: center;
  gap: 18px;
  padding-block: 13px;
}
.series-row a:hover { text-decoration: none; }
.series-row a:hover .series-row__name { text-decoration: underline; text-decoration-color: var(--marker); }
.series-row__name { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.series-row__bar { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.series-row__bar span { display: block; height: 100%; background: var(--celadon); border-radius: 3px; min-width: 6px; }
.series-row__count { font-family: var(--f-ui); font-size: 13px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

/* Letters */
.letters {
  margin-block: 56px 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 48px;
  align-items: center;
}
.letters h2 {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 48;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.01em;
}
.letters p { color: var(--ink-2); margin-top: 6px; }
.letters__form { display: flex; flex-wrap: wrap; gap: 10px; }
.letters__form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  font: 16px var(--f-ui);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-3);
  border-radius: 2px;
}
.letters__form input:focus { outline: 2px solid var(--marker); outline-offset: 0; border-color: var(--marker); }
.letters__form button {
  padding: 12px 22px;
  font: 600 15px var(--f-ui);
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.letters__form button:hover { background: var(--slate); }
.letters__status { flex-basis: 100%; font-family: var(--f-ui); font-size: 14px; }

/* ---------- article (reader) ---------- */

.reader { padding-inline: var(--gutter); }

.essay { max-width: var(--measure); margin-inline: auto; padding-block: 48px 24px; }

.essay__head { display: grid; gap: 16px; }
.essay__head h1 {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 72;
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.essay__dek {
  font-size: clamp(20px, 2.4vw, 23px);
  line-height: 1.4;
  color: var(--ink-2);
}
.essay__head .byline { margin-top: 8px; padding-block: 14px; border-block: 1px solid var(--rule); }

/* The same piece in the other language. */
.lang-switch { justify-self: start; margin-top: -6px; font-size: 14px; font-weight: 600; }
.lang-switch a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border: 1px solid var(--celadon); border-radius: 999px;
  color: var(--marker); text-decoration: none;
}
.lang-switch a::before { content: '⇄'; font-weight: 400; }
.lang-switch a:hover { background: var(--celadon); color: var(--ink); }

.essay__figure { margin: 36px 0 0; }
.essay__figure img { width: 100%; border: 1px solid var(--rule); background: var(--paper-2); }
.essay__figure figcaption {
  margin-top: 8px;
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--ink-3);
}

.prose {
  font-size: 20.5px;
  line-height: 1.62;
  letter-spacing: 0.002em;
}
.essay .prose { margin-top: 36px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  margin-top: 1.9em;
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 36;
  font-weight: 650;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose h3 {
  margin-top: 1.6em;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.prose h2 + *,
.prose h3 + * { margin-top: 0.55em; }
.prose a { color: var(--marker); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose em { font-style: italic; }
.prose strong { font-weight: 650; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--ink-3); }
.prose hr { border: 0; text-align: center; margin-block: 2em; }
.prose hr::before { content: '\2217\2003\2217\2003\2217'; color: var(--ink-3); }

/* Drop cap on the opening paragraph */
.essay .prose > p:first-child::first-letter {
  float: left;
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 72;
  font-weight: 600;
  font-size: 4.1em;
  line-height: 0.82;
  margin: 0.06em 0.09em 0 0;
}

.prose blockquote {
  margin-inline: 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--celadon);
  color: var(--ink);
  font-style: italic;
}
.prose blockquote h3 { font-style: normal; margin-top: 0; }
.prose blockquote > * + * { margin-top: 0.8em; }

.pull {
  margin-block: 1.6em !important;
  padding-block: 18px;
  border-block: 1px solid var(--rule-strong);
}
.pull p {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 60;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.pull p::before { content: '\201C'; }
.pull p::after { content: '\201D'; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table,
.rooms {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.4;
}
.prose th,
.prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.prose thead th { font-weight: 700; border-bottom: 1px solid var(--rule-strong); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

.prose code {
  font-size: 0.85em;
  background: var(--paper-2);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Code blocks wrap inside the column instead of pushing the page sideways. */
.prose pre {
  margin: 1.4em 0;
  padding: 16px 18px;
  background: var(--paper-2);
  border-radius: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prose pre code { padding: 0; background: none; font-size: 0.8em; line-height: 1.6; }

.sources {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.sources h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.sources ul { padding-left: 1.1em; margin: 12px 0 0; display: grid; gap: 8px; }

.essay__foot { margin-top: 48px; display: grid; gap: 36px; }

.series-nav__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.series-nav__links a {
  display: grid;
  gap: 4px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
}
.series-nav__links a span {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--marker);
}
.series-nav__next { text-align: right; }

.author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--paper-2);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.author-card a { color: var(--marker); }
.author-card__name { font-family: var(--f-display); font-weight: 600; font-size: 20px; color: var(--ink); margin-bottom: 4px; }

.more {
  max-width: var(--wrap);
  margin: 40px auto 64px;
}
.more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.more__grid > .story { padding-inline: 22px; border-left: 1px solid var(--rule); }
.more__grid > .story:first-child { padding-left: 0; border-left: 0; }

/* ---------- desk & notes pages ---------- */

.section-page,
.notes-page { padding-block: 40px 64px; }

.section-page__head {
  padding-bottom: 22px;
  border-bottom: 3px double var(--rule-strong);
  display: grid;
  gap: 10px;
}
.section-page__head h1 {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 72;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.section-page__head p { font-size: 19px; color: var(--ink-2); font-style: italic; max-width: 640px; }

.index-list { list-style: none; margin: 0; padding: 0; }
.index-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 220px;
  gap: 28px;
  padding-block: 26px;
  border-bottom: 1px solid var(--rule);
}
.index-row time { font-family: var(--f-ui); font-size: 13px; color: var(--ink-2); padding-top: 2px; font-variant-numeric: tabular-nums; }
.index-row__text { display: grid; gap: 8px; align-content: start; }
.index-row h2 {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 36;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
}

.notes-stream { max-width: var(--measure); margin-inline: auto; }
.note { padding-block: 36px; border-bottom: 1px solid var(--rule); scroll-margin-top: 80px; }
.note:target { background: linear-gradient(var(--note), var(--note)) no-repeat left top / 4px 100%; padding-left: 20px; }
.note__head { display: flex; align-items: center; gap: 12px; font-family: var(--f-ui); font-size: 13px; }
.note__head > span { display: grid; }
.note__body { margin-top: 18px; font-size: 19px; }
.note__body > p:first-child {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 36;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.25;
}
.note__related {
  margin-top: 20px;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
}
.note__related span { font-family: var(--f-ui); font-size: 12px; font-weight: 600; color: var(--marker); }
.note__related:hover { border-color: var(--ink); text-decoration: none; }

/* ---------- about ---------- */

.about { padding-block: 48px 72px; }
.about__head {
  display: grid;
  grid-template-columns: minmax(0, 880px) 220px;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 3px double var(--rule-strong);
}
.about__intro { display: grid; gap: 16px; }
.about__photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.about__head h1 {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 72;
  font-weight: 600;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.about__dek { font-size: 22px; line-height: 1.4; color: var(--ink-2); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
  gap: 56px;
  margin-top: 36px;
}
.about__body { min-width: 0; }
.about__body blockquote {
  border-left: 0;
  padding: 0;
  margin-block: 1.6em;
  font-style: normal;
}
.about__body blockquote p {
  font-family: var(--f-hand);
  font-weight: 700;
  color: var(--marker);
  font-size: 34px;
  line-height: 1.1;
  transform: rotate(-1deg);
}
.about__aside { display: grid; gap: 40px; align-content: start; min-width: 0; }
.rooms th,
.rooms td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.rooms thead th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.rooms tbody th { font-weight: 700; }
.rooms tbody th span { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.rooms__total { margin-top: 12px; font-size: 16px; font-style: italic; color: var(--ink-2); }
.focus { list-style: none; margin: 0; padding: 0; font-family: var(--f-ui); font-size: 15px; }
.focus li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.focus a { color: inherit; text-decoration: none; display: flex; justify-content: space-between; gap: 12px; }
.focus a::after { content: '→'; color: var(--ink-2); opacity: .6; }
.focus a:hover { text-decoration: underline; text-underline-offset: 3px; }
.focus a:hover::after { opacity: 1; }
.contact__lede { margin-bottom: 10px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.contact { font-family: var(--f-ui); font-size: 15px; line-height: 1.8; }
.contact a { color: var(--marker); }

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

.site-footer { border-top: 1px solid var(--rule-strong); background: var(--paper); }
.site-footer__inner { padding-block: 28px 40px; display: grid; gap: 16px; }
.site-footer__sign { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.site-footer__name { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -0.015em; }
.site-footer__sign .hand { font-size: 24px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--f-ui); font-size: 14px; color: var(--ink-2); }
.site-footer__meta { font-family: var(--f-ui); font-size: 13px; color: var(--ink-3); }
.site-footer__meta a { text-decoration: underline; text-underline-offset: 2px; }

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

@media (max-width: 1080px) {
  .front__top { grid-template-columns: minmax(0, 1fr); }
  .front__rail {
    padding-left: 0;
    border-left: 0;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 3px double var(--rule-strong);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
  }
  .desk-block__grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk-block__grid.cols-4 > .story:nth-child(3) { padding-left: 0; border-left: 0; }
  .desk-block__grid.cols-4 > .story:nth-child(n + 3) { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule); }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__head { grid-template-columns: minmax(0, 1fr); }
  .about__photo { width: 140px; height: 140px; grid-row: 1; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .masthead__top { font-size: 12px; }
  .masthead__date { max-width: 60%; }
  .masthead__links a { display: none; }
  .masthead__tag .hand { transform: rotate(-2deg); }
  .masthead__nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 22px; scrollbar-width: none; }

  .lead { grid-template-columns: minmax(0, 1fr); }
  .lead__media { order: -1; }
  .front__second,
  .desk-block__grid.cols-2,
  .desk-block__grid.cols-3,
  .desk-block__grid.cols-4,
  .more__grid { grid-template-columns: minmax(0, 1fr); }
  .front__second > .story + .story,
  .desk-block__grid > .story,
  .more__grid > .story { padding-inline: 0; margin-left: 0; border-left: 0; }
  .front__second > .story + .story { border-top: 1px solid var(--rule); }
  .desk-block__grid > .story + .story,
  .more__grid > .story + .story { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule); }
  .desk-block__grid.cols-4 > .story:nth-child(n + 3) { margin-top: 20px; }
  .desk-block__grid.cols-1 > .story--has-media { grid-template-columns: minmax(0, 1fr); }
  .story--sm.story--has-media { grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; }
  .story--sm.story--has-media .story__media { order: 2; }
  .story--sm.story--has-media .story__dek { display: none; }

  .series-band,
  .letters { grid-template-columns: minmax(0, 1fr); }
  .series-row a { grid-template-columns: minmax(0, 1fr) 64px; gap: 6px 14px; }
  .series-row__bar { grid-column: 1 / -1; grid-row: 2; }

  .topbar__inner { gap: 14px; }
  .topbar__name { font-size: 20px; }
  .topbar__nav { gap: 16px; }

  .essay { padding-top: 32px; }
  .prose { font-size: 19px; line-height: 1.6; }
  .prose h2 { font-size: 24px; }
  .series-nav__links { grid-template-columns: minmax(0, 1fr); }
  .series-nav__next { text-align: left; }
  .author-card { flex-direction: column; }

  .index-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .index-row time { order: -1; }
  .index-row__media { max-width: 320px; }
}

@media (prefers-reduced-motion: no-preference) {
  .masthead__tag .hand::after { animation: draw 0.9s 0.2s ease-out both; transform-origin: left; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.author-card__links { margin: 8px 0 0; font-family: var(--f-ui); font-size: 14px; }
