/* merempah — Specimen Atlas (Direction A) prototype styles */
:root {
  --paper: #EEF0EC;
  --sheet: #F4F5F1;
  --ink: #1C211E;
  --mute: #5E655F;
  --mace: #B8232F;
  --sel: #F6DADC;
  --rule: #C9CDC6;
  --land: #DDE1D9;
  --off: #9AA09A;
  --display: "Libre Caslon Display", "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 40px;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { font-family: var(--serif); font-size: 18px; line-height: 1.6; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
:focus-visible { outline: 2px solid var(--mace); outline-offset: 2px; }
.page { padding: 0 var(--gutter); }

/* ---------- masthead ---------- */
.mast { position: sticky; top: 0; z-index: 20; background: var(--paper); height: 64px; display: flex; align-items: center; gap: 48px; border-bottom: 1px solid var(--ink); }
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; }
.brand span { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.nav { display: flex; gap: 28px; font-size: 17px; }
.nav a { padding: 19px 0 17px; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current] { border-bottom-color: var(--mace); }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; width: 320px; height: 38px; padding: 0 12px; border: 1px solid var(--ink); font-size: 15px; color: var(--mute); background: transparent; }
.search input { border: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; outline: none; }
.search input::placeholder { color: var(--mute); }

/* ---------- chips ---------- */
.filters { height: 56px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--rule); }
.chip { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--rule); background: transparent; font-family: var(--mono); font-size: 13px; color: var(--ink); transition: background .18s var(--ease-out), color .18s, border-color .18s, transform .12s; }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters .count { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }

