@font-face { font-family: "Ubuntu Sans"; src: url("fonts/ubuntu-sans.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Ubuntu Sans"; src: url("fonts/ubuntu-sans-italic.woff2") format("woff2"); font-weight: 100 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Ubuntu Sans Mono"; src: url("fonts/ubuntu-sans-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-600.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #FAF7F2; --ink: #1A1A1A; --graphite: #5F5B55; --rule: #E2DCD2; --gutter: #B4ADA3; --numerals: #76706A;
  --tomato: #D63A24; --tomato-deep: #B8301C; --pen: #C9341F; --on-tomato: #fff;
  --wood: #2B2724; --kraft: #C9BBA3; --linen: #EDE6D9; --linen-edge: #D8CFC0;
  --row: 40px; --pad: clamp(16px, 4vw, 64px); --gut: 64px;
  --sans: "Ubuntu Sans", system-ui, sans-serif; --mono: "Ubuntu Sans Mono", ui-monospace, monospace; --hand: "Caveat", cursive;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--tomato); color: var(--on-tomato); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--pen); }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--gutter) var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; z-index: 30; }
.skip:focus { top: 16px; }

/* ---------- nav pill ---------- */
.nav { position: fixed; z-index: 20; top: 20px; left: 50%; transform: translateX(-50%); font: 500 14px/1 var(--mono); }
.pill { display: flex; align-items: center; gap: 2px; padding: 6px; background: var(--ink); color: var(--paper); border-radius: 999px; box-shadow: 0 8px 24px -10px rgba(26, 26, 26, .45); }
.pill a, .pill button { color: inherit; text-decoration: none; padding: 11px 16px; border-radius: 999px; font: inherit; background: none; border: 0; cursor: pointer; transition: background-color .2s var(--ease); }
.pill a:hover, .pill button:hover { background: rgba(250, 247, 242, .14); }
.pill .who { font: 800 15px/1 var(--sans); padding-left: 14px; padding-right: 12px; }
.pill .links { display: flex; gap: 2px; }
.pill .links a[aria-current="true"] { background: rgba(250, 247, 242, .14); }
.pill .go { background: var(--tomato); color: var(--on-tomato); }
.pill .go:hover { background: var(--tomato-deep); }
.pill .menu-btn { display: none; }
.menu-sheet { display: none; }

/* ---------- sheet + gutter ---------- */
.sheet { position: relative; padding: 128px var(--pad) 0 calc(var(--pad) + var(--gut)); max-width: 1600px; margin: 0 auto; }
.gutter { position: absolute; top: 128px; left: var(--pad); bottom: 0; width: 40px; padding-right: 12px; border-right: 1px solid var(--rule); font: 400 12px/var(--row) var(--mono); color: var(--numerals); text-align: right; overflow: hidden; user-select: none; font-variant-numeric: tabular-nums; }

section { position: relative; }
section + section { margin-top: clamp(96px, 12vw, 168px); }
h1, h2 { font-weight: 200; letter-spacing: -0.035em; text-wrap: balance; }
h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 b, h2 b { font-weight: 800; }
h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; }
h2 + .sub { margin-top: 14px; color: var(--graphite); max-width: 38em; }
.mono { font: 400 13px/1.5 var(--mono); color: var(--graphite); }

