/* The 48-unit mark has 4 transparent units above and below its 40-unit ink.
   Optical sizing matches that ink to the two lines printed on screen. */
body .atlas-binding {
  display:inline-flex;align-items:center;justify-self:start;width:max-content;max-width:100%;
  min-width:0;min-height:44px;padding:0;gap:8px;text-decoration:none;color:#f5e6cc;
}
body .atlas-binding > .mast-wordmark {
  display:block;flex:none;font:570 17px/1.02 var(--sans);letter-spacing:-.025em;
  text-align:left;white-space:nowrap;
}
body .atlas-binding > img {
  width:35.3px;height:35.3px;object-fit:contain;flex:none;aspect-ratio:1;
  transform:translateY(-.75px);
}
body .mast .headerwrap {box-sizing:border-box;height:auto;min-height:58px;padding-block:6px;}
body .reader-mast.album-reader {min-height:0;}
body .reader-mast .reader-bar {min-height:56px;padding-block:5px;}
/* Legacy masthead styles also target .brand directly; keep this shared
   lockup intact at every breakpoint, including the compact album controls. */
.mast .headerwrap .brand.atlas-binding,.footer-identity .brand.atlas-binding,.reader-bar .legal-brand.atlas-binding {gap:8px;}
body .mast .headerwrap .brand.atlas-binding > .mast-wordmark {font:570 17px/1.02 var(--sans);letter-spacing:-.025em;}
body .mast .headerwrap .brand.atlas-binding img,.footer-identity .brand.atlas-binding img {width:35.3px;height:35.3px;}
body main .reader-footer {text-align:left;background:none;border:0;padding:0;margin:32px 0 0;color:inherit;display:block;}
body main .reader-footer nav {margin:12px 0 0;}
#agegate .age-identity {display:inline-flex;align-items:center;gap:7px;color:#f5e6cc;margin:0 auto 18px;}
#agegate .agebrand {font:560 clamp(21px,1.55vw,23px)/1.18 var(--sans);letter-spacing:-.027em;white-space:nowrap;margin:0;}
#agegate .age-logo {width:37px;height:auto;aspect-ratio:1;}
@media (min-width:761px) {
  .mast .headerwrap .headtools {margin-inline-start:auto;}
}
@media (max-width:760px) {
  body .mast .headerwrap,body .reader-mast .reader-bar {box-sizing:border-box;height:auto;min-height:52px;padding-block:4px;}
  body .atlas-binding,.mast .headerwrap .brand.atlas-binding,.footer-identity .brand.atlas-binding,.reader-bar .legal-brand.atlas-binding {gap:6px;}
  body .atlas-binding > img,body .mast .headerwrap .brand.atlas-binding img,.footer-identity .brand.atlas-binding img {width:33.6px;height:33.6px;transform:translateY(-.65px);}
  body .atlas-binding > .mast-wordmark,body .mast .headerwrap .brand.atlas-binding > .mast-wordmark {font-size:16px;}
  #agegate .agebrand {font-size:20px;}
}
.recipe-story {
  margin:clamp(20px,3.2vw,36px) 0; padding:clamp(17px,2.5vw,28px);
  background:#30271f; color:#f5e7d5; border-radius:5px;
}
.recipe-story > h2, #panel .recipe-story > h2 {
  font:500 clamp(22px,2.35vw,32px)/1.2 var(--ser);margin:0 0 10px;letter-spacing:-.018em;
}
.recipe-story p { font:400 16px/1.6 var(--sans);max-width:68ch;margin:8px 0;color:#eadcc9; }
.recipe-story > .story-opening { font-size:clamp(16px,1.28vw,19px);margin:0; }
.recipe-story details, #panel .recipebody .recipe-story details {margin:0;padding:0;border:0;background:none;}
.recipe-story summary { cursor:pointer;width:fit-content;display:list-item;min-height:44px;padding:11px 2px 8px;color:#efc998;font:550 1rem/1.5 var(--sans); }
.recipe-story :is(summary,a):focus-visible {outline:2px solid #f4d4a6;outline-offset:3px}
.recipe-story .story-close,.recipe-story details[open] .story-read {display:none}
.recipe-story details[open] .story-close {display:inline}
.recipe-story h3 {font:500 clamp(20px,1.9vw,28px)/1.3 var(--ser);margin:8px 0 9px;letter-spacing:-.012em}
.recipe-story .story-sources {margin-top:15px;}
.recipe-story .story-sources p {font-weight:600;font-size:1rem; margin:0 0 3px;}
.recipe-story .story-sources ul {list-style:none;margin:0;padding:0;}
.recipe-story .story-sources li + li {margin-top:6px}
.recipe-story .story-sources a {color:#f1c995;text-decoration:none;overflow-wrap:anywhere;font:400 1rem/1.5 var(--sans);}

.recipeheadbuttons [data-story-jump] { min-height:44px; padding:8px 10px; color:#edca9e; font:500 1rem/1.4 var(--sans); text-decoration:none; }
.recipe-story { scroll-margin-top:16px; }
.recipe-story h2[tabindex="-1"]:focus-visible { outline:2px solid #efd3ac; outline-offset:3px; }

.recipe-palate > p {
  max-width: 65ch;
  margin: 0;
  font: 400 clamp(1rem, 1.25vw, 1.16rem)/1.6 var(--sans);
}

.legal-brand { min-height: 44px; color: #f5e6cc; font-size: 19px; text-decoration: none; }
.legal-brand img { width: 29px; height: auto; aspect-ratio: 1; }
.legal-brand:hover { color:#fae2bb; }

.personal-recipe-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; margin:16px 0; }
.personal-recipe-actions button,.reader-chapter #static-shopping button {min-height:44px;font:550 1rem/1.35 var(--sans);}
.personal-recipe-actions .bookmark-on,
.personal-recipe-actions [aria-pressed="true"] .bookmark-off {display:none;}
.personal-recipe-actions [aria-pressed="true"] .bookmark-on {display:inline;}

#library .book-sources {display:flex;flex-wrap:wrap;gap:0 1rem;}
#library .book-sources a, #library .book-practice {
  display:inline-flex;align-items:center;min-height:44px;font:500 1rem/1.4 var(--sans);
}
#library .book-practice {display:flex;width:fit-content;}
#library .bookrow {align-items:start;}
#library .bookrow > div {min-width:0;}
#library .bookrow h3 {overflow-wrap:break-word;}
#library .booknum {padding-top:.25rem;font-size:var(--label-size, .9375rem);}
#library .book-controls {display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin:12px 0 8px;}
#library .book-topic {display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;color:var(--pale);font:500 1rem/1.4 var(--sans);max-width:100%;}
#library .book-topic[hidden] {display:none;}
#library .book-topic select {max-width:100%;min-width:0;min-height:44px;padding:6px 10px;color:var(--pale);background:#29231e;border:1px solid #77624e;border-radius:5px;font:inherit;}
#library .book-toggle {
  min-height:44px;margin:0;padding:6px 0;border:0;
  background:transparent;color:var(--gold);font:600 1rem/1.4 var(--sans);cursor:pointer;
}
#library .book-toggle:is(:hover,:focus-visible) {color:var(--pale)}
#library .book-controls[hidden] {display:none}
@media(max-width:720px){
  #library .bookrow {grid-template-columns:3.1em minmax(0,1fr);gap:0 10px;}
}
/* Daily feature and back issues line up with the seasonal section below. */
.atlas-dispatch {
  background: var(--atlas-surface, #27231e);
  padding-block: clamp(28px, 4vw, 62px) clamp(20px, 2.7vw, 42px);
}
.atlas-dispatch .dispatch-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-bottom:clamp(13px, 1.7vw, 25px);
}
.atlas-dispatch .dispatch-mast {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:0 clamp(12px,1.2vw,22px);
}
.atlas-dispatch .dispatch-mast time { color:var(--secondary-ink); font:450 .96rem/1.4 var(--sans); }
.atlas-dispatch .dispatch-heading h2 { margin:0; }
.atlas-dispatch :is(.dispatch-read,.dispatch-archive) {
  display:inline-flex; align-items:center; min-height:44px;
  color:var(--gold); font:560 1rem/1.35 var(--sans); text-decoration:none;
}
.atlas-dispatch .dispatch-archive { color:var(--secondary-ink); white-space:nowrap; }
.atlas-dispatch .dispatch-spread {
  display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);
  gap:clamp(28px,3.4vw,57px); align-items:start;
}
.atlas-dispatch .dispatch-main { min-width:0; }
.atlas-dispatch .dispatch-illustration { display:block; }
.atlas-dispatch img { display:block; width:100%; height:auto; aspect-ratio:auto; object-fit:contain; }
.atlas-dispatch .dispatch-intro { margin-top:clamp(12px,1.2vw,21px); }
.atlas-dispatch .dispatch-dateline,.atlas-dispatch .dispatch-issue small {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:0 .6em;
  margin:0; font:540 .93rem/1.4 var(--sans); color:var(--secondary-ink);
}
.atlas-dispatch time { white-space:nowrap; font-weight:400; }
.atlas-dispatch .dispatch-issue time:not(:empty)::before {content:"·";padding-right:.5em;}
.atlas-dispatch .dispatch-intro h3 {
  margin:.22em 0 0; max-width:26ch; font:500 clamp(1.8rem,2.65vw,3rem)/1.12 var(--ser);
  letter-spacing:-.03em; color:var(--pale); text-wrap:balance; overflow-wrap:anywhere;
}
.atlas-dispatch .dispatch-copy p {
  max-width:50ch; margin:.62em 0 .12em; color:var(--reading-ink);
  font:400 clamp(1rem,1.14vw,1.14rem)/1.5 var(--sans);
}
.atlas-dispatch .dispatch-previous {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(21px,2vw,32px) clamp(15px,1.65vw,28px);
}
.atlas-dispatch .dispatch-previous h3 {
  grid-column:1/-1; margin:0 0 calc(-1 * clamp(10px,1.2vw,17px));
  color:var(--secondary-ink); font:570 .95rem/1.3 var(--sans);
}
.atlas-dispatch .dispatch-issue {
  display:grid; align-content:start; gap:9px; min-width:0;
  color:var(--pale); text-decoration:none;
}
.atlas-dispatch .dispatch-issue strong {
  display:block; margin-top:.17em; color:inherit; font:500 clamp(1.1rem,1.5vw,1.6rem)/1.18 var(--ser);
  letter-spacing:-.012em; overflow-wrap:anywhere;
}
.atlas-dispatch .dispatch-issue small {font-size:.9rem;}
.atlas-dispatch a:hover {color:#ffdbaf;text-decoration:none;}
.atlas-dispatch a:focus-visible {outline:2px solid var(--gold);outline-offset:4px;}
@media (max-width:760px) {
  .atlas-dispatch .dispatch-spread { grid-template-columns:1fr; gap:16px; }
  .atlas-dispatch .dispatch-main { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:0 16px; }
  .atlas-dispatch .dispatch-illustration { grid-row:1/3; }
  .atlas-dispatch .dispatch-intro { margin:0; }
  .atlas-dispatch .dispatch-intro h3 { font-size:clamp(1.5rem,3.8vw,1.9rem); }
  .atlas-dispatch .dispatch-previous h3 { margin:0 0 -7px; }
  .atlas-dispatch .dispatch-issue {gap:7px;}
}
@media (max-width:540px) {
  .atlas-dispatch .dispatch-heading { margin-bottom:12px; }
  .atlas-dispatch .dispatch-mast { display:grid; }
  .atlas-dispatch .dispatch-mast h2 { white-space:nowrap; }
  .atlas-dispatch .dispatch-main { grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr); gap:0 13px; }
  .atlas-dispatch .dispatch-illustration { grid-row:1; }
  .atlas-dispatch .dispatch-intro { align-self:center; }
  .atlas-dispatch .dispatch-intro h3 { font-size:clamp(1.19rem,5vw,1.55rem); }
  .atlas-dispatch .dispatch-copy { grid-column:1/-1; }
  .atlas-dispatch .dispatch-intro,.atlas-dispatch .dispatch-issue > span {min-width:0; overflow-wrap:anywhere;}
  .atlas-dispatch .dispatch-copy p { margin:9px 0 0; }
  .atlas-dispatch .dispatch-previous { gap:19px 14px; }
  .atlas-dispatch .dispatch-issue small { display:block; font-size:.86rem; }
  .atlas-dispatch .dispatch-issue small > span { display:block; }
  .atlas-dispatch .dispatch-issue time:not(:empty)::before {content:none;}
  .atlas-dispatch .dispatch-issue strong {font-size:clamp(1.04rem,4.55vw,1.24rem);line-height:1.21;}
}
@media (forced-colors: active) {
  #library > h2::after { display: none; }
  .atlas-dispatch a {color:LinkText;}
}

/* The brass fittings, oxblood leather and dark walnut repeat between sections. */
:root {
  --atlas-brass:#dfbe91;
  --atlas-brass-lit:#efd4ad;
  --atlas-walnut:#261c18;
  --atlas-claret:#40282c;
  --atlas-bottle:#252b25;
}
:root body > header:is(.mast,.reader-mast) {
  background-color:var(--atlas-walnut);
  background-image:linear-gradient(110deg,#322522 0%,#241c18 50%,#29251e 100%);
}
body .atlas-crumbs a,.collection-head nav a {color:var(--atlas-brass);}
body .atlas-crumbs a:is(:hover,:focus-visible),.collection-head nav a:is(:hover,:focus-visible) {color:var(--atlas-brass-lit);}
main.st-page :is(.collection-head,.recipe-title,.journal-masthead,.wheel-lead) > h1 {
  font-family:var(--ser);font-weight:500;
}
#home .cover-after {background:#211c17;}
#home .cover-paths #daily:not(:disabled),.recipe-reader .recipeheadbuttons .primary,
.story-journal .journal-feature .journal-read,.wheel-page .wheel-action,.home-bar .bar-front-actions a:first-child {
  color:var(--atlas-walnut);background-color:var(--atlas-brass);
}
#home .cover-paths #daily:not(:disabled):is(:hover,:focus-visible),
.recipe-reader .recipeheadbuttons .primary:is(:hover,:focus-visible),
.story-journal .journal-feature .journal-read:is(:hover,:focus-visible),
.wheel-page .wheel-action:is(:hover,:focus-visible),.home-bar .bar-front-actions a:first-child:is(:hover,:focus-visible) {
  color:var(--atlas-walnut);background-color:var(--atlas-brass-lit);
}
.recipe-reader .recipe-cover {--cover-surface:#312321;}
.story-journal .journal-feature {
  background:linear-gradient(108deg,var(--atlas-claret),#302421 63%,var(--atlas-walnut));
}
.wheel-page .bar-game-switch button[aria-pressed=true] {background:var(--atlas-claret);color:#f7e9d7;}

/* Shared closing section on catalogue, recipe and reader pages. */
body > footer:has(.atlas-footer) {
  border-top:1px solid #604a37;
  background:linear-gradient(115deg,#282019 0%,#211b17 59%,#241e1a 100%);
  color:#f2e5d2;
}
.atlas-footer {
  --foot-gap:clamp(20px,3.4vw,60px);
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-areas:
    "martin recipes homebar support"
    "imprint imprint imprint imprint";
  align-items:stretch;
  column-gap:var(--foot-gap);
  row-gap:0;
  padding:clamp(30px,3.4vw,52px) 0 20px;
  text-align:start;
}
.atlas-footer .footer-links:has(#footer-recipes) {grid-area:recipes;}
.atlas-footer .footer-links:has(#footer-homebar) {grid-area:homebar;}
.atlas-footer .footer-support {grid-area:support;}
.atlas-footer .footer-colophon {grid-area:imprint;}
.atlas-footer :is(nav,aside,figure,p) {margin:0;min-width:0;}
.atlas-footer :is(nav,aside) > h2 {
  margin:0 0 12px;
  font:500 clamp(20px,1.6vw,26px)/1.22 var(--ser);
  letter-spacing:-.024em;
  color:#f5e9d8;
}
.atlas-footer .footer-links {display:flex;flex-direction:column;align-items:flex-start;}
.atlas-footer .footer-links a {
  display:flex;align-items:center;min-height:34px;padding:4px 0;
  font:450 16px/1.42 var(--sans);color:#dfd3c4;text-decoration:none;
}
/* The portrait shares a column with the other sections and scrolls with the footer. */
.atlas-footer .footer-martin {
  grid-area:martin;align-self:end;display:grid;align-content:end;justify-items:center;position:relative;
  isolation:isolate;min-width:0;pointer-events:none;
}
.footer-martin::before {
  content:"";position:absolute;inset:0;z-index:-1;
  background-position:center 62%;background-size:cover;
  opacity:.31;mask-image:radial-gradient(ellipse 65% 84% at 50% 75%,#000 26%,transparent 94%);
}
.footer-martin[data-backdrop-visible]::before {background-image:url("/assets/studio/stillroom-interior-760.webp")}
.footer-martin > :is(picture,canvas) {
  grid-area:1/1;align-self:end;display:block;width:min(100%,clamp(232px,17vw,272px));height:auto;
}
.footer-martin > picture img {display:block;width:100%;height:auto;}
.footer-martin canvas {visibility:hidden;}
.footer-martin.is-playing canvas {visibility:visible;}
.footer-martin.is-playing picture {visibility:hidden;}
@media (prefers-reduced-motion:reduce) {
  .footer-martin.is-playing canvas {visibility:hidden;}
  .footer-martin.is-playing picture {visibility:visible;}
}
.footer-martin > .footer-film-source {
  position:absolute;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none;
}
#martin-stories {scroll-margin-top:6rem;}
#martin-stories article {padding-block-start:16px;}
#martin-stories article h3 {margin:0 0 .6em;font:500 clamp(21px,2vw,28px)/1.2 var(--ser);}
#martin-stories article p {margin:0;font:400 16px/1.62 var(--sans);}
.atlas-footer .footer-support {display:flex;flex-direction:column;align-items:flex-start;text-align:start;min-width:0;}
.atlas-footer .footer-support p {max-width:26ch;padding:4px 0 14px;font:400 16px/1.42 var(--sans);color:#dfd3c4;}
.atlas-footer .footer-bank {
  display:flex;flex-direction:column;align-items:center;gap:0;margin:0;
  width:min(148px,100%);margin-bottom:16px;border-radius:4px;text-decoration:none;
}
.atlas-footer .footer-bank img {display:block;width:100%;height:auto;background:white;border-radius:4px;box-shadow:0 3px 9px #100c0a55;image-rendering:pixelated;}
.atlas-footer .footer-colophon {
  grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;
  gap:12px var(--foot-gap);padding-block:16px 0;border-top:1px solid #564638;
}
.footer-colophon .footer-identity {display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;}
.atlas-footer .footer-legal a {font:400 1rem/1.45 var(--sans);color:#c9bcac;}
.atlas-footer .footer-legal {display:flex;align-items:center;flex-wrap:wrap;column-gap:22px;flex:1 1 320px;}
.atlas-footer .footer-legal a {display:inline-flex;align-items:center;min-height:40px;text-decoration:none;}
.atlas-footer a:is(:hover,:focus-visible) {color:#ffe4b7;text-decoration:none;}
.atlas-footer a:focus-visible {outline:2px solid #f2c790;outline-offset:3px;}
@media (max-width:1050px) {
  .atlas-footer {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-areas:"recipes homebar" "martin support" "imprint imprint";
  }
  .atlas-footer .footer-links a {min-height:44px;}
  .atlas-footer .footer-support p {max-width:26ch;}
}
@media (max-width:760px) {
  .atlas-footer {column-gap:20px;row-gap:0;padding-bottom:max(22px,env(safe-area-inset-bottom));}
  .atlas-footer :is(nav,aside) > h2 {margin-bottom:7px;}
  .atlas-footer .footer-links a,.atlas-footer .footer-legal a {min-height:44px;}
  .atlas-footer .footer-colophon {display:flex;flex-direction:column;align-items:stretch;gap:14px;}
  .atlas-footer .footer-colophon .footer-identity {align-content:center;}
  .atlas-footer .footer-legal {display:flex;flex:0 0 auto;align-items:flex-start;gap:0 18px;}
}
@media (max-width:430px) {
  .atlas-footer {column-gap:16px;}
  .atlas-footer .footer-links a {font-size:15px;min-height:44px;padding-block:5px;}
}
@media (max-width:340px) {
  .atlas-footer .footer-links > h2 {font-size:19px;letter-spacing:-.035em;}
}
.visit-farewell {
  position:fixed;z-index:10;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));
  padding:16px 52px 8px 20px;border:1px solid #705940;border-radius:4px;
  color:#f5e8d6;background:#2a211b;box-shadow:0 4px 18px #100d0b40;
}
.visit-farewell p {margin:0;font:500 20px/1.3 var(--ser);}
.visit-farewell a {display:inline-flex;align-items:center;min-height:44px;font:500 15px/1.4 var(--sans);color:#f0cc99;text-decoration:none;}
.visit-farewell button {position:absolute;top:0;right:0;width:44px;height:44px;padding:0;font-size:21px;color:#d6c4ae;}
@media print {.visit-farewell {display:none;}}

/* Quiet book cloth and brass navigation across the atlas. */
:root body > header:is(.mast,.reader-mast) {
  background:#1c1916;box-shadow:inset 0 -1px #594433;
}
body > footer:has(.atlas-footer),#mobilemenu[open] {background:#211d19;}
#drink-finder.home-finder {background:#241e19;}
.atlas-footer .footer-links h2,.atlas-footer .footer-support h2 {
  font-family:var(--ser);font-weight:550;letter-spacing:-.018em;color:#f2e3c9;
}
body .atlas-crumbs {color:#cbbda9;font-variant-numeric:lining-nums;}
#london-note .dispatch-mast time {font-family:var(--ser);font-size:1.12rem;color:#e1c29c;}
.strength-mark {display:inline-flex;align-items:center;gap:.48em;width:max-content;max-width:100%;box-sizing:border-box;
  padding:4px 8px;border-radius:3px;background:#211d18ed;color:#fff4e1;font:550 var(--label-size, .9375rem)/1.3 var(--sans);white-space:nowrap;}
.strength-bars {display:inline-flex;align-items:flex-end;gap:2px;}
.strength-bars i {display:block;width:3px;height:9px;box-sizing:border-box;border:1px solid #c6ab84;}
.strength-bars .filled {background:#edc389;border-color:#edc389;}
:is(.cardpic,.season-frame,.spread-picture):has(>.strength-mark) {position:relative;}
:is(.cardpic,.season-frame,.spread-picture)>.strength-mark {position:absolute;bottom:6px;left:6px;pointer-events:none;}
.recipe-title>.strength-mark {margin-top:.65rem;}

:root {--photo-caption-gap:clamp(24px,2vw,30px);--photo-radius:6px;--photo-shadow:0 2px 3px #100c092b,0 7px 15px -5px #08060480;}
:is(.spread-picture,.season-frame,.cardpic),
main :is(.journal-cover-link,.journal-hero-image,.dispatch-illustration,.related-recipes,.evening-photo,.recipe-book-list figure,.recipe-photo,.x-finalshot) img,
#main-content[data-edition=roulette] [data-active-game=dice] .wheel-outcome img {
  border-radius:var(--photo-radius);box-shadow:var(--photo-shadow);
}


.recipe-table {margin:clamp(28px,4vw,54px) 0;max-width:65rem;}
.recipe-table h2 {margin:0 0 12px;font:500 clamp(1.65rem,2.8vw,2.5rem)/1.15 var(--ser);}
.recipe-table p,.recipe-table .pairings {margin:6px 0;padding:0;border:0;max-width:66ch;}
main .resultrow img[data-serving-photo] {aspect-ratio:4/3;height:auto;border-radius:var(--photo-radius);box-shadow:var(--photo-shadow);}

:root {--atlas-cover-height:clamp(410px,37vw,640px);}
/* Panoramas have a 3:1 frame; wide screens retain the full height of tall garnishes. */
@media(min-width:1920px) {
  #home .daily-cover .cover-scene,#main-content .interior-cover--panorama {--atlas-cover-height:calc(100vw / 3);}
}
@media(max-width:760px) {:root {--atlas-cover-height:clamp(420px,110vw,530px);}}

:is(.carddetail,.season-copy,.spread-copy) .strength-mark {
  display:block;width:auto;padding:0;border:0;border-radius:0;background:none;
  color:inherit;font:500 var(--label-size, .9375rem)/1.4 var(--sans);
}
:is(.carddetail,.season-copy,.spread-copy) .strength-bars {display:none;}

/* Clear Cyrillic lettering keeps the breve in й distinct at small logo sizes. */
body .atlas-binding > .mast-wordmark,
body .mast .headerwrap .brand.atlas-binding > .mast-wordmark {
  font-family:var(--ser);font-weight:400;line-height:1.035;letter-spacing:0;overflow:visible;
  transform:translateY(-1px);
}
#agegate .agebrand {font-family:var(--ser);font-weight:400;line-height:1.25;letter-spacing:0;white-space:normal;}
#agegate .age-identity {max-width:100%;}
#agegate .age-logo {flex:none;}

/* The space between neighbouring editorial chapters is shared by both languages. */
:root {--atlas-chapter-gap:clamp(36px,4.5vw,64px);--atlas-chapter-edge:calc(var(--atlas-chapter-gap) / 2);}
#atlas-home > :is(#seasons,#london-note,#lesson-of-the-day,#atlas,#bar-reading,#home-culture,#library) {padding-block:var(--atlas-chapter-edge);}
#atlas-home .finder-layout {padding-block-end:var(--atlas-chapter-edge);}
#main-content[data-edition="recipe"],
#main-content .edition-store,
#main-content .kit-guide {--atlas-chapter-gap:var(--space-chapter);}
#main-content[data-edition="recipe"] .recipe-opening > :is(.recipe-cover,.recipe-table,.recipe-formula,.recipe-book) {margin-block:0 var(--atlas-chapter-gap);}
#main-content[data-edition="recipe"] .recipe-opening > .recipe-formula:has(+ .recipe-garnish) {margin-block-end:1rem;}
#main-content[data-edition="recipe"] .recipe-opening > .recipe-garnish {margin-block:0 var(--atlas-chapter-gap);}
#main-content[data-edition="recipe"] .reader-extras,
#main-content[data-edition="recipe"] :is(.reader-extras > section,.reader-references,.related-recipes) {margin-block-start:var(--atlas-chapter-gap);}
#main-content .edition-store > .edition-about {margin-block:var(--atlas-chapter-gap);}
#main-content .kit-guide > .kit-section {margin-block-start:var(--atlas-chapter-gap);}
#main-content .culture-guide > .culture-pair {padding-block:var(--atlas-chapter-edge);}

#library .edition-feature[hidden]{display:none}

/* The two navigation columns and the support details share their row tracks. */
.atlas-footer {
  --foot-row:36px;
  --foot-links:4;
  --foot-qr:clamp(92px,8.3vw,124px);
  grid-template-areas:none;
  align-content:start;
}
.atlas-footer:has(.footer-links > a:nth-of-type(5)) {--foot-links:5}
.atlas-footer:has(.footer-links > a:nth-of-type(6)) {--foot-links:6}
.atlas-footer :is(.footer-links,.footer-support) {
  display:grid;
  grid-template-rows:subgrid;
  align-items:center;
  justify-items:start;
  padding:0;
}
.atlas-footer :is(.footer-links,.footer-support) > h2 {
  margin:0;
  align-self:start;
  line-height:1.14;
}
.atlas-footer .footer-links a,.atlas-footer .footer-support-action {
  display:inline-flex;
  align-items:center;
  min-height:var(--foot-row);
  padding:4px 0;
  font:450 16px/1.35 var(--sans);
}
.atlas-footer .footer-links > h2 {grid-row:1}
/* Reserve the heading gap, then let each actual link claim its own row. */
.atlas-footer .footer-links::before {content:"";grid-column:1;grid-row:2}
.atlas-footer .footer-links a {
  grid-column:1;align-self:stretch;align-items:flex-start;
  padding-block:calc((var(--foot-row) - 1.35em) / 2);
}
.atlas-footer .footer-support-action {color:var(--gold);font-weight:600}
.atlas-footer .footer-support > p {
  margin:0;padding:0;max-width:30ch;
  font:400 16px/1.5 var(--sans);color:#dfd3c4;
}
.atlas-footer .footer-bank {
  align-self:start;justify-self:end;
  width:var(--foot-qr);
  max-width:100%;
  margin:0;
}
@media(min-width:981px) {
  .atlas-footer {
    --foot-gap:clamp(16px,2.4vw,44px);
    --foot-breath:clamp(24px,3vw,48px);
    --foot-row:clamp(34px,calc(28px + .6vw),36px);
    --foot-qr:clamp(100px,calc(18.5vw - 81px),166px);
    padding-block-start:0;column-gap:var(--foot-gap);
    grid-template-columns:minmax(0,.80fr) minmax(0,.89fr) minmax(0,.91fr) minmax(0,1.61fr);
    grid-template-rows:[portrait] minmax(var(--foot-breath),1fr) [nav-start] auto 10px repeat(var(--foot-links),auto) [nav-end] minmax(var(--foot-breath),1fr) [imprint] auto;
  }
  .atlas-footer .footer-martin {grid-column:1;grid-row:portrait / imprint;align-self:end}
  .atlas-footer .footer-links:has(#footer-recipes) {grid-column:2;grid-row:nav-start / nav-end}
  .atlas-footer .footer-links:has(#footer-homebar) {grid-column:3;grid-row:nav-start / nav-end}
  .atlas-footer .footer-support {
    grid-column:4;grid-row:nav-start / span 6;
    grid-template-columns:minmax(0,1fr) var(--foot-qr);
    column-gap:clamp(12px,1.5vw,24px);
  }
  .atlas-footer .footer-support > h2 {grid-column:1 / -1;grid-row:1;max-width:calc(100% - var(--foot-qr) - 6px)}
  .atlas-footer .footer-support > p {grid-column:1;grid-row:3 / -2;align-self:start;line-height:var(--foot-row)}
  .atlas-footer .footer-support-action {grid-column:1;grid-row:-2 / -1;align-self:end}
  .atlas-footer .footer-bank {
    grid-column:2;grid-row:1 / -1;position:relative;
    align-self:start;justify-self:end;
    width:100%;max-width:100%;height:auto;aspect-ratio:1;margin-block-start:5px;
  }
  .atlas-footer .footer-bank img {width:100%;height:100%;object-fit:contain}

  .atlas-footer .footer-colophon {grid-column:1 / -1;grid-row:imprint}
}
@media(min-width:981px) {
  .atlas-footer .footer-links a,.atlas-footer .footer-support > p,.atlas-footer .footer-support-action,
  .atlas-footer .footer-support .footer-editorial-link {font-size:clamp(15px,calc(12px + .29vw),16px)}
}
@media(max-width:980px) {
  .atlas-footer {
    --foot-row:44px;--foot-qr:clamp(100px,23vw,124px);
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:[nav-start] auto 6px repeat(var(--foot-links),auto) [nav-end] 24px [support] auto auto 10px [portrait] auto auto [imprint] auto;
    padding-block-start:clamp(24px,5vw,38px);column-gap:clamp(14px,4vw,32px);
  }
  .atlas-footer .footer-links:has(#footer-recipes) {grid-column:1;grid-row:nav-start / nav-end}
  .atlas-footer .footer-links:has(#footer-homebar) {grid-column:2;grid-row:nav-start / nav-end}
  .atlas-footer .footer-support {
    grid-column:1 / -1;grid-row:support / imprint;
    grid-template-columns:subgrid;
  }
  .atlas-footer .footer-support > h2 {grid-column:1 / -1;grid-row:1}
  .atlas-footer .footer-support > p {grid-column:1 / -1;grid-row:2;align-self:start;padding-block-start:8px;max-width:24rem}
  .atlas-footer .footer-bank {grid-column:2;grid-row:4;align-self:end}
  .atlas-footer .footer-support-action {grid-column:2;grid-row:5;justify-self:end;align-self:start}
  .atlas-footer .footer-martin {grid-column:1;grid-row:portrait / imprint;align-self:end;justify-self:start;width:min(100%,185px)}
  .atlas-footer .footer-colophon {grid-column:1 / -1;grid-row:imprint}
}
@media(max-width:430px) {
  .atlas-footer .footer-links a,.atlas-footer .footer-support-action,.atlas-footer .footer-support > p {font-size:15px}
}



/* Match the x-height of Source Sans 3 while the local webfont is arriving. */
.atlas-footer :is(.footer-links a,.footer-support > p,.footer-support a,.footer-legal a) {
  font-family:"Source Sans 3","Atlas Latin Extended",Helvetica,Arial,sans-serif;
  font-size-adjust:.486;
}