/* ---------- specimen cabinet (first screen) ---------- */
.cabinet { height: calc(100vh - 120px); min-height: 640px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
.sheet { background: var(--sheet); display: flex; flex-direction: column; min-height: 0; transition: opacity .25s; }
.sheet[data-dim] { opacity: .4; }
.feature { grid-column: 1 / 3; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr 300px; grid-template-rows: 1fr auto; }
.feature .plate { grid-row: 1 / 3; position: relative; min-height: 0; }
.feature .plate img { position: absolute; inset: 22px 0 22px 22px; width: calc(100% - 22px); height: calc(100% - 44px); object-fit: contain; mix-blend-mode: multiply; filter: contrast(1.03); }
.feature aside { padding: 26px 26px 22px 6px; display: flex; flex-direction: column; justify-content: flex-end; }
.feature h2 { font-family: var(--display); font-weight: 400; font-size: 50px; line-height: 1; }
.feature .local { font-style: italic; font-size: 20px; color: var(--mute); margin-top: 6px; }
.feature p { font-size: 17px; line-height: 1.55; margin-top: 18px; }
.feature .more { margin-top: 18px; align-self: flex-start; font-size: 16px; font-weight: 600; color: var(--mace); border-bottom: 1px solid currentColor; }
.label { border: 1px solid var(--ink); background: var(--sheet); padding: 11px 13px 9px; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.feature .label { margin: 0 26px 26px 6px; align-self: end; }
.label .row { display: flex; justify-content: space-between; gap: 12px; }
.label .row span:first-child { color: var(--mute); }
.label .latin { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.3; margin: 6px 0; padding-top: 6px; border-top: 1px solid var(--rule); }
.no { color: var(--mace); }

.single .plate { flex: 1; min-height: 0; position: relative; }
.single .plate img { position: absolute; inset: 18px 26px 6px; width: calc(100% - 52px); height: calc(100% - 24px); object-fit: contain; mix-blend-mode: multiply; }
.single .plate img.photo { filter: brightness(1.07) contrast(1.06); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.single .text { padding: 4px 22px 16px; }
.single h3 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.single .sub { font-style: italic; font-size: 15px; line-height: 1.45; color: var(--mute); margin-top: 2px; }
.flip { position: relative; height: 31px; overflow: hidden; margin-top: 10px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; color: var(--mute); }
.flip > div { display: flex; justify-content: space-between; gap: 10px; padding-top: 7px; transition: transform .28s var(--ease-out); white-space: nowrap; }
.flip .back { position: absolute; inset: 0; transform: translateY(100%); color: var(--ink); }
.single:hover .flip .front, .single:focus-within .flip .front { transform: translateY(-100%); }
.single:hover .flip .back, .single:focus-within .flip .back { transform: translateY(0); }
.single a.cover { display: contents; }

/* first-entry */
.js-enter .cabinet .sheet { opacity: 0; transform: translateY(8px); }
.js-enter.entered .cabinet .sheet { opacity: 1; transform: none; transition: opacity .42s var(--ease-out), transform .42s var(--ease-out); }

/* ---------- section heads (shared anchors: 40px and 50%) ---------- */
.sec { padding-top: 96px; scroll-margin-top: -16px; }
[id] { scroll-margin-top: 80px; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1.05; }
.sec-head p { font-size: 18px; color: var(--ink); max-width: 46ch; }
.sec-head .tools { justify-self: end; display: flex; gap: 8px; align-items: center; }

/* segmented control with a moving selection block */
.seg { position: relative; display: inline-flex; border: 1px solid var(--ink); }
.seg button { position: relative; z-index: 1; height: 32px; padding: 0 14px; border: 0; background: transparent; font-family: var(--mono); font-size: 13px; transition: color .22s; }
.seg button[aria-pressed="true"] { color: var(--paper); }
.seg button:active { transform: scale(.97); }
.seg .slider { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--ink); transition: transform .26s var(--ease-out), width .26s var(--ease-out); }
.seg .slider.instant { transition: none; }

/* ---------- index (frameless list + fixed preview) ---------- */
.index-wrap { display: grid; grid-template-columns: 1fr 1fr; }
.index { list-style: none; }
.index li { position: relative; }
.index a { display: grid; grid-template-columns: 70px 1.25fr 1.15fr .7fr; align-items: baseline; gap: 16px; padding: 12px 18px 11px 0; border-bottom: 1px solid var(--rule); transition: background .18s; }
.index a:hover, .index a:focus-visible { background: rgba(184, 35, 47, .06); }
@media (min-width: 901px) { .index a[data-active] { background: rgba(184, 35, 47, .06); } }
.index .n { font-family: var(--mono); font-size: 13px; color: var(--mace); padding-left: 10px; }
.index .name { font-family: var(--display); font-size: 25px; line-height: 1.15; }
.index .name em { display: block; font-family: var(--serif); font-size: 15px; color: var(--mute); }
.index .lat { font-style: italic; font-size: 16px; color: var(--ink); }
.index .isl { font-family: var(--mono); font-size: 13px; color: var(--mute); text-align: right; }
.index li[hidden] { display: none; }
.preview { position: sticky; top: 84px; align-self: start; margin-left: 40px; height: 620px; background: var(--paper); border-left: 1px solid var(--rule); display: grid; grid-template-rows: 1fr auto; padding: 24px 0 0 40px; }
.preview .art { position: relative; min-height: 0; }
.preview .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transition: opacity .22s; }
.preview .art img.on { opacity: 1; }
.preview .art .none { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 64px; color: var(--rule); opacity: 0; transition: opacity .22s; }
.preview .art .none.on { opacity: 1; }
.preview .label { margin-top: 18px; }
.preview .credit { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-top: 10px; }

/* ---------- ad slots (reserved height, no layout shift) ---------- */
.ad { display: grid; place-items: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--mute); font-family: var(--mono); font-size: 13px; }
.ad.leader { height: 132px; margin-top: 72px; }
.ad.box { height: 290px; }