/* ---------- pen marks ---------- */
.note { font: 600 26px/1.1 var(--hand); color: var(--pen); }
.note svg { overflow: visible; }
.strike { position: relative; color: var(--graphite); white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -2%; right: -1%; top: 54%; height: .065em; background: var(--pen); border-radius: 2px; transform-origin: left center; transform: rotate(-1deg); }
.circled { position: relative; white-space: nowrap; }
.circled > svg { position: absolute; left: -6%; top: -12%; width: 112%; height: 132%; overflow: visible; pointer-events: none; }
.circled path, .note path { fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.js .ink .strike::after { transform: rotate(-1deg) scaleX(0); transition: transform .5s var(--ease); }
.js .ink.drawn .strike::after { transform: rotate(-1deg) scaleX(1); }
.js .ink path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease) .35s; }
.js .ink.drawn path { stroke-dashoffset: 0; }
.js .ink .note, .js .note.ink { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.45, .1, .4, 1) .6s; }
.js .ink.drawn .note, .js .note.ink.drawn { clip-path: inset(0 0 0 0); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.hero h1 { font-size: clamp(44px, 6.2vw, 92px); line-height: 1.02; }
.hero h1 > span { display: block; }
.hero .fix { font-weight: 800; font-style: italic; color: var(--tomato); }
.insert { display: flex; align-items: center; gap: 6px; margin: 10px 0 0 clamp(120px, 22vw, 360px); transform: rotate(-3deg); width: max-content; }
.lead { margin-top: 26px; font-size: clamp(18px, 1.5vw, 21px); color: var(--graphite); max-width: 34em; }
.act { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn { display: inline-block; background: var(--tomato); color: var(--on-tomato); font: 800 17px/1 var(--sans); padding: 18px 28px; border-radius: 999px; text-decoration: none; transition: transform .2s var(--ease), background-color .2s var(--ease); }
.btn:hover { background: var(--tomato-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.fig img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 24%; border-radius: 2px; }
.fig figcaption { margin-top: 10px; }
.hero .note.margin { margin-top: 24px; transform: rotate(1.5deg); }
.proof { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px 32px; font: 400 14px/1.5 var(--mono); color: var(--graphite); }
.proof b { color: var(--ink); font-weight: 500; }

/* ---------- lists (services, stories) ---------- */
.rows { list-style: none; margin-top: 40px; border-top: 1px solid var(--rule); max-width: 1040px; }
.rows > li { position: relative; display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: 6px 40px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.rows h3 { font: 800 21px/1.3 var(--sans); letter-spacing: -0.01em; }
.rows p { color: var(--graphite); max-width: 40em; }
.rows p.note { color: var(--pen); }
.side-note { position: absolute; left: calc(100% + 32px); top: 18px; width: 220px; transform: rotate(-2deg); }
.side-note svg { display: block; margin: 0 0 4px; }

/* ---------- timeline ---------- */
.tl { margin-top: 48px; max-width: 1180px; }
.tl-axis, .tl-row { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 32px; }
.tl-axis .track { position: relative; height: 24px; font: 400 13px/1 var(--mono); color: var(--graphite); }
.tl-axis .track span { position: absolute; top: 0; transform: translateX(-50%); }
.tl-row { padding: 18px 0; border-top: 1px solid var(--rule); align-items: start; }
.tl-row:last-of-type { border-bottom: 1px solid var(--rule); }
.tl-row h3 { font: 800 18px/1.3 var(--sans); }
.tl-row .where { font: 400 13px/1.5 var(--mono); color: var(--graphite); margin-top: 2px; }
.tl-row .track { position: relative; height: 28px; margin-top: 2px; }
.tl-row .bar { position: absolute; top: 6px; height: 16px; background: var(--ink); border-radius: 999px; }
.tl-row .bar.now { border-radius: 999px 2px 2px 999px; }
.tl-row .bar.now::after { content: "now"; position: absolute; right: 0; top: -20px; font: 400 13px/18px var(--mono); color: var(--graphite); }
.tl-row { row-gap: 0; }
.tl-row > div:first-child { grid-row: 1 / span 2; }
.tl-row p { grid-column: 2; color: var(--graphite); max-width: 40em; margin-top: 4px; }
.tl-row .dates { font: 400 13px/1.5 var(--mono); color: var(--graphite); margin-top: 6px; }
.js .tl .bar { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.js .tl.drawn .bar { transform: scaleX(1); }
.js .tl.drawn .tl-row:nth-of-type(3) .bar { transition-delay: .08s; } .js .tl.drawn .tl-row:nth-of-type(4) .bar { transition-delay: .16s; }
.js .tl.drawn .tl-row:nth-of-type(5) .bar { transition-delay: .24s; } .js .tl.drawn .tl-row:nth-of-type(6) .bar { transition-delay: .32s; }
.edu { margin-top: 20px; }
.tl-note { position: absolute; right: 0; top: 0; transform: rotate(-3deg); }

/* ---------- stories ---------- */
.story { list-style: none; }
.story li { border-bottom: 1px solid var(--rule); }
.story a { display: block; padding: 20px 0; text-decoration: none; }
.story a:hover h3, .story a:hover h2 { text-decoration: underline; text-decoration-color: var(--pen); text-decoration-thickness: 2px; }
.story h3, .story h2 { font: 800 21px/1.3 var(--sans); letter-spacing: -0.01em; }
.story p { color: var(--graphite); margin-top: 6px; }
.story .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; font: 400 13px/1.4 var(--mono); color: var(--graphite); }
.tag { border: 1px dashed var(--gutter); border-radius: 999px; padding: 1px 8px; font: 400 13px/1.5 var(--mono); color: var(--graphite); }

/* ---------- travel ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); margin-top: 32px; max-width: 1180px; border-top: 1px solid var(--ink); }
.see-all { margin-top: 20px; font: 500 15px/1.4 var(--mono); }
.see-all a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.see-all a:hover { text-decoration: underline; text-decoration-color: var(--pen); }
.see-all svg { transition: transform .2s var(--ease); }
.see-all a:hover svg { transform: translateX(4px); }
.travel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(32px, 5vw, 80px); margin-top: 40px; max-width: 1280px; align-items: start; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.photos .wide { grid-column: 1 / -1; }
.ph-img { aspect-ratio: 3 / 2; border: 1px dashed var(--gutter); display: grid; place-items: center; padding: 16px; text-align: center; font: 400 13px/1.4 var(--mono); color: var(--graphite); background: rgba(95, 91, 85, .04); }
.ph-img.tall { aspect-ratio: 4 / 5; }
.photos .fig .frame { border: 1px dashed var(--gutter); padding: 10px; background: rgba(95, 91, 85, .04); }
.photos .fig img { aspect-ratio: 4 / 5; object-position: 50% 50%; }
.photos .fig.wide img { aspect-ratio: 3 / 2; }
.travel .story { border-top: 1px solid var(--ink); }
.map-fig { position: sticky; top: 104px; }
.map { width: 100%; height: auto; max-height: calc(100vh - 180px); display: block; }
.map .grid line { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 4; }
.map .grid text, .map .pins text, .map .sea { font: 400 13px var(--mono); fill: var(--graphite); }
.map .sea { font-style: italic; }
.map .ctx path { fill: none; stroke: var(--gutter); stroke-width: .8; stroke-linejoin: round; }
.map .been path { fill: var(--linen); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.map .pen path { fill: none; stroke: var(--pen); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map .pins circle { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.map .pins text { fill: var(--ink); font-weight: 500; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.map-note { margin-top: 10px; transform: rotate(-2deg); }

/* ---------- reading: table and shelf ---------- */
.books-room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px clamp(40px, 6vw, 96px); margin-top: 40px; max-width: 1180px; align-items: end; }
.kind { font: 500 14px/1 var(--mono); color: var(--graphite); display: flex; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.kind small { font: inherit; font-weight: 400; color: var(--graphite); }
cite { font-style: normal; }
.table { position: relative; padding: 0 6% ; }
.flat { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; padding: 10px 18px; border-radius: 3px 6px 6px 3px; font: 800 15px/1.2 var(--sans); }
.flat span { font: 400 13px/1 var(--mono); flex: none; }
.flat.b1 { background: var(--graphite); color: var(--paper); width: 92%; margin-left: 4%; transform: rotate(-1.2deg); }
.flat.b2 { background: var(--ink); color: var(--paper); width: 100%; margin-top: 2px; }
.flat::before { content: ""; position: absolute; top: 6px; bottom: 6px; right: 0; width: 5px; background: rgba(250, 247, 242, .35); border-radius: 0 4px 4px 0; }
.table .top { height: 14px; background: var(--wood); border-radius: 3px; margin: 0 -6%; box-shadow: 0 10px 18px -12px rgba(26, 26, 26, .6); }
.table .legs { display: flex; justify-content: space-between; padding: 0 4%; }
.table .legs i { width: 12px; height: 110px; background: var(--wood); }
.stack { list-style: none; }
.shelf { list-style: none; display: flex; align-items: flex-end; gap: 4px; padding: 0 12px; border-bottom: 14px solid var(--wood); min-height: 300px; position: relative; }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; box-shadow: 0 10px 18px -10px rgba(26, 26, 26, .6); pointer-events: none; }
.spine { writing-mode: vertical-rl; display: flex; justify-content: space-between; align-items: center; padding: 16px 10px; border-radius: 3px 3px 1px 1px; text-decoration: none; }
.spine cite { font: 800 15px/1.1 var(--sans); }
.spine span { font: 400 13px/1 var(--mono); }
.spine.s1 { background: var(--ink); color: var(--paper); width: 58px; height: 272px; }
.spine.s2 { background: var(--kraft); color: var(--ink); width: 64px; height: 288px; }
.spine.s3 { background: var(--graphite); color: var(--paper); width: 46px; height: 232px; }
.spine.s4 { background: var(--linen); color: var(--ink); width: 54px; height: 258px; box-shadow: inset 0 0 0 1px var(--linen-edge); }
.spine.more { background: transparent; color: var(--graphite); border: 1px dashed var(--gutter); width: 50px; height: 244px; transform: rotate(8deg); transform-origin: bottom left; margin-left: 10px; justify-content: center; transition: transform .25s var(--ease), color .2s; }
.spine.more cite { font: 400 13px/1.2 var(--mono); }
.spine.more:hover { transform: rotate(4deg); color: var(--ink); }
.shelf-note { margin: 18px 0 0 250px; transform: rotate(-2deg); display: flex; gap: 6px; align-items: flex-start; }
@media (max-width: 720px) { .shelf-note { margin-left: 0; padding-right: 20px; justify-content: flex-end; text-align: right; } .shelf-note svg { order: 2; flex: none; } }

/* ---------- contact ---------- */
.contact { padding: clamp(64px, 8vw, 120px) 0 48px; border-top: 1px solid var(--ink); }
.contact h2 { font-size: clamp(44px, 7vw, 96px); line-height: 1; max-width: 12em; }
.contact h2 em { font-weight: 800; color: var(--tomato); }
.contact .lead { margin-top: 24px; }
.contact .act { margin-top: 36px; }
.contact .links { display: flex; flex-wrap: wrap; gap: 12px 32px; font: 400 15px/1.5 var(--mono); }
.contact .links a { display: inline-flex; align-items: center; min-height: 44px; }
.contact .note { margin: 18px 0 0 clamp(16px, 6vw, 120px); transform: rotate(-2deg); display: flex; gap: 6px; align-items: flex-end; }
footer { padding: 40px 0 120px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 13px/1.5 var(--mono); color: var(--graphite); border-top: 1px solid var(--rule); margin-top: 48px; }

/* ---------- story page ---------- */
.article { max-width: 720px; }
.article .back { font: 400 14px/1.4 var(--mono); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.article h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.04; margin-top: 28px; }
.article .meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font: 400 13px/1.4 var(--mono); color: var(--graphite); }
.article .body { margin-top: 48px; }
.article .body h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 48px; }
.article .body p { margin-top: 16px; color: var(--ink); max-width: 36em; }
.article .body p.ph { color: var(--graphite); border-left: 1px dashed var(--gutter); padding-left: 16px; }
.article .fig { margin-top: 40px; }
.article .ph-img { aspect-ratio: 16 / 9; border: 1px dashed var(--gutter); display: grid; place-items: center; font: 400 13px/1.4 var(--mono); color: var(--graphite); text-align: center; padding: 16px; }
.article .body p.note { margin-top: 18px; color: var(--pen); transform: rotate(-1.5deg); }
.article + .contact { margin-top: clamp(96px, 12vw, 168px); }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .side-note { position: static; grid-column: 2; width: auto; margin-top: 6px; transform: rotate(-1.5deg); }
  .side-note svg { display: none; }
}
@media (max-width: 900px) {
  .story-grid, .travel, .books-room { grid-template-columns: 1fr; gap: 48px; }
  .map-fig { position: static; max-width: 420px; }
  .map { max-height: none; }
  .tl-axis, .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .tl-axis .label { display: none; }
  .tl-row > div:first-child { grid-row: auto; }
  .tl-row p { grid-column: 1; }
  .tl-note { position: static; margin-top: 16px; }
}
@media (max-width: 720px) {
  :root { --row: 32px; --gut: 36px; }
  html { scroll-padding-top: 24px; }
  .nav { top: auto; bottom: 16px; left: 16px; right: 16px; transform: none; }
  .pill { justify-content: space-between; }
  .pill .links { display: none; }
  .pill .right { display: flex; gap: 6px; align-items: center; }
  .pill a, .pill button { min-height: 44px; display: inline-flex; align-items: center; }
  .pill .menu-btn { display: inline-flex; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; background: rgba(250, 247, 242, .14); }
  .menu-sheet { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: var(--ink); color: var(--paper); border-radius: 24px; padding: 14px 10px; display: grid; gap: 2px; box-shadow: 0 8px 24px -10px rgba(26, 26, 26, .45); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease); }
  .menu-sheet a { font: 800 26px/1.2 var(--sans); letter-spacing: -0.02em; padding: 10px 14px; border-radius: 14px; text-decoration: none; }
  .menu-sheet a:hover { background: rgba(250, 247, 242, .1); }
  .nav.open .menu-sheet { opacity: 1; transform: none; pointer-events: auto; }
  .sheet { padding: 28px 16px 0 calc(16px + var(--gut)); }
  .gutter { top: 28px; left: 0; width: 38px; font-size: 10px; padding-right: 8px; }
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero > div { display: contents; }
  .hero .fig { order: 1; margin-top: 28px; }
  .hero .proof { order: 2; }
  .hero h1 { font-weight: 300; font-size: 44px; line-height: 1.04; }
  .insert { margin-left: 64px; }
  .note { font-size: 24px; }
  .lead { margin-top: 18px; font-size: 17px; }
  .act { margin-top: 22px; }
  .btn { padding: 16px 24px; font-size: 16px; }
  .hero .fig { max-width: 280px; }
  .hero .note.margin { display: none; }
  .proof { margin-top: 36px; gap: 8px 20px; font-size: 13px; }
  section + section { margin-top: 88px; }
  h2 { font-weight: 300; font-size: 36px; }
  .rows > li { grid-template-columns: 1fr; padding: 18px 0; }
  .side-note { grid-column: 1; }
  .photos { gap: 12px; }
  .shelf { min-height: 260px; gap: 3px; padding: 0 6px; }
  .spine.s1 { height: 236px; width: 48px; } .spine.s2 { height: 250px; width: 54px; } .spine.s3 { height: 204px; width: 40px; } .spine.s4 { height: 226px; width: 46px; } .spine.more { height: 212px; width: 42px; margin-left: 6px; transform: rotate(5deg); }
  .spine cite { font-size: 14px; }
  .flat { font-size: 13px; height: auto; min-height: 46px; padding: 8px 14px; }
  .contact h2 { font-weight: 300; font-size: 44px; }
  /* The pen note sits right under the button it points at; the links follow. */
  .contact { display: flex; flex-direction: column; }
  .contact .act { display: contents; }
  .contact .btn { align-self: flex-start; margin-top: 36px; }
  .contact .note { order: 1; }
  .contact .links { order: 2; margin-top: 24px; }
  footer { padding-bottom: 104px; }
  .article .body h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- stories index ---------- */
