/* =========================================================================
   In Written Word — design system
   Edit the tokens in :root to change colour, type and spacing site-wide.
   ========================================================================= */

@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/garamond.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/garamond-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dmmono-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }

:root {
  /* colour */
  --paper: #FDFCF9;
  --white: #FFFFFF;
  --ink: #1D1C1A;
  --muted: #625D56;
  --rule: #E6E1D6;
  --cobalt: #2B52A0;        /* brand accent: links, buttons, section words */
  --cobalt-deep: #213F7C;
  --tint-go: #F7F0DA;       /* section washes, after the old Goop pastels */
  --tint-taste: #F7E7E1;
  --tint-see: #E5EFE8;
  --tint-be: #EBE9F5;
  --tint-get: #F2EBDF;
  --scrim: rgba(29, 28, 26, .42);

  /* type */
  --serif-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --serif: "EB Garamond", "Iowan Old Style", Garamond, Georgia, serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-xs: .8125rem;
  --fs-s: .9375rem;
  --fs-base: 1.125rem;
  --fs-prose: 1.1875rem;
  --fs-m: 1.375rem;
  --fs-l: 1.75rem;
  --fs-xl: clamp(2rem, 5.5vw, 2.75rem);
  --fs-display: clamp(2.35rem, 7vw, 4.25rem);

  /* space (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --gutter: 1.25rem;
  --measure: 34rem;
  --wide: 72rem;

  /* shape + motion */
  --r-s: 2px;
  --r-m: 6px;
  --r-sheet: 16px;
  --shadow-sheet: 0 -10px 40px rgba(29, 28, 26, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 3.5rem;
  --tab-h: 3.5rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (min-width: 960px) {
  :root { --gutter: 2.5rem; --fs-prose: 1.25rem; --header-h: 4.25rem; }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--safe-t) + 1rem); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: var(--fs-base); line-height: 1.55;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
  overflow-x: hidden;
}
@media (min-width: 960px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--cobalt-deep); }
h1, h2, h3 { font-family: var(--serif-display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: var(--r-s); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); border-radius: var(--r-s); }
.skip:focus { top: calc(var(--s-3) + var(--safe-t)); color: var(--paper); }