/* ---------- map ---------- */
.map { position: relative; margin-top: 8px; }
.map svg { width: 100%; height: auto; display: block; }
.map .land { fill: var(--land); stroke: var(--ink); stroke-width: .7; }
.map .neigh { fill: #E5E7E2; stroke: none; }
.map .grat { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 5; fill: none; }
.map .grat-label { font-family: "IBM Plex Mono", monospace; font-size: 12px; fill: var(--mute); }
.map .grat-label.halo { paint-order: stroke; stroke: #E6E9E3; stroke-width: 4px; stroke-linejoin: round; }
.map .island { font-family: "Source Serif 4", serif; font-style: italic; font-size: 19px; fill: var(--mute); paint-order: stroke; stroke: #E6E9E3; stroke-width: 5px; stroke-linejoin: round; }
.map .pin circle { fill: var(--mace); stroke: var(--sheet); stroke-width: 2; }
.map .pin line { stroke: var(--ink); stroke-width: 1; }
.map .pin .tag { fill: var(--sheet); stroke: var(--ink); stroke-width: 1; }
.map .pin .t1 { font-family: "Libre Caslon Display", serif; font-size: 21px; fill: var(--ink); }
.map .pin .t2 { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; fill: var(--mute); }
.map .pin { cursor: pointer; }
.map .pin .tno { fill: var(--mace); }
.map .pin .tagg { transition: transform .18s cubic-bezier(.2,.9,.3,1); }
.map .pin:hover .tagg, .map .pin:focus-visible .tagg { transform: translateY(-4px); }
.map .pin:hover .tag { fill: #fff; }
.map-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--mute); padding: 10px 0 0; border-top: 1px solid var(--rule); }

/* ---------- dish guides: a tray of dishes, the heading is the row head ---------- */
.tray { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); padding-top: 28px; }
.tray-head h2 { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1.05; }
.tray-head .more { display: inline-block; margin-top: 18px; font-size: 16px; font-weight: 600; color: var(--mace); border-bottom: 1px solid currentColor; }
.dish-art { display: block; position: relative; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); }
.dish-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--z, 1)); transform-origin: var(--pos, 50% 50%); filter: saturate(.88) contrast(1.03); transition: transform .5s var(--ease-out); }
.dish-art:hover img { transform: scale(calc(var(--z, 1) * 1.04)); }
.dish h3 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; margin-top: 20px; }
.dish h3 a:hover { color: var(--mace); }
.sheet h3 a:hover { color: var(--mace); }
.dish .where { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-top: 4px; }
.dish p { font-size: 16px; line-height: 1.55; margin-top: 10px; }
.dish .keys { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font-family: var(--mono); font-size: 13px; }
.dish .keys a { border-bottom: 1px solid var(--rule); }
.dish .keys a:hover { border-bottom-color: var(--mace); }
.credit-line { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-top: 10px; line-height: 1.45; }

/* ---------- field notes: the video frame opens the section ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notes { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; }
.poster-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink); color: var(--paper); text-align: left; cursor: pointer; container-type: inline-size; transition: transform .14s var(--ease-out); }
.p-label { position: absolute; left: 4%; top: 6.5%; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .08em; }
.p-pin { position: absolute; transform: translate(16px, -50%); font-family: var(--mono); font-size: 13px; white-space: nowrap; text-shadow: 0 0 6px #1C211E, 0 0 2px #1C211E; }
.p-title { position: absolute; left: 4%; right: 40%; bottom: 13%; font-family: var(--display); font-size: clamp(26px, 8cqw, 62px); line-height: 1; }
.p-title em { display: block; font-family: var(--serif); font-size: clamp(14px, 2.7cqw, 21px); line-height: 1.3; margin-top: .45em; }
@container (max-width: 520px) { .p-pin { display: none; } .p-title { right: 4%; bottom: 14%; } .poster-btn .playmark { transform: translate(600px, -270px) scale(.9); } .poster-btn:hover .playmark { transform: translate(600px, -270px) scale(.96); } }
.poster-btn svg { display: block; width: 100%; height: auto; }
.poster-btn .playmark { transform-box: fill-box; transform-origin: center; transition: transform .2s var(--ease-out); }
.poster-btn:hover .playmark { transform: scale(1.06); }
.poster-btn:active { transform: scale(.992); }
.poster-btn.soon { cursor: default; }
.poster-btn.soon .playmark { display: none; }
.poster-btn.soon:active { transform: none; }
.notes .info { margin-top: 12px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 13px; color: var(--mute); }
.stories { padding-left: 40px; margin-left: 40px; border-left: 1px solid var(--rule); }
.stories h3 { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--mute); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.story { display: block; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.story b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.12; }
.story p { font-size: 16px; color: var(--ink); margin-top: 8px; line-height: 1.5; }
.story .meta { display: block; font-family: var(--mono); font-size: 13px; color: var(--mute); margin-top: 10px; }
.story:hover b { color: var(--mace); }

/* ---------- map key ---------- */
.map-key { font-family: var(--mono); font-size: 13px; color: var(--mute); gap: 10px; }
.key-pin { width: 12px; height: 12px; border-radius: 50%; background: var(--mace); box-shadow: 0 0 0 2px var(--sheet), 0 0 0 3px var(--rule); }
.key-scale { width: 126px; height: 8px; margin-left: 16px; border: 1px solid var(--ink); border-top: 0; }