.index-head { max-width: 900px; }
.index-head h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1.02; margin-top: 28px; }
.index-head .sub { margin-top: 18px; color: var(--graphite); max-width: 38em; }
.filters { margin-top: 32px; display: flex; gap: 8px; font: 500 14px/1 var(--mono); }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; }
.filters a:hover { background: var(--ink); color: var(--paper); }
.index-group { margin-top: 72px; max-width: 900px; }
.index-group .story { border-top: 1px solid var(--ink); }

/* ---------- books: hover and focus ---------- */
.shelf li { display: flex; align-items: flex-end; }
.flat { text-decoration: none; }
.flat, .spine { transition: transform .32s var(--ease), box-shadow .32s var(--ease); }
.flat:hover, .flat:focus-visible { transform: translateX(14px) rotate(0deg); box-shadow: 0 8px 16px -10px rgba(26, 26, 26, .55); }
.flat.b1:hover, .flat.b1:focus-visible { transform: translateX(18px) rotate(-2deg); }
.spine:not(.more):hover, .spine:not(.more):focus-visible { transform: translateY(-18px) rotate(-2deg); box-shadow: 0 14px 18px -12px rgba(26, 26, 26, .55); }
.spine.more:focus-visible { transform: rotate(4deg); color: var(--ink); }
.flat:focus-visible, .spine:focus-visible { outline-offset: 4px; }