/* ------------------------------------------------------------------ header + navigation */
.site-header {
  position: sticky; top: 0; z-index: 30;
  padding-top: var(--safe-t);
  background: rgba(253, 252, 249, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { height: var(--header-h); max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: center; }
.wordmark { font-family: var(--serif-display); font-size: 1.375rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.wordmark:hover { color: var(--ink); }
.wordmark.small { font-size: 1.25rem; }
.desk-nav { display: none; }
@media (min-width: 960px) {
  .header-inner { justify-content: space-between; }
  .wordmark { font-size: 1.5rem; }
  .desk-nav { display: flex; align-items: center; gap: var(--s-5); }
  .desk-nav a { color: var(--ink); text-decoration: none; font-size: 1.125rem; padding: var(--s-2) 0; border-bottom: 1px solid transparent; }
  .desk-nav a:hover { color: var(--cobalt); }
  .desk-nav a[aria-current="page"] { color: var(--cobalt); border-bottom-color: var(--cobalt); }
  .nav-sep { width: 1px; height: 1.1rem; background: var(--rule); }
}

.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(253, 252, 249, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
}
.tabbar a { display: flex; align-items: center; justify-content: center; position: relative; color: var(--muted); text-decoration: none; font-size: 1rem; min-height: 44px; }
.tabbar a[aria-current="page"] { color: var(--cobalt); }
.tabbar a[aria-current="page"]::after { content: ""; position: absolute; top: 0; left: 50%; width: 1.5rem; height: 2px; margin-left: -.75rem; background: var(--cobalt); }
@media (min-width: 960px) { .tabbar { display: none; } }

/* ------------------------------------------------------------------ shared pieces */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-s); font-family: var(--serif); font-size: 1.0625rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-solid { background: var(--cobalt); color: var(--white); border: 1px solid var(--cobalt); }
.btn-solid:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: var(--white); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.text-btn { background: none; border: 0; color: var(--muted); font-style: italic; min-height: 44px; padding: 0 var(--s-4); cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.sec-word { font-style: italic; color: var(--cobalt); }
.sec-tag { font-style: italic; font-size: 1.125rem; text-decoration: none; }
time, .lead-meta, .essay-meta { font-family: var(--mono); font-weight: 300; font-size: var(--fs-xs); letter-spacing: .02em; color: var(--muted); }

.sec-bg-go { background: var(--tint-go); }
.sec-bg-taste { background: var(--tint-taste); }
.sec-bg-see { background: var(--tint-see); }
.sec-bg-be { background: var(--tint-be); }
.sec-bg-get { background: var(--tint-get); }
.sec-go { --tint: var(--tint-go); }
.sec-taste { --tint: var(--tint-taste); }
.sec-see { --tint: var(--tint-see); }
.sec-be { --tint: var(--tint-be); }
.sec-get { --tint: var(--tint-get); }

.block { max-width: var(--wide); margin: 0 auto; padding: var(--s-7) var(--gutter); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-4); }
.block-head h2 { font-size: var(--fs-l); }
.block-head a { font-style: italic; font-size: 1.0625rem; min-height: 44px; display: inline-flex; align-items: center; }
.block-intro { font-style: italic; color: var(--muted); margin-bottom: var(--s-5); font-size: 1.125rem; }

.page-head { max-width: 46rem; margin: 0 auto; padding: var(--s-7) var(--gutter) var(--s-4); text-align: center; }
.page-head h1 { font-size: var(--fs-display); }
.page-head > p { font-style: italic; color: var(--muted); font-size: 1.25rem; margin-top: var(--s-3); }
.page-head.center { padding-bottom: var(--s-9); }
.page-head.center .btn { margin-top: var(--s-6); }
.about-icons, .sheet-icons { display: flex; justify-content: center; align-items: flex-end; gap: var(--s-4); margin-bottom: var(--s-5); }
.mini { height: 34px; width: auto; }

/* ------------------------------------------------------------------ home */
.masthead { text-align: center; padding: var(--s-6) var(--gutter) var(--s-6); max-width: var(--wide); margin: 0 auto; }
.verbs ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 46rem; gap: var(--s-2); }
.verbs a { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--ink); padding: var(--s-2) 0; min-height: 44px; }
.verb-icon { height: 52px; width: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.verbs span { font-style: italic; font-size: 1.125rem; }
.verbs a:hover .verb-icon { transform: translateY(-3px) rotate(-2deg); }
.verbs a:hover span { color: var(--cobalt); }
.tagline { font-style: italic; color: var(--muted); font-size: 1.25rem; margin-top: var(--s-5); }
@media (min-width: 960px) {
  .masthead { padding: var(--s-8) var(--gutter) var(--s-7); }
  .verb-icon { height: 92px; }
  .verbs span { font-size: 1.3125rem; }
  .tagline { font-size: 1.5rem; }
}
/* one orchestrated entrance: the icons arrive in sequence on the home page */
@media (prefers-reduced-motion: no-preference) {
  .home .verbs li { opacity: 0; transform: translateY(8px); animation: rise .7s var(--ease) forwards; }
  .home .verbs li:nth-child(2) { animation-delay: .08s; }
  .home .verbs li:nth-child(3) { animation-delay: .16s; }
  .home .verbs li:nth-child(4) { animation-delay: .24s; }
  .home .verbs li:nth-child(5) { animation-delay: .32s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

.lead { max-width: var(--wide); margin: 0 auto; }
.lead-link { display: grid; color: var(--ink); text-decoration: none; }
.lead-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--rule); max-height: 78svh; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lead-link:hover .lead-media img { transform: scale(1.02); }
.lead-body { padding: var(--s-5) var(--gutter) var(--s-4); }
.lead-kicker { font-style: italic; color: var(--muted); font-size: 1.0625rem; }
.lead-title { font-size: var(--fs-xl); margin: var(--s-2) 0 var(--s-3); }
.lead-ex { font-size: 1.1875rem; line-height: 1.5; color: #3B3833; max-width: 32rem; }
.lead-meta { display: flex; gap: var(--s-4); margin: var(--s-4) 0 var(--s-5); }
@media (min-width: 960px) {
  .lead { padding: 0 var(--gutter); }
  .lead-link { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); align-items: center; }
  .lead-media { max-height: 82vh; border-radius: var(--r-s); }
  .lead-body { padding: 0; }
  .lead-title { font-size: 3.25rem; }
}

.rows { list-style: none; margin: 0; padding: 0; }
.row a { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); padding: var(--s-4) 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); align-items: center; }
.row:last-child a { border-bottom: 0; }
.row-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-s); background: var(--rule); }
.row-media img, .row-media .type-card { width: 100%; height: 100%; object-fit: cover; }
.row-title { font-size: 1.3125rem; margin: var(--s-1) 0; }
.row a:hover .row-title { color: var(--cobalt); }
.row-ex { display: none; color: var(--muted); font-size: 1.0625rem; line-height: 1.45; }
@media (min-width: 720px) {
  .row a { grid-template-columns: 140px 1fr; gap: var(--s-6); }
  .row-ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 40rem; }
  .row-title { font-size: 1.625rem; }
}