/* ---------- footer ---------- */
.foot { margin-top: 120px; border-top: 1px solid var(--ink); padding: 40px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.foot .word { font-family: var(--display); font-size: 132px; line-height: .9; letter-spacing: -.01em; }
.foot .def { font-size: 20px; margin-top: 18px; max-width: 34ch; }
.foot .def i { color: var(--mute); }
.foot nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; align-content: start; }
.foot nav h4 { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--mute); padding-bottom: 8px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.foot nav a { display: block; font-size: 17px; padding: 4px 0; }
.foot nav a:hover { color: var(--mace); }
.foot .fine { grid-column: 1 / -1; margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 40px; font-family: var(--mono); font-size: 13px; color: var(--mute); }
.foot .fine p { max-width: 78ch; }

/* ---------- spice page ---------- */
.crumbs { height: 52px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--mute); border-bottom: 1px solid var(--rule); }
.crumbs a:hover { color: var(--ink); }
.sp-head { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; padding: 48px 0 56px; border-bottom: 1px solid var(--ink); }
.sp-head h1 { font-family: var(--display); font-weight: 400; font-size: 92px; line-height: .95; letter-spacing: -.01em; }
.sp-head .local { font-style: italic; font-size: 24px; color: var(--mute); margin-top: 14px; }
.sp-head .lede { font-size: 21px; line-height: 1.55; margin-top: 30px; max-width: 40ch; }
.sp-head .byline { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-top: 26px; }
.sp-head .label { margin-top: 30px; max-width: 420px; }
.sp-plate { position: relative; display: grid; place-items: center; background: var(--sheet); border: 1px solid var(--rule); padding: 28px; }
.sp-plate img { max-height: 760px; width: auto; max-width: 100%; mix-blend-mode: multiply; }
.sp-plate .credit-line { position: absolute; left: 16px; bottom: 12px; }

