/* Journal spreads share the studio navigation and keep their own type scale. */
:root {
  --paper: #fff;
  --ink: #212320;
  --plum: #462638;
  --rose: #ead4da;
  --rule: #c5c9c3;
  --serif: Baskerville, "Iowan Old Style", Georgia, serif;
}
.journal-header { position: fixed; inset: 0 0 auto; z-index: 30; background: #fffffff5; border-bottom: 1px solid var(--rule); }
.journal-menu summary { list-style: none; cursor: pointer; }
.journal-menu summary::-webkit-details-marker { display: none; }
.journal-wrap, .edition { width: min(calc(100% - 2.5rem), 84rem); margin-inline: auto; }
.edition { padding-top: 6.5rem; background: var(--paper); color: var(--ink); }
.edition :is(section,article,[id]) { scroll-margin-top: 6rem; }
.folio,.kicker,.menu-lines small { font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.folio { display: flex; justify-content: space-between; color: #484d52; }
.mast { text-align: center; }
.mast h1, .edition h2, .menu-lines a, .contents a { font-family: var(--serif); font-weight: 400; }
.mast h1 { font-size: clamp(2rem,10vw,9rem); line-height: 1; letter-spacing: -.073em; margin: .02em 0 .08em; }
.mast-brand { display: block; font: 600 clamp(.85rem,1.6vw,1.3rem)/1.5 "Avenir Next", sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.mast h1 > span:last-child { color: #9c5d70; }
.desks { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 clamp(.8rem,4vw,4rem); border-block: 1px solid var(--ink); }
.desks a { display: grid; align-items: center; min-height: 44px; font-weight: 600; font-size: .9rem; }
.cover { display: grid; grid-template-columns: 43% 57%; margin-top: 1.3rem; background: var(--plum); color: white; }
.cover-text { padding: clamp(1.7rem,4.4vw,4.8rem); align-self: center; }
.cover h2,.spread h2,.money h2,.food h2 { font-size: clamp(3.4rem,6.8vw,6.8rem); line-height: .92; letter-spacing: -.06em; margin: .32em 0; }
.cover-text > p:not(.kicker), .intro,.money p:not(.kicker) { max-width: 38ch; font-size: clamp(1rem,1.4vw,1.2rem); line-height: 1.55; }
.cover figure { position: relative; min-height: 22rem; }
.cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.story-link { margin-top: 1.2rem; }
.story-link a,.colophon a { display: inline-block; font-weight: 600; padding-block: .4rem; text-decoration: underline; text-underline-offset: .34em; }
.edition a:hover { text-decoration: underline; text-underline-offset: .16em; }
.edition a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,6rem); margin-block: clamp(3rem,7vw,6rem); }
.spread section { border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.spread h2 { font-size: clamp(3.4rem,5.6vw,5.6rem); }
.health h2 br { display: none; }
.contents { margin-top: 2rem; }
.contents li { border-top: 1px solid var(--rule); }
.contents a { display: block; padding: .85rem 0; font-size: clamp(1.25rem,2vw,1.75rem); line-height: 1.15; }
.money,.food,.colophon { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem,5vw,5rem); padding: clamp(1.5rem,4vw,4rem); }
.money { background: #e5eee9; }
.money h2,.food h2 { font-size: clamp(3rem,5vw,5rem); }
.money p + p { margin-top: .9rem; }
.food { margin-block: 1.25rem 3rem; background: var(--rose); color: var(--plum); }
.menu-lines > div { border-top: 1px solid currentColor; padding-block: 1rem; }
.menu-lines a { display: block; margin-top: .35rem; font-size: clamp(1.6rem,3vw,2.8rem); line-height: 1.05; }
.colophon { border-block: 1px solid var(--rule); padding-inline: 0; align-items: start; }
.colophon h2 { font-size: 2rem; }
.colophon p { max-width: 42ch; margin: .5rem 0; }
.journal-footer { padding-block: 2rem; }
@media (max-width: 720px) {
  .edition { padding-top: 6.4rem; }
  .journal-wrap,.edition { width: calc(100% - 2rem); }
  .cover,.spread,.money,.food,.colophon { grid-template-columns: 1fr; }
  .cover figure { grid-row: 1; min-height: 0; aspect-ratio: 16/10; }
  .cover-text { padding: 1.65rem; }
  .cover h2 br { display: none; }
  .cover h2 em::before { content: " "; }
  .money,.food,.colophon { gap: 1rem; }
  .folio,.kicker { font-size: .67rem; }
  .desks { gap: 0 .85rem; }
}

/* The photographic edition */
.photo-cover { margin-top: 1.25rem; background: #151915; color: white; }
.photo-cover > a { display: grid; position: relative; isolation: isolate; min-height: clamp(25rem, 45vw, 40rem); align-items: end; }
.photo-cover img, .photo-cover > a::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.photo-cover img { object-fit: cover; object-position: center 45%; }
.photo-cover > a::after { content: ""; background: linear-gradient(90deg, #111812df, #13191166 48%, transparent 85%); }
.cover-caption { padding: clamp(1.7rem,5vw,5rem); }
.cover-caption h2,.portrait-spread h2,.photo-archive h2,.essay h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
.cover-caption h2 { font-size: clamp(3.2rem,7.5vw,7rem); line-height: .96; margin: .25em 0; }
.cover-caption span { display: inline-block; padding-bottom: .16rem; border-bottom: 1px solid; }
.photo-cover > a:hover { text-decoration: none; }
.photo-cover > a:hover span { border-bottom-width: 2px; }
.portrait-spread { display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: clamp(2rem,6vw,6rem); margin: clamp(3rem,7vw,7rem) auto; max-width: 68rem; }
.portrait-spread img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.portrait-spread h2,.photo-archive h2 { font-size: clamp(3.5rem,6vw,6rem); line-height: .98; margin: .22em 0; }
.portrait-spread p:not(.kicker) { max-width: 40ch; line-height: 1.65; }
.food { display: block; }
.food .menu-lines { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem,4vw,4rem); }
.recipe-photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.photo-archive { border-top: 1px solid var(--ink); padding: clamp(2rem,5vw,5rem) 0; }
.archive-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.archive-heading p { white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem,2vw,2rem); }
.archive-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; padding: 1rem 0; border-block: 1px solid var(--rule); }
.photo-archive [hidden] { display: none; }
.archive-tools label { display: grid; gap: .25rem; font-size: .8rem; }
.archive-tools select { min-height: 44px; padding: .4rem 1.9rem .4rem .7rem; border: 1px solid var(--rule); border-radius: 0; background-color: white; font-size: 1rem; }
.archive-tools button { min-height: 44px; text-decoration: underline; }
.archive-tools output { margin-left: auto; align-self: center; font-size: .9rem; }
.archive-desk { padding: clamp(2rem,4vw,4rem) 0; border-bottom: 1px solid var(--rule); }
.archive-desk h3 { font: italic clamp(2rem,4vw,3.6rem)/1.1 var(--serif); letter-spacing: -.04em; margin-bottom: 1rem; }
.archive-desk ul { display: grid; grid-template-columns: 1.08fr 1fr; column-gap: clamp(2rem,5vw,5rem); align-items: start; }
.archive-desk li { grid-column: 2; border-top: 1px solid var(--rule); }
.archive-desk li a { display: grid; grid-template-columns: 6rem 1fr; align-items: center; gap: 1rem; padding: .7rem 0; }
.archive-desk img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.archive-desk h4 { font: 400 clamp(1.25rem,2vw,2rem)/1.1 var(--serif); letter-spacing: -.025em; }
.archive-desk time,.essay time { display: block; font-size: .8rem; color: #484d52; margin-bottom: .35rem; }
.archive-desk li:first-child,.archive-desk .archive-lead { grid-column: 1; grid-row: 1 / span var(--archive-rows, 1); border: 0; }
.archive-desk li:first-child a,.archive-desk .archive-lead a { display: block; padding: 0; }
.archive-desk li:first-child img,.archive-desk .archive-lead img { aspect-ratio: 16/10; margin-bottom: .8rem; }
.archive-desk li:first-child h4,.archive-desk .archive-lead h4 { font-size: clamp(1.9rem,3.5vw,3.5rem); }
@media(max-width: 700px) {
  .archive-desk ul { display: block; }
  .archive-desk li:first-child,.archive-desk .archive-lead { padding-bottom: 1.2rem; }
  .archive-tools { gap: .6rem; }
  .archive-heading { flex-wrap: wrap; }
}
.essay { max-width: 72rem; margin: auto; padding: 9rem 1.2rem 4rem; }
.essay-head { max-width: 54rem; margin: 0 auto 2rem; text-align: center; }
.essay h1 { font-size: clamp(2.8rem,6vw,6rem); line-height: 1.02; margin: .32em 0; }
.essay-photo { display: block; width: auto; max-width: 100%; max-height: 37rem; margin: 0 auto 3rem; }
.essay-body { max-width: 40rem; margin: auto; font: 1.25rem/1.58 var(--serif); overflow-wrap: anywhere; }
.essay-body :is(p,ul,ol,hr,figure,img) { margin-block: 1em; }
.essay-body img { max-width: 100%; height: auto; }
.essay-body ul { list-style: disc; }
.essay-body ol { list-style: decimal; }
.essay-body :is(ul,ol) { padding-left: 1.5em; }
.essay-body :is(h2,h3) { font-size: 1.6em; line-height: 1.2; margin-top: 1em; }
.essay-body a,.essay-back { text-decoration: underline; text-underline-offset: .15em; }
.essay-back { display: block; max-width: 40rem; margin: 3rem auto 0; }

@media(max-width: 600px) {
  .photo-cover > a { min-height: 27rem; }
  .photo-cover img { object-position: 60% center; }
  .photo-cover > a::after { background: linear-gradient(0deg,#121813ee,transparent 83%); }
  .portrait-spread { grid-template-columns: 1fr; gap: 1.2rem; }
  .food .menu-lines { grid-template-columns: 1fr; }

  .essay { padding-top: 7rem; }
}