.card-meta { display: flex; align-items: baseline; gap: var(--s-3); font-size: 1rem; }

.guide-cards { list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--s-2); display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.guide-cards::-webkit-scrollbar { display: none; }
.guide-card { scroll-snap-align: start; }
.guide-card a { display: block; color: var(--ink); text-decoration: none; }
.guide-card-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-s); background: var(--rule); }
.guide-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.guide-card a:hover img { transform: scale(1.02); }
.guide-card h3 { font-size: var(--fs-l); margin-top: var(--s-3); }
.guide-card p { font-style: italic; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 720px) {
  .guide-cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: var(--s-6); }
}
.guide-cards.grid { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; margin: 0; padding: 0; gap: var(--s-6); }
@media (min-width: 720px) { .guide-cards.grid { grid-template-columns: repeat(3, 1fr); } }

.shop-teaser { text-align: center; background: var(--tint-get); padding: var(--s-8) var(--gutter); margin-top: var(--s-6); }
.shop-icon { height: 84px; width: auto; margin: 0 auto var(--s-4); }
.shop-teaser h2 { font-size: var(--fs-xl); }
.shop-teaser > p { font-style: italic; color: var(--muted); font-size: 1.1875rem; margin-top: var(--s-2); }
.shop-teaser .soon { font-family: var(--mono); font-style: normal; font-weight: 300; font-size: var(--fs-xs); color: var(--ink); margin: var(--s-5) 0 var(--s-4); }

/* ------------------------------------------------------------------ newsletter */
.nl-block { max-width: 40rem; margin: 0 auto; padding: var(--s-8) var(--gutter); text-align: center; }
.nl-title { font-size: var(--fs-xl); }
.nl-copy { font-style: italic; color: var(--muted); font-size: 1.1875rem; margin: var(--s-3) auto var(--s-5); max-width: 28rem; }
.nl-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.nl-row input { flex: 1 1 14rem; }
.nl-row .btn { flex: 1 1 8rem; }
.nl-status { min-height: 1.5em; margin-top: var(--s-3); font-style: italic; color: var(--muted); }
.nl-status.is-error { color: #9B2C2C; font-style: normal; }
input, textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
  font: inherit; font-size: 1.125rem; color: var(--ink);
  background: var(--white); border: 1px solid #CFC8BA; border-radius: var(--r-s);
  -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: #8A847A; }
input:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(43, 82, 160, .15); }