.sp-body { display: grid; grid-template-columns: 220px minmax(0, 680px) 1fr; gap: 0 40px; padding-top: 56px; }
.toc { position: sticky; top: 88px; align-self: start; font-family: var(--mono); font-size: 13px; }
.toc b { display: block; font-weight: 500; color: var(--mute); padding-bottom: 8px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.toc a { display: block; padding: 5px 0; color: var(--ink); }
.toc a[aria-current] { color: var(--mace); }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose figure { margin: 34px 0; }
.prose figure img { width: 100%; height: auto; }
.prose .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prose .pair img { aspect-ratio: 1 / 1; object-fit: cover; }
.prose ul { margin: 0 0 18px 1.1em; }
.prose blockquote { margin: 28px 0 30px; padding: 2px 0 2px 22px; border-left: 2px solid var(--mace); font-size: 1.08em; line-height: 1.55; }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--mono); font-size: 13px; font-style: normal; line-height: 1.5; color: var(--mute); }
.prose blockquote cite i { font-style: italic; }
.prose li { margin-bottom: 6px; }
.prose .swap { display: grid; grid-template-columns: 160px 1fr; border-top: 1px solid var(--ink); }
.prose .swap div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.prose .swap div:nth-child(odd) { font-family: var(--mono); font-size: 13px; color: var(--mute); padding-top: 16px; }
.prose .sources { font-size: 16px; color: var(--mute); margin: 0 0 18px; padding-left: 2.2em; }
.prose .sources a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.prose .sources li { margin-bottom: 8px; }
.rail { position: sticky; top: 88px; align-self: start; display: grid; gap: 28px; }
.rail .glance { border-top: 1px solid var(--ink); }
.rail .glance div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.rail .glance span { font-family: var(--mono); font-size: 13px; color: var(--mute); padding-top: 2px; }
.rail h4 { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--mute); padding-bottom: 8px; }
.rail .rel a { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.rail .rel img { width: 72px; height: 54px; object-fit: cover; }
.rail .rel a.txt { grid-template-columns: 1fr; }
.rail .rel b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; display: block; }
.rail .rel span { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.video-inline { margin: 0 0 44px; }

/* ---------- phone & small tablet ---------- */
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .mast { gap: 16px; height: 56px; }
  .brand b { font-size: 26px; }
  .brand span { display: none; }
  .nav { gap: 16px; font-size: 15px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 16px 0 14px; white-space: nowrap; }
  .search { width: 40px; padding: 0 11px; flex: none; }
  .search input { display: none; }
  .filters { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  .filters .count { display: none; }

  .cabinet { height: auto; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; }
  .sheet { min-width: 0; }
  .single .sub { overflow-wrap: anywhere; }
  .feature { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 1fr; grid-template-rows: auto; }
  .feature .plate { grid-row: auto; height: 360px; }
  .feature aside { padding: 4px 18px 0; }
  .feature h2 { font-size: 40px; }
  .feature .label { margin: 18px; align-self: stretch; }
  .single { height: 330px; }
  .single .text { padding: 4px 12px 12px; }
  .single h3 { font-size: 24px; }
  .single .sub { font-size: 14px; }
  .flip { font-size: 13px; height: auto; }
  .flip > div { white-space: normal; flex-wrap: wrap; gap: 0 8px; padding-bottom: 2px; }
  .flip .back { display: none; }
  .single:hover .flip .front { transform: none; }

  .sec { padding-top: 64px; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .sec-head h2 { font-size: 36px; }
  .sec-head p { font-size: 17px; }
  .sec-head .tools { justify-self: start; }
  .index-wrap { grid-template-columns: 1fr; }
  .preview { display: none; }
  .index a { grid-template-columns: 44px 1fr auto; gap: 10px; padding-right: 0; }
  .index .n { padding-left: 0; }
  .index .name { font-size: 22px; }
  .index .lat { display: none; }
  .ad.leader { height: 116px; margin-top: 48px; }

  .map { overflow-x: auto; margin: 8px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); }
  .map svg { width: 980px; max-width: none; }
  .map-foot { flex-direction: column; gap: 4px; min-width: 0; }

  .tray { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .tray-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; }
  .tray-head h2 { font-size: 36px; }
  .tray-head .more { margin-top: 0; }
  .dish h3 { font-size: 24px; margin-top: 14px; }
  .dish p { font-size: 15px; }
  .notes { grid-template-columns: 1fr; gap: 36px; }
  .notes .info { flex-direction: column; gap: 4px; }
  .stories { padding-left: 0; margin-left: 0; border-left: 0; }
  .story b { font-size: 24px; }
  .feature .plate { height: 270px; }
  .feature .label { display: none; }
  .label .row { display: grid; grid-template-columns: 104px 1fr; gap: 8px; }
  .label .row span:last-child { text-align: right; }
  .feature aside { padding: 4px 18px 22px; }
  .foot { grid-template-columns: 1fr; gap: 40px; margin-top: 80px; }
  .foot .word { font-size: 68px; }
  .foot .fine { flex-direction: column; gap: 10px; }

  .crumbs { overflow-x: auto; white-space: nowrap; }
  .sp-head { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 36px; }
  .sp-head h1 { font-size: 54px; }
  .sp-head .lede { font-size: 19px; }
  .sp-plate img { max-height: 460px; }
  .sp-body { grid-template-columns: 1fr; padding-top: 32px; }
  .toc { display: none; }
  .prose h2 { font-size: 32px; margin-top: 44px; }
  .prose .pair { grid-template-columns: 1fr; }
  .prose .swap { grid-template-columns: 1fr; }
  .prose .swap div:nth-child(odd) { border-bottom: 0; padding-bottom: 0; }
  .rail { position: static; margin-top: 48px; }
}


/* ---------- contact ---------- */
.contact-head { padding: 56px 0 36px; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.contact-head h1 { font-family: var(--display); font-weight: 400; font-size: 92px; line-height: .95; }
.contact-head .lede { font-size: 21px; line-height: 1.55; max-width: 40ch; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 40px; align-items: start; }
.addr { list-style: none; border-top: 1px solid var(--ink); }
.addr li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.addr a { font-family: var(--display); font-size: 34px; line-height: 1.1; }
.addr a:hover { color: var(--mace); }
.addr span { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.notice { max-width: 520px; }
.notice .latin { font-size: 24px; }
.notice p { font-family: var(--serif); font-size: 17px; line-height: 1.55; margin-top: 4px; }
.contact-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--rule); }
.contact-more h3 { font-family: var(--display); font-weight: 400; font-size: 28px; }
.contact-more p { font-size: 17px; margin-top: 8px; max-width: 42ch; }
@media (max-width: 900px) {
  .contact-head { grid-template-columns: 1fr; gap: 16px; padding: 32px 0 24px; }
  .contact-head h1 { font-size: 56px; }
  .contact-head .lede { font-size: 19px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .addr a { font-size: 26px; overflow-wrap: anywhere; }
  .contact-more { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
}


/* ---------- about ---------- */
.about-name { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 48px; align-items: start; }
.about-name h2, .about-editors h2 { grid-column: 1 / -1; font-family: var(--display); font-weight: 400; font-size: 40px; }
.about-name .label { max-width: 420px; }
.about-name p { font-size: 19px; line-height: 1.6; max-width: 46ch; }
.about-editors { padding-top: 64px; }
.editors { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }
.editor .latin { font-size: 30px; font-style: normal; font-family: var(--display); }
.editor p { font-family: var(--serif); font-size: 17px; line-height: 1.6; margin: 8px 0 10px; }
.editor a { color: var(--mace); border-bottom: 1px solid currentColor; }
.about-links { margin-top: 40px; font-family: var(--mono); font-size: 13px; }
.about-links a { border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) {
  .about-name, .editors { grid-template-columns: 1fr; gap: 24px; }
  .about-name h2, .about-editors h2 { font-size: 32px; }
}


/* ---------- document pages (privacy, policy, credits) ---------- */
.doc { max-width: 760px; padding-bottom: 24px; }
.doc-head { padding: 56px 0 28px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.doc-head h1 { font-family: var(--display); font-weight: 400; font-size: 80px; line-height: .95; }
.doc-head .lede { font-size: 20px; line-height: 1.55; margin-top: 18px; max-width: 46ch; }
.doc-head .stamp { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-top: 14px; }
.doc h2 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 18px; line-height: 1.65; }
.doc ul { margin: 0 0 0 1.1em; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--mace); border-bottom: 1px solid currentColor; }
.doc ul.credits { list-style: none; margin: 0; border-top: 1px solid var(--rule); }
.doc ul.credits li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.doc ul.credits span { font-family: var(--mono); font-size: 13px; color: var(--mute); line-height: 1.5; }
@media (max-width: 900px) { .doc-head h1 { font-size: 52px; } .doc-head { padding: 32px 0 20px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .js-enter .cabinet .sheet { opacity: 1; transform: none; }
}