/* ---------- story index pages ---------- */
.index-group .story { margin-top: 48px; }
.index-group .story h2 { font: 800 21px/1.3 var(--sans); letter-spacing: -0.01em; }
.filters a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.story.thumbs a { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; }
.story.thumbs .thumb { aspect-ratio: 4 / 3; padding: 10px; transition: border-color .2s var(--ease); }
.story.thumbs a:hover .thumb { border-color: var(--graphite); }
@media (max-width: 720px) {
  .story.thumbs a { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
  .story.thumbs .thumb { font-size: 13px; padding: 6px; }
}

/* ---------- tools ---------- */
.tool-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 28px 8px; margin-top: 36px; max-width: 1180px; padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tool-strip li { position: relative; width: 96px; font: 400 13px/1.3 var(--mono); text-align: center; }
.tool-strip a { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; color: var(--graphite); text-decoration: none; transition: color .2s var(--ease); }
.tool-strip a:hover, .tool-strip a:focus-visible { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pen); }
.tool-strip .mark { transition: transform .25s var(--ease); }
.tool-strip a:hover .mark, .tool-strip a:focus-visible .mark { transform: translateY(-3px); }
.tip { position: absolute; z-index: 5; bottom: calc(100% + 10px); left: 50%; width: max-content; max-width: 200px; padding: 8px 12px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 400 13px/1.4 var(--mono); text-align: left; pointer-events: none; opacity: 0; transform: translate(-50%, 4px); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); }
.tool-strip li:hover .tip, .tool-strip li:focus-within .tip { opacity: 1; transform: translate(-50%, 0); }
.tool-strip .mark { height: 32px; display: grid; place-items: center; color: var(--ink); }
.tool-strip svg { width: 30px; height: 30px; fill: currentColor; }
.tool-strip .mask-icon { width: 30px; height: 30px; background: currentColor; -webkit-mask: var(--src) center / var(--zoom, 100%) no-repeat; mask: var(--src) center / var(--zoom, 100%) no-repeat; mask-mode: luminance; }
.tools-note { margin: 16px 0 0 16px; display: flex; gap: 8px; align-items: flex-start; transform: rotate(-2deg); }
@media (max-width: 720px) {
  .tool-strip { gap: 24px 0; padding: 22px 0; }
  .tool-strip li { width: 25%; font-size: 13px; }
  .tool-strip li:nth-child(4n+1) .tip { left: 0; transform: translate(0, 4px); }
  .tool-strip li:nth-child(4n+1):hover .tip, .tool-strip li:nth-child(4n+1):focus-within .tip { transform: none; }
  .tool-strip li:nth-child(4n+1) .tip::after { left: 24px; }
  .tool-strip li:nth-child(4n) .tip { left: auto; right: 0; transform: translate(0, 4px); }
  .tool-strip li:nth-child(4n):hover .tip, .tool-strip li:nth-child(4n):focus-within .tip { transform: none; }
  .tool-strip li:nth-child(4n) .tip::after { left: auto; right: 18px; }
  .tool-strip svg, .tool-strip .mask-icon { width: 26px; height: 26px; }
  .tools-note { margin-left: 16px; }
}

/* ---------- editor blocks inside stories ---------- */
.article .body .is-style-pen-note { margin-top: 18px; font: 600 26px/1.1 var(--hand); color: var(--pen); transform: rotate(-1.5deg); }
.article .body .wp-block-image { margin-top: 40px; }
.article .body .wp-block-image img { width: 100%; height: auto; border-radius: 2px; }
.wp-element-caption { margin-top: 10px; font: 400 13px/1.5 var(--mono); color: var(--graphite); }
.story.thumbs img.thumb { width: 100%; height: auto; padding: 0; object-fit: cover; }
@media (max-width: 720px) { .article .body .is-style-pen-note { font-size: 24px; } }

/* ---------- not found ---------- */
.index-head + .contact { margin-top: clamp(96px, 12vw, 168px); }