/* bottom sheet / dialog */
.sheet { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.sheet::backdrop { background: var(--scrim); }
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { position: relative; width: 100%; background: var(--paper); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow-sheet); padding: var(--s-6) var(--gutter) calc(var(--s-5) + var(--safe-b)); text-align: center; max-height: 92svh; overflow-y: auto; }
.sheet-card .nl-title { font-size: 2rem; }
.sheet-card:focus { outline: none; }
.sheet-close { position: absolute; top: var(--s-2); right: var(--s-2); }
.sheet .sheet-icons { margin-top: var(--s-2); }
@media (min-width: 720px) {
  .sheet[open] { align-items: center; }
  .sheet-card { width: min(30rem, 92vw); border-radius: var(--r-m); padding: var(--s-7) var(--s-6) var(--s-5); }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] .sheet-card { animation: sheet-up .45s var(--ease); }
  .sheet[open]::backdrop { animation: fade .3s ease; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
body.has-modal { overflow: hidden; }

/* ------------------------------------------------------------------ cards */
.cards { display: grid; grid-template-columns: 1fr; gap: var(--s-7) var(--s-6); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); max-width: 52rem; } }
.card-link { display: block; color: var(--ink); text-decoration: none; }
.card-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-s); background: var(--rule); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.02); }
.card-body { padding-top: var(--s-3); }
.card-title { font-size: 1.5rem; margin: var(--s-1) 0 var(--s-2); }
.card-link:hover .card-title { color: var(--cobalt); }
.card-ex { color: var(--muted); font-size: 1.0625rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.is-art { object-fit: contain !important; background: var(--white); }
.type-card { display: grid; place-items: center; width: 100%; height: 100%; }
.type-card-icon { width: 46%; height: auto; max-height: 50%; object-fit: contain; }
.row .type-card-icon { width: 62%; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-5); }
.chip { min-height: 44px; padding: 0 var(--s-4); border-radius: 999px; border: 1px solid var(--rule); background: var(--white); font-style: italic; font-size: 1.0625rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.card[hidden] { display: none; }

/* ------------------------------------------------------------------ section pages */
.sec-hero { text-align: center; padding: var(--s-7) var(--gutter) var(--s-7); }
.sec-hero-icon { height: 120px; width: auto; max-width: 70%; margin: 0 auto var(--s-4); object-fit: contain; }
.sec-hero h1 { font-size: clamp(3rem, 12vw, 5.5rem); line-height: 1; }
.sec-hero p { font-style: italic; color: #4A463F; font-size: 1.25rem; margin: var(--s-3) auto 0; max-width: 30rem; }
@media (min-width: 960px) { .sec-hero { padding: var(--s-8) var(--gutter); } .sec-hero-icon { height: 170px; } }

.shop-empty { max-width: 34rem; margin: 0 auto; padding: var(--s-8) var(--gutter); text-align: center; }
.shop-empty h2 { font-size: var(--fs-l); }
.shop-empty p { font-style: italic; color: var(--muted); margin: var(--s-3) 0 var(--s-5); font-size: 1.1875rem; }
.products { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); text-align: left; margin-top: var(--s-7); }

/* ------------------------------------------------------------------ essay */
.essay-hero { margin-bottom: var(--s-6); }
.essay-hero-media { overflow: hidden; background: var(--rule); aspect-ratio: 4 / 5; max-height: 76svh; }
.essay-hero:not(.is-portrait) .essay-hero-media { aspect-ratio: 3 / 2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.essay-hero-text { padding: var(--s-6) var(--gutter) 0; text-align: center; max-width: 46rem; margin: 0 auto; }
.essay-hero h1 { font-size: var(--fs-display); margin: var(--s-2) 0 var(--s-4); }
.essay-dek { font-style: italic; font-size: 1.25rem; line-height: 1.45; color: #4A463F; max-width: 34rem; margin: 0 auto; }
.essay-meta { display: flex; justify-content: center; gap: var(--s-4); margin-top: var(--s-4); }
.type-hero { padding: var(--s-7) 0 var(--s-7); }
.type-hero .essay-hero-text { padding-top: 0; }
.type-hero-icon { height: 88px; width: auto; margin: 0 auto var(--s-4); }
@media (min-width: 960px) {
  .essay-hero.has-img { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--header-h)); max-height: 60rem; }
  .essay-hero.has-img .essay-hero-media { aspect-ratio: auto; max-height: none; height: 100%; }
  .essay-hero.has-img .essay-hero-text { align-self: center; text-align: left; padding: var(--s-7) var(--s-8); margin: 0; }
  .essay-hero.has-img .essay-dek { margin: 0; }
  .essay-hero.has-img .essay-meta { justify-content: flex-start; }
  .type-hero { padding: var(--s-9) 0; }
  .type-hero-icon { height: 120px; }
}
.guide-jump { text-align: center; margin: calc(var(--s-2) * -1) 0 var(--s-6); font-style: italic; }

.prose { max-width: calc(var(--measure) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); font-size: var(--fs-prose); line-height: 1.62; }
.prose > p { margin: 0 0 1.05em; hanging-punctuation: first; }
.prose h2 { font-size: var(--fs-l); margin: 2.2em 0 .7em; }
.prose h3 { font-size: 1.4375rem; margin: 2em 0 .6em; }
.prose h4, .prose h5, .prose h6 { font-family: var(--serif-display); font-weight: 400; font-size: 1.25rem; margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--cobalt); }
.prose blockquote { margin: 2em 0; padding: 0; font-style: italic; font-size: 1.4rem; line-height: 1.45; text-align: center; color: #3B3833; }
.prose blockquote p { margin: 0 0 .6em; }
.prose hr { border: 0; height: 1px; width: 3rem; background: var(--ink); margin: 2.8em auto; }
.prose a { word-break: break-word; }
.fig { margin: 2.4rem calc(var(--gutter) * -1); }
.fig-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.fig img { width: 100%; }
.fig figcaption { font-style: italic; font-size: 1rem; color: var(--muted); margin-top: var(--s-2); padding: 0 var(--gutter); line-height: 1.4; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin: 2.4rem calc(var(--gutter) * -1); }
.gallery .fig { margin: 0; }
.gallery .fig img { aspect-ratio: 4 / 5; object-fit: cover; }
.gallery .fig figcaption { padding: 0 var(--s-2); font-size: .9375rem; }
@media (min-width: 720px) {
  .fig, .gallery { margin-left: 0; margin-right: 0; }
  .fig figcaption { padding: 0; }
  .fig:not(.is-portrait) { margin-left: calc(50% - min(24rem, 50vw - var(--gutter))); margin-right: calc(50% - min(24rem, 50vw - var(--gutter))); }
  .gallery { margin-left: calc(50% - min(24rem, 50vw - var(--gutter))); margin-right: calc(50% - min(24rem, 50vw - var(--gutter))); gap: var(--s-4); }
  .fig img { border-radius: var(--r-s); }
}

/* the city guide inside an essay, and on its own page */
.guide { background: var(--tint, var(--tint-go)); margin: var(--s-8) calc(50% - 50vw) 0; padding: var(--s-8) var(--gutter); font-size: 1.125rem; line-height: 1.5; }
.guide-inner { max-width: 46rem; margin: 0 auto; }
.guide-kicker { font-style: italic; color: var(--cobalt); font-size: 1.125rem; }
.guide h2 { font-size: var(--fs-xl); margin: var(--s-2) 0 var(--s-6); }
.guide-cat { padding: var(--s-5) 0; border-top: 1px solid rgba(29, 28, 26, .14); }
.guide-cat h3, .g-cat h2 { font-size: clamp(2.25rem, 8vw, 3rem); text-transform: lowercase; line-height: 1; margin: 0 0 var(--s-4); }
.guide-items p { margin: 0 0 var(--s-4); }
.guide-items strong { font-family: var(--serif-display); font-weight: 400; font-size: 1.25rem; }
.guide-items ul { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.guide-items li { margin: 0 0 var(--s-2); }
.guide-items li ul { margin: var(--s-2) 0 0 var(--s-4); }
.guide-items em { color: var(--muted); }
@media (min-width: 960px) {
  .guide-cat { display: grid; grid-template-columns: 12rem 1fr; gap: var(--s-6); }
  .guide-cat h3 { margin: 0; }
}

.g-hero { margin-bottom: var(--s-6); }
.g-hero-media { aspect-ratio: 4 / 5; max-height: 70svh; overflow: hidden; background: var(--rule); }
.g-hero-text { text-align: center; padding: var(--s-6) var(--gutter) 0; max-width: 46rem; margin: 0 auto; }
.g-hero h1 { font-size: clamp(3rem, 12vw, 5.5rem); line-height: 1; margin: var(--s-2) 0 var(--s-3); }
.g-from { margin-top: var(--s-4); font-size: 1.0625rem; color: var(--muted); }
.g-body { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); font-size: 1.125rem; line-height: 1.5; }
.g-cat { padding: var(--s-6) 0; border-top: 1px solid var(--rule); }
.g-back { text-align: center; }
@media (min-width: 960px) {
  .g-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(90svh - var(--header-h)); }
  .g-hero-media { aspect-ratio: auto; max-height: none; height: 100%; }
  .g-hero-text { align-self: center; text-align: left; padding: var(--s-7) var(--s-8); margin: 0; }
  .g-hero .essay-dek { margin: 0; }
  .g-cat { display: grid; grid-template-columns: 12rem 1fr; gap: var(--s-6); }
  .g-cat h2 { margin: 0; }
}

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: rgba(22, 21, 20, .97); color: #F4F1EC; }
.lightbox::backdrop { background: rgba(22, 21, 20, .97); }
.lightbox[open] { display: grid; place-items: center; }
.lb-stage { display: grid; justify-items: center; gap: var(--s-3); padding: calc(var(--s-8) + var(--safe-t)) var(--s-4) calc(var(--s-8) + var(--safe-b)); width: 100%; height: 100%; align-content: center; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 78svh; width: auto; height: auto; object-fit: contain; border-radius: var(--r-s); }
.lb-cap { font-style: italic; font-size: 1.0625rem; text-align: center; max-width: 34rem; color: #D9D4CC; }
.lb-close { position: fixed; top: calc(var(--s-2) + var(--safe-t)); right: var(--s-2); }
.lb-prev, .lb-next { position: fixed; z-index: 2; top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--s-1); }
.lb-next { right: var(--s-1); }
.lb-count { pointer-events: none; position: fixed; bottom: calc(var(--s-4) + var(--safe-b)); left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: var(--fs-xs); color: #B9B3AA; }
@media (max-width: 719px) { .lb-prev, .lb-next { top: auto; bottom: calc(var(--s-2) + var(--safe-b)); transform: none; } }

/* contact */
.contact-form { max-width: 32rem; margin: 0 auto; padding: var(--s-4) var(--gutter) var(--s-8); display: grid; gap: var(--s-5); }
.field label { display: block; margin-bottom: var(--s-2); font-size: 1.0625rem; }
textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.form-status { font-style: italic; color: var(--muted); min-height: 1.5em; }
.form-status.is-error { color: #9B2C2C; font-style: normal; }

.about { padding-bottom: var(--s-4); }

/* footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: var(--s-6); }
.footer-inner { max-width: var(--wide); margin: 0 auto; padding: var(--s-7) var(--gutter) var(--s-6); text-align: center; }
.footer-line { font-style: italic; color: var(--muted); margin-top: var(--s-2); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s-5); margin: var(--s-4) 0; }
.footer-nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--cobalt); }
.fine { font-size: var(--fs-s); color: var(--muted); }

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