/* The Batch food journal. Publication routes load this after the reader utility styles. */
.batch-magazine {
  --paper: #fffaf0;
  --ink: #211b16;
  --red: #851f1c;
  --pepper: #991f1e;
  --maize: #f6cd76;
  --pale: #f8ebcf;
  --olive: #784532;
  --sub: #655849;
  --line: #bba990;
  --fine: #e4d8c2;
  --display: BatchMark, Georgia, serif;
  --side: clamp(1.3rem, 4.3vw, 5.8rem);
}
.batch-magazine .wrap { width: min(79rem, calc(100% - var(--side) * 2)); }
.batch-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem 1rem;
  align-items: start;
  position: relative;
  z-index: 8;
  max-width: 104rem;
  margin: auto;
  padding: 1.15rem var(--side) 1.7rem;
  border-bottom: 2px solid var(--red);
}
.batch-imprint { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; }
.batch-imprint::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .65; }
.batch-imprint a { color: var(--ink); text-decoration: none; font: 600 .94rem/1.3 var(--serif); }
.batch-name { display: block; width: fit-content; color: var(--red); }
.batch-name, .batch-reader-nav a { text-decoration: none; }
.batch-name:hover { color: #6e1514; }
.batch-lettering {
  display: inline-block;
  font: italic 700 clamp(2.25rem,5vw,4.5rem)/.89 var(--display);
  letter-spacing: -.063em;
  -webkit-text-stroke: .012em currentColor;
}
.batch-reader-nav { display: flex; align-items: center; gap: clamp(1rem,2vw,2.2rem); }
.batch-reader-nav > nav { display: flex; gap: clamp(.85rem,2.1vw,2.1rem); }
.batch-reader-nav a,.batch-reader-nav summary {
  font: 700 1.05rem/1.3 var(--serif);
  color: var(--ink);
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
}
.batch-reader-nav [aria-current],.batch-reader-nav a:hover { color: var(--red); text-decoration: underline; }
.batch-menu { position: relative; }
.batch-menu summary { display: list-item; align-content: center; }
.batch-menu nav {
  position: absolute; z-index: 12; top: 100%; right: 0;
  display: grid; min-width: 13.5rem; max-width: 86vw;
  max-height: 70vh; overflow: auto; overscroll-behavior: contain;
  padding: .4rem 1rem; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 .65rem 1.5rem #32200e20;
}
.batch-menu nav a { display: flex; border-bottom: 1px solid var(--fine); font-size: 1rem; }
.batch-menu nav a:last-child { border: 0; }
.batch-home .batch-masthead { position: absolute; inset: 0 0 auto; max-width: none; border: none; }
.batch-home .batch-name .batch-lettering { font-size: clamp(4.1rem,8.55vw,9rem); }
.batch-home .batch-name .batch-lettering span { display: block; }
.batch-home .batch-imprint::after { max-width: 27%; color: var(--red); }
.batch-home .batch-reader-nav { padding: .2rem .8rem; background: rgb(255 237 198 / 92%); }
.batch-front { position: relative; isolation: isolate; display: grid; align-items: end; overflow: hidden; background: #f8d188; min-height: clamp(35rem,62vw,53rem); }
.batch-front .batch-front-art { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 50%; z-index: -2; }
.batch-front::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgb(254 211 131 /.5),transparent 48%); }
.batch-front-edition::before { background: linear-gradient(90deg,rgb(255 241 211 / .98) 0%,rgb(255 241 211 / .86) 32%,transparent 69%); }
.batch-front-copy { position: relative; margin: clamp(13rem,20vw,20rem) var(--side) clamp(3.2rem,5.5vw,6rem); max-width: 46%; }
.batch-front h1 {
  font: italic 700 clamp(3.6rem,6.85vw,7.8rem)/.92 var(--display);
  letter-spacing: -.061em; text-wrap: balance; max-width: 10ch; margin: 0 0 .28em;
}
.batch-front h1 a,.batch-issue-lead h2 a { text-decoration: none; color: inherit; }
.batch-front h1 a:hover,.batch-issue-lead h2 a:hover { color: var(--red); }
.batch-cover-link { display: inline-flex; flex-direction: column; gap: .55rem; font: italic 700 clamp(1.25rem,1.8vw,2rem)/1.25 var(--display); color: var(--ink); }
.batch-cover-link::before { content: ''; width: 3.2rem; height: .22rem; background: var(--red); }
.batch-art-credit { position: absolute; right: 1rem; bottom: .65rem; padding: .18rem .45rem; font: .75rem/1.3 var(--sans); color: #34231b; background: #fff1d9e8; }
.batch-magazine .edition-bar { min-height: 4rem; border-top: 0; border-bottom: 1px solid var(--red); }
.batch-magazine .edition-bar .eyebrow,.batch-magazine .edition-bar time { font-size: .86rem; }
.batch-issue-lead {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.13fr); align-items: center;
  gap: clamp(1.5rem,4vw,5rem); padding-block: clamp(2.4rem,4vw,4rem);
}
.batch-issue-lead h2,.batch-magazine .card-text h3,.batch-magazine .archive-card h2,.batch-magazine .issue-cover h1 {
  font-family: var(--display); font-style: italic; font-weight: 700; line-height: .99; letter-spacing: -.047em;
}
.batch-issue-lead h2 { font-size: clamp(2.8rem,5vw,5.25rem); margin: .2em 0; }
.batch-issue-lead .byline { display: block; margin-top: 1rem; }
.batch-issue-lead>a { aspect-ratio: 1.9; overflow: hidden; }
.batch-magazine .eyebrow { font-size: .82rem; letter-spacing: .085em; }
.batch-magazine .byline,.batch-magazine figcaption,.batch-magazine .crumb { font-size: .86rem; }
.batch-magazine .intro h1,.batch-magazine .article-intro h1,.batch-magazine .section-head h2,.batch-magazine .newsletter-band h2,.batch-magazine .recipe-teaser h2 {
  font-family: var(--display); font-style: italic; font-weight: 700; letter-spacing: -.052em;
}
.batch-magazine .section-head { border-color: var(--red); }
.batch-magazine .intro { border-bottom: 1px solid var(--line); max-width: none; margin-bottom: 2rem; }
.batch-magazine .intro h1,.batch-magazine .article-intro h1 { color: var(--red); }
.batch-magazine .illustrated-intro { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); align-items: center; gap: 4vw; }
.illustrated-intro figure { height: clamp(9.5rem,16vw,15rem); overflow: hidden; }
.illustrated-intro .editorial-art { object-position: center 56%; }
.batch-magazine .article-intro,.batch-magazine .issue-cover {
  background: #f7e6c3; border-top: 1px solid var(--red); border-bottom: 1px solid var(--line);
  gap: 0; align-items: stretch; margin-block: 1.5rem 3rem;
}
.batch-magazine .article-intro>div,.batch-magazine .issue-cover>div:first-child {
  padding: clamp(1.5rem,3.6vw,4rem); align-self: center;
}
.batch-magazine .article-intro figure { align-self: stretch; display: flex; flex-direction: column; min-width: 0; }
.batch-magazine .article-intro figure img { flex: 1; min-height: 0; width: 100%; height: 100%; max-height: 40rem; object-fit: cover; }
.batch-magazine .article-intro figcaption { margin: 0; padding: .45rem .85rem; background: #fff2d6; }
.batch-magazine .story-body { font-size: clamp(1.18rem,1.5vw,1.34rem); line-height: 1.64; max-width: 66ch; }
.batch-magazine .story-body h2,.batch-magazine .method h2,.batch-magazine .agenda-month h2,.batch-magazine .desk-main h2 {
  color: var(--red); font-family: var(--display); font-style: italic; font-weight: 700;
}
.batch-magazine .story-body>section:first-child>p:first-of-type::first-letter {
  float: left; margin: .06em .075em 0 0; color: var(--red); font: italic 700 3.65em/.72 var(--display);
}
.batch-magazine .ingredients,.batch-magazine .desk-aside,.batch-magazine .filter-form { background: #faeac3; border-color: var(--red); }
.batch-magazine .agenda-filters a { border-radius: 0; }
.batch-magazine .agenda-filters a[aria-current=true] { background: var(--red); border-color: var(--red); }
.batch-magazine .agenda-month { border-top: 2px solid var(--red); padding-top: 1.2rem; }
.batch-magazine .shelf-callout { background: #f2c768; color: var(--ink); border-color: var(--red); }
.batch-magazine .shelf-callout>div+div { border-color: #a3673f; }
.batch-magazine .shelf-callout .eyebrow,.batch-magazine .shelf-callout h2 span { color: var(--red); }
.batch-magazine .shelf-callout .line-link { color: var(--ink); }
.batch-magazine .newsletter-band { background: var(--red); }
.batch-magazine .foot { background: #f9eac9; }
.batch-magazine .foot .brand { color: var(--red); }
.batch-magazine .tryon-network { background: #681d19; }
.batch-magazine .tryon-network details nav { top: auto; bottom: 100%; }
.batch-magazine .foot nav a,.batch-magazine .line-link,.batch-magazine .agenda-actions a { font-size: .94rem; }
@media (max-width: 700px) {
  .batch-magazine { --side: 1.15rem; }
  .batch-masthead { gap: .45rem .5rem; padding: .85rem var(--side) 1rem; }
  .batch-reader-nav { gap: .65rem; }
  .batch-reader-nav>nav { gap: .65rem; }
  .batch-reader-nav a,.batch-reader-nav summary { font-size: .92rem; }
  .batch-home .batch-name .batch-lettering { font-size: clamp(3.7rem,11vw,5rem); }
  .batch-front { min-height: clamp(36rem,94svh,43rem); }
  .batch-front .batch-front-art { object-position: 56% center; }
  .batch-front::before { background: linear-gradient(180deg,#f8d284 0%,#f9da980c 31%,transparent 48%,#f6ca77ed 80%,#f6ca77 100%); }
  .batch-front-edition::before { background: linear-gradient(180deg,#fff0cb 0%,transparent 30%,transparent 42%,#f5deafea 78%,#f5deaf 100%); }
  .batch-home .batch-reader-nav { padding: .1rem .35rem; }
  .batch-front-copy { max-width: 85%; margin: 16rem var(--side) 2.5rem; }
  .batch-front h1 { font-size: clamp(3.8rem,11vw,5rem); line-height: .95; max-width: 13ch; }
  .batch-issue-lead { grid-template-columns: 1fr; }
  .batch-magazine .article-intro { display: flex; flex-direction: column; gap: 0; }
  .batch-magazine .article-intro>div { width: 100%; }
  .batch-magazine .article-intro figure img { height: auto; }
  .batch-magazine .illustrated-intro { grid-template-columns: 1fr; gap: 1rem; }
  .illustrated-intro figure { height: 9.5rem; }
  .batch-magazine .desk-grid { gap: 1.75rem; }
}
@media (max-width: 540px) {
  .batch-reader-nav>nav { display: none; }
  .batch-home .batch-reader-nav { padding: 0 .6rem; }
  .batch-menu summary,.batch-menu nav a { min-height: 2.75rem; }
  .batch-magazine .edition-bar { gap: .6rem; }
  .batch-magazine .edition-bar a { font-size: 1.25rem; }
  .batch-magazine .edition-bar time { text-align: right; }
}
@media print {
  .batch-magazine { color: black; }
  .batch-masthead,.batch-front,.batch-magazine .tryon-network { display: none!important; }
  .batch-magazine .article-intro { display: block; margin: 0; border: none; background: white; }
  .batch-magazine .article-intro>div { padding: 0; }
  .batch-magazine .ingredients { background: white; border: 0; }
}

/* Each assigned image has a companion ink and paper color, chosen for its story. */
.batch-magazine .article-intro[style] { background: var(--item-paper); border-top-color: var(--item-ink); }
.batch-magazine .article-intro[style] h1,.batch-magazine .article-intro[style] .eyebrow { color: var(--item-ink); }
.batch-magazine .article-intro[style] figcaption { background: var(--item-paper); color: var(--ink); }
@media print {
  .batch-magazine .article-intro[style] { background: white; border: none; }
  .batch-magazine .article-intro[style] h1 { color: black; }
}

/* Stay in normal flow at a large text zoom and keep each article's full
   composition beside its headline. */
.batch-magazine .article-intro { grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr); }
.batch-magazine .article-intro figure { justify-content:center; }
.batch-magazine .article-intro figure img { flex:0 1 auto; width:100%; height:auto; max-height:none; aspect-ratio:auto; object-fit:contain; }
.batch-magazine .article-intro h1,.batch-magazine .issue-cover h1,.batch-front h1 { overflow-wrap:anywhere; }
.batch-magazine .batch-issue-lead>a { aspect-ratio:auto; }
.batch-magazine .batch-issue-lead .editorial-art { display:block; width:100%; height:auto; }
@media (max-width:700px) {
  .batch-home .batch-masthead { position:relative; background:#f8d188; }
  .batch-home .batch-name .batch-lettering { font-size:clamp(2.4rem,9vw,4.1rem); }
  .batch-home .batch-name .batch-lettering span { display:inline; }
  .batch-front { display:flex; flex-direction:column; align-items:stretch; min-height:0; }
  .batch-front .batch-front-art { position:static; width:100%; height:auto; order:0; z-index:auto; }
  .batch-front::before { display:none; }
  .batch-front-copy { order:1; max-width:none; margin:1.15rem var(--side) 1.7rem; }
  .batch-art-credit { position:static; order:2; align-self:flex-end; margin:0 var(--side) .7rem; background:none; }
}

.batch-magazine .issue-cover figure {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.batch-magazine .issue-cover figure img { width: 100%; height: auto; }
.batch-magazine .issue-cover figcaption { margin: 0; padding: .42rem .8rem; }
.batch-menu:not([open]) nav { display: none; }
@media (min-width: 701px) {
  .batch-home .batch-masthead {
    position: relative;
    align-items: center;
    background: #f8d188;
    border-bottom: 1px solid var(--red);
  }
  .batch-home .batch-name .batch-lettering { font-size: clamp(3.3rem, 5.4vw, 6.25rem); }
  .batch-home .batch-name .batch-lettering span { display: inline; }
  .batch-front { min-height: clamp(28rem, 43vw, 42rem); }
  .batch-front-copy { margin: clamp(2.8rem, 5vw, 5rem) var(--side); }
}
@media (max-width: 700px) {
  .batch-magazine .foot-inner { flex-direction: column; align-items: flex-start; }
  .batch-magazine .foot nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
    text-align: start;
  }
}
