/* AWR, Atherton · Cover Story. Ported from the approved demo (demo/site/css/style.css); tokens are in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.1rem/1.6 var(--serif); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-within > span { outline: 3px solid var(--red); outline-offset: 3px; }
.ba button:focus-visible, .ba [role="slider"]:focus-visible, .reply a:focus-visible, .reply button:focus-visible, .foot a:focus-visible, .page-cta a:focus-visible { outline-color: var(--red-lit); }

.u-skip-link { position: absolute; left: 8px; top: -60px; z-index: 70; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.u-skip-link:focus { top: 8px; }

/* page furniture label: small caps serif, the magazine's running type */
.kicker, .feature-label, .coupon-title, .runhead, .issue-count, .foot-credit, cite, .spec dt {
  font: 600 .78rem/1.3 var(--serif); letter-spacing: .14em; text-transform: uppercase;
}


/* running head */
.runhead { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 12px var(--gutter); border-bottom: 2px solid var(--ink); }
.runhead-mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.runhead-mark b { font: 400 1.7rem/1 var(--display); letter-spacing: .01em; color: var(--red); }
.runhead-nav { display: flex; gap: clamp(14px, 2vw, 32px); }
.runhead-nav a, .runhead-tel { text-decoration: none; padding: 12px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.runhead-nav a:hover, .runhead-tel:hover, .runhead-nav a[aria-current] { background-size: 100% 2px; }
.runhead-nav a[aria-current] { color: var(--red); }
.runhead-tel { color: var(--red); }
.menu-btn { display: none; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 400 1rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 32px var(--gutter); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu nav a { font: 400 clamp(2.6rem, 11vw, 4.6rem)/1.05 var(--display); text-transform: uppercase; color: var(--paper); text-decoration: none; padding: 6px 0; }
.menu nav a:last-child { font-size: clamp(1.4rem, 5.5vw, 2rem); color: var(--red-lit); margin-top: 14px; }
.menu nav a:hover, .menu nav a:focus-visible { color: var(--red-lit); outline-color: var(--red-lit); }
.menu-close { align-self: start; min-height: 44px; padding: 0 18px; border: 2px solid var(--paper); background: transparent; color: var(--paper); font: 400 1rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.menu-open, .menu-open body { overflow: hidden; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 400 1.08rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #A9160F; border-color: #A9160F; }

/* ---------- cover (hero) ---------- */
.cover {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  grid-template-areas: "copy stage" "proof stage";
  column-gap: clamp(28px, 5vw, 88px); row-gap: 28px; align-content: center;
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(40px, 5vw, 80px);
  min-height: min(calc(100svh - 90px), 900px);
}
.cover-copy { grid-area: copy; align-self: end; }
.cover-proof { grid-area: proof; align-self: start; }
.stage { grid-area: stage; align-self: center; position: relative; }
.kicker { color: var(--red); margin-bottom: 18px; }
h1 { font: 400 clamp(3rem, 6.4vw, 6.4rem)/.9 var(--display); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; margin-bottom: .32em; }
.standfirst { font: 400 italic clamp(1.2rem, 1.6vw, 1.5rem)/1.4 var(--serif); max-width: 31ch; margin-bottom: 18px; }
.byline { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font: 600 .95rem/1.3 var(--serif); }
.byline b { font: 400 3.4rem/.8 var(--display); color: var(--red); }
.byline small { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }

/* the stack */
.stack { position: relative; width: min(100%, 540px); aspect-ratio: 4 / 5; margin-inline: auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; --px: 0; --py: 0; }
.issue {
  position: absolute; inset: 0; overflow: hidden; background: #1a1a18; margin: 0;
  box-shadow: 0 2px 0 rgba(0,0,0,.2), 0 34px 48px -26px rgba(0,0,0,.6);
  transform-origin: 80% 100%;
  transition: transform .75s var(--ease), opacity .6s var(--ease), filter .6s;
  cursor: grab; will-change: transform;
}
.issue:active { cursor: grabbing; }
.issue[data-no="1"] { z-index: 10; }
.issue img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.06) translate(calc(var(--px) * -6px), calc(var(--py) * -6px)); transition: transform .4s linear; }
.issue::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(10,10,9,.6) 0, rgba(10,10,9,0) 26%),
  linear-gradient(0deg, rgba(10,10,9,.82) 0, rgba(10,10,9,.35) 30%, rgba(10,10,9,0) 52%); }
.issue > :not(img) { position: absolute; z-index: 2; color: #fff; }
.mast { left: 5%; right: 5%; top: 3.2%; display: flex; justify-content: space-between; align-items: flex-start; }
.mast strong { font: 400 clamp(4.2rem, 9.4vw, 7.6rem)/.78 var(--display); letter-spacing: -.012em; display: block; }
.mast span { font: 600 .7rem/1.35 var(--serif); letter-spacing: .16em; text-transform: uppercase; text-align: right; margin-top: 4px; }
.word { left: 5%; right: 5%; bottom: 15%; font: 400 clamp(3rem, 7.4vw, 6rem)/.86 var(--display); text-transform: uppercase; text-wrap: balance; }
.word em { font-style: normal; color: var(--finish, #fff); }
.lines { left: 5%; right: 5%; bottom: 4%; display: flex; justify-content: space-between; gap: 12px; font: 500 italic 1rem/1.25 var(--serif); }
.lines span:last-child:not(:first-child) { text-align: right; }
.lines small { display: block; margin-top: 3px; font: 600 .64rem/1.2 var(--serif); font-style: normal; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.side { right: 5%; top: 31%; width: 36%; text-align: right; font: 400 1.6rem/1 var(--display); text-transform: uppercase; }
.side small { display: block; margin-top: 6px; font: 500 italic 1rem/1.25 var(--serif); text-transform: none; }
/* planes that sit above the covers: the price-flash roundel and the barcode */
.flash { position: absolute; z-index: 20; left: -26px; top: 21%; width: 104px; height: 104px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-content: center; text-align: center; transform: rotate(-12deg) translate(calc(var(--px) * 14px), calc(var(--py) * 14px)); box-shadow: 0 14px 22px -12px rgba(0,0,0,.6); transition: transform .4s linear; pointer-events: none; }
.flash b { font: 400 2.2rem/.9 var(--display); }
.flash span { font: 600 .58rem/1.2 var(--serif); letter-spacing: .1em; text-transform: uppercase; }
.barcode { position: absolute; z-index: 20; right: 12px; top: 40%; width: 44px; background: #fff; padding: 5px 5px 3px; transform: translate(calc(var(--px) * 8px), calc(var(--py) * 8px)); transition: transform .4s linear; pointer-events: none; }
.barcode path { stroke: #111; stroke-width: 1.3; }
.issue.is-top .mast strong span { display: inline-block; }
.issue.is-gone { opacity: 0; pointer-events: none; transform: translate(-40%, -10%) rotate(-18deg) !important; }
.issue.is-dragging { transition: none; }
/* folded corner on the top cover */
.issue.is-top::before { content: ""; position: absolute; z-index: 3; right: 0; bottom: 0; width: 46px; height: 46px; background: linear-gradient(135deg, rgba(0,0,0,0) 50%, var(--paper-2) 50%); box-shadow: -3px -3px 6px rgba(0,0,0,.28); transition: width .3s var(--ease), height .3s var(--ease); }
.stack:hover .issue.is-top::before { width: 70px; height: 70px; }

.stack-ui { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.stack-btn { width: 52px; height: 52px; border: 2px solid var(--ink); background: transparent; font-size: 1.3rem; cursor: pointer; transition: background-color .2s, color .2s; }
.stack-btn:hover { background: var(--ink); color: var(--paper); }
.issue-count { min-width: 9ch; text-align: center; }

/* entrance: the covers deal themselves in, the masthead prints */
.js .issue { opacity: 0; }
.js .stack:not(.dealt) .issue { transform: translateY(70px) rotate(-5deg) !important; }
.js .dealt .issue { opacity: 1; }
.js .dealt .issue.is-gone { opacity: 0; }
.js .flash, .js .barcode { opacity: 0; transition: opacity .5s var(--ease) .9s, transform .4s linear; }
.js .dealt .flash, .js .dealt .barcode { opacity: 1; }
.js .cover-copy > *, .js .cover-proof { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .cover.in .cover-copy > *, .js .cover.in .cover-proof { opacity: 1; transform: none; }
.js .cover.in .cover-copy > :nth-child(2) { transition-delay: .08s; }
.js .cover.in .cover-copy > :nth-child(3) { transition-delay: .16s; }
.js .cover.in .cover-proof { transition-delay: .24s; }
@keyframes print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.dealt .issue.is-top .mast strong { animation: print .9s steps(3, end) .35s both; }

/* ---------- the verdicts (reviews) ---------- */
.verdicts { background: var(--paper-2); border-block: 2px solid var(--ink); padding: 22px 0 24px; }
.verdicts-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; padding: 0 var(--gutter) 14px; }
.verdicts-head h2 { font: 400 clamp(1.9rem, 3vw, 2.8rem)/1 var(--display); text-transform: uppercase; }
.verdicts-head p { color: var(--ink-soft); font-size: 1rem; }
.verdicts-head b { font-family: var(--display); font-weight: 400; color: var(--red); font-size: 1.3rem; }
.letters { list-style: none; margin: 0; padding: 0 var(--gutter) 6px; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.letters li { flex: 0 0 auto; scroll-snap-align: start; }
.letter { display: block; width: clamp(250px, 26vw, 330px); height: 100%; text-align: left; padding: 6px 22px 8px 0; margin-right: 22px; border: 0; border-right: 1px solid var(--line); background: none; cursor: pointer; }
.letters li:last-child .letter { border-right: 0; }
.letter q { display: block; quotes: "“" "”"; font: 500 italic 1.16rem/1.35 var(--serif); margin-bottom: 10px; }
.letter .full { display: none; font: 400 1rem/1.5 var(--serif); margin-bottom: 10px; }
.letter[aria-expanded="true"] q { display: none; }
.letter[aria-expanded="true"] .full { display: block; }
.letter cite { display: block; font-style: normal; color: var(--ink-soft); font-size: .7rem; }
.letter cite::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--red); vertical-align: middle; margin-right: 8px; }
.letter:hover q { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }


/* ---------- the colour chart ---------- */
.finishes { padding: var(--section) var(--gutter); }
.finishes-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 10px 32px; margin-bottom: 28px; }
.finishes-head h2 { font: 400 clamp(2.6rem, 5vw, 4.6rem)/.9 var(--display); text-transform: uppercase; }
.finishes-head p { color: var(--ink-soft); max-width: 40ch; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.chip { background: #fff; padding: 10px 10px 16px; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 30px -24px rgba(0,0,0,.45); transition: transform .35s var(--ease); }
.chip:hover { transform: translateY(-6px) rotate(-.6deg); }
.chip-wheel { width: 100%; aspect-ratio: 16 / 7; background: var(--c); padding: 10px 0; }
.cwh-tyre { fill: #151514; }
.cwh-rim { fill: var(--c); stroke: var(--c2); stroke-width: 2; }
.cwh-spokes path { fill: var(--c2); }
.cwh-hub { fill: var(--c); stroke: var(--c2); stroke-width: 2; }
.chip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--pos, 50% 50%); margin-top: 10px; }
.chip h3 { font: 400 1.7rem/1 var(--display); text-transform: uppercase; margin-top: 12px; }
.chip p { color: var(--ink-soft); font-size: .95rem; }
.js .chip .cwh-spokes { transform-origin: 50px 50px; transform: rotate(-200deg); opacity: 0; transition: transform 1.4s var(--ease), opacity .4s; }
.js .chip.in .cwh-spokes { transform: none; opacity: 1; }
.js .chips .chip:nth-child(2) .cwh-spokes { transition-delay: .12s; }
.js .chips .chip:nth-child(3) .cwh-spokes { transition-delay: .24s; }
.js .chips .chip:nth-child(4) .cwh-spokes { transition-delay: .36s; }

/* ---------- find the yard ---------- */
.find { background: var(--paper-2); border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: var(--section) var(--gutter); }
.find h2 { font: 400 clamp(2.6rem, 5vw, 4.6rem)/.9 var(--display); text-transform: uppercase; margin-bottom: 20px; }
.find address { font: 600 1.3rem/1.4 var(--serif); font-style: normal; margin-bottom: 12px; }
.find-note { color: var(--ink-soft); margin-bottom: 22px; max-width: 36ch; }
.map { margin: 0; background: var(--paper); border: 2px solid var(--ink); padding: 8px; }
.map svg { width: 100%; height: auto; }
.road { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.road-main { stroke-width: 16; }
.map-roads { opacity: .9; }
.map-label { font: 400 20px var(--display); letter-spacing: .08em; fill: var(--ink); }
.map-small { font: 600 11px var(--serif); letter-spacing: .14em; fill: var(--ink-soft); }
.map-pin-label { fill: var(--red); font-size: 26px; }
.map-yard { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 4 3; }
.pin { fill: var(--red); }
.js .road { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); }
.js .map.in .road { stroke-dashoffset: 0; }
.js .map-pin { opacity: 0; transform: translateY(-40px); transition: opacity .4s var(--ease) 1.1s, transform .6s cubic-bezier(.3,1.6,.5,1) 1.1s; }
.js .map.in .map-pin { opacity: 1; transform: none; }

/* ---------- the reader's reply coupon ---------- */
.reply { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); padding: var(--section) var(--gutter); }
.reply h2 { font: 400 clamp(3rem, 6vw, 6rem)/.88 var(--display); text-transform: uppercase; margin-bottom: 18px; }
.reply-head p { font: 400 italic 1.25rem/1.45 var(--serif); color: #CFCCC4; max-width: 32ch; }
.reply-head a { color: var(--paper); text-underline-offset: 4px; }
.coupon-wrap { position: relative; overflow: clip; }
.coupon { position: relative; background: var(--paper); color: var(--ink); border: 2px dashed var(--ink-soft); outline: 10px solid var(--paper); outline-offset: 0; margin: 10px; padding: clamp(18px, 3vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; transform-origin: 90% 0; transition: transform .8s cubic-bezier(.5,0,.7,.4), opacity .6s .2s; }
.coupon-title { grid-column: 1 / -1; color: var(--red); border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.field { display: grid; gap: 6px; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font: 600 .95rem/1.3 var(--serif); }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="tel"] { width: 100%; min-height: 50px; padding: 10px 12px; border: 0; border-bottom: 2px solid var(--ink); background: rgba(255,255,255,.7); font: 400 1.1rem/1.3 var(--serif); color: var(--ink); border-radius: 0; }
.field input::placeholder { color: #8A877F; }
.field input[type="file"] { font: 400 1rem var(--serif); min-height: 44px; }
.field input[aria-invalid="true"] { border-bottom-color: var(--red); background: #FBE9E7; }
.finish-pick { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.finish-pick legend { margin-bottom: 8px; padding: 0; }
.finish-pick label { position: relative; }
.finish-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.finish-pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); font: 600 .95rem/1 var(--serif); cursor: pointer; transition: background-color .2s, color .2s; }
.finish-pick input:checked + span { background: var(--ink); color: var(--paper); }
.form-error { grid-column: 1 / -1; color: var(--red); font-weight: 600; }
.perforation { grid-column: 1 / -1; position: relative; height: 24px; border-top: 2px dashed var(--ink-soft); margin-top: 10px; }
.scissors { position: absolute; left: 0; top: -13px; width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; background: var(--paper); transition: left 1s var(--ease); }
.btn-send { grid-column: 1 / -1; justify-self: start; }
.coupon.cutting .scissors { left: calc(100% - 24px); }
.coupon.torn { transform: translateY(60px) rotate(-6deg); opacity: 0; pointer-events: none; }
.received { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; font: 400 italic 1.25rem/1.45 var(--serif); }
.received[hidden] { display: none; }
.received-stamp { font: 400 clamp(2.6rem, 6vw, 4.4rem)/1 var(--display); text-transform: uppercase; color: var(--red-lit); border: 4px solid var(--red-lit); padding: 6px 18px 10px; transform: rotate(-6deg); animation: stamp .45s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes stamp { from { transform: rotate(-6deg) scale(1.8); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }

/* ---------- footer ---------- */
.foot { background: var(--ink-2); color: #CFCCC4; padding: 40px var(--gutter) 48px; border-top: 1px solid rgba(239,238,234,.12); display: grid; gap: 10px; }
.foot-mast { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; color: var(--paper); }
.foot-mast b { font: 400 3.4rem/.9 var(--display); color: var(--red-lit); }
.foot-mast span { font: 600 1.05rem/1.3 var(--serif); }
.foot a { color: var(--paper); }
.foot-credit { color: #A9A59C; }

/* ---------- floating dock ---------- */
.dock { position: fixed; z-index: 40; right: 20px; bottom: 20px; display: flex; gap: 0; box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); transition: transform .4s var(--ease), opacity .3s; }
.dock a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; background: var(--ink); color: var(--paper); font: 400 1.02rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-right: 1px solid rgba(239,238,234,.18); }
.dock a:last-child { background: var(--red); border-right: 0; }
.dock a:hover { filter: brightness(1.15); }
.dock.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  /* the page links move into the Menu panel */
  .runhead-nav { display: none; }
  .runhead-tel { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  .cover { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "proof"; min-height: 0; row-gap: 18px; }
  .stage { max-width: 560px; width: 100%; margin-inline: auto; }
  .find, .reply { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .runhead { padding-block: 8px; }
  .runhead-mark b { font-size: 1.45rem; }
  .cover { padding-top: 16px; padding-bottom: 28px; row-gap: 14px; }
  .kicker { margin-bottom: 8px; }
  h1 { font-size: clamp(2.15rem, 10.6vw, 2.9rem); margin-bottom: .2em; }
  .standfirst { font-size: 1.05rem; }
  .byline { margin-bottom: 12px; gap: 10px; }
  .byline b { font-size: 2.6rem; }
  .actions .btn { flex: 1 1 0; padding: 0 10px; min-width: 0; font-size: .98rem; }
  .stack { aspect-ratio: 1 / 1.1; width: calc(100% - 22px); margin-left: 22px; margin-right: 0; }
  .mast strong { font-size: clamp(3.4rem, 17vw, 4.4rem); }
  .word { font-size: clamp(2.3rem, 12vw, 3.2rem); bottom: 17%; }
  .lines { font-size: .88rem; }
  .side { display: none; }
  .flash { width: 78px; height: 78px; left: -8px; top: 18%; }
  .flash b { font-size: 1.6rem; }
  .flash span { font-size: .5rem; }
  .barcode { display: none; }
  .verdicts { padding: 16px 0 14px; }
  .verdicts-head { padding-bottom: 10px; }
  .verdicts-head p { font-size: .9rem; }
  .letter { width: 76vw; padding-right: 16px; margin-right: 16px; }
  .letter q { font-size: 1.06rem; margin-bottom: 8px; }
  .chips { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scroll-padding-inline: var(--gutter); }
  .chip { flex: 0 0 70%; scroll-snap-align: start; }
  .coupon { grid-template-columns: minmax(0, 1fr); margin: 10px 6px; }
  .field-wide, .coupon-title, .perforation, .btn-send { grid-column: 1; }
  .btn-send { justify-self: stretch; }
  .dock { left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--ink); }
  .dock a { flex: 1 1 0; padding: 0 8px; }
  .foot { padding-bottom: 40px; }
}
@media (max-width: 380px) {
  .actions .btn { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .issue, .js .flash, .js .barcode, .js .cover-copy > *, .js .cover-proof, .js .map-pin { opacity: 1; transform: none; }
  .js .issue.is-gone { opacity: 0; }
  .js .road { stroke-dashoffset: 0; }
  .js .chip .cwh-spokes { transform: none; opacity: 1; }
  .issue img { transform: scale(1.06); }
}

/* ---------- inner pages: back issues, services ---------- */
.page-head { padding: clamp(36px, 6vw, 88px) var(--gutter) clamp(24px, 3vw, 40px); max-width: 1100px; }
.page-head h1 { font: 400 clamp(2.6rem, 7vw, 6rem)/.92 var(--display); text-transform: uppercase; margin-bottom: .25em; text-wrap: balance; }
.page-head p { font: 400 italic clamp(1.1rem, 2vw, 1.35rem)/1.45 var(--serif); color: var(--ink-soft); max-width: 46ch; }
.group { padding: clamp(28px, 4vw, 56px) var(--gutter); border-top: 2px solid var(--ink); }
.group-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 22px; }
.group-head h2 { font: 400 clamp(2rem, 4.4vw, 3.6rem)/.95 var(--display); text-transform: uppercase; }
.group-head p { color: var(--ink-soft); }
.back-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.back { margin: 0; background: #fff; padding: 10px 10px 14px; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 30px -24px rgba(0,0,0,.45); }
.back img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.back figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; font-size: .98rem; }
.back figcaption b { font: 400 1.3rem/1 var(--display); color: var(--red); }
.page-cta { background: var(--ink); color: var(--paper); padding: clamp(40px, 6vw, 80px) var(--gutter); display: grid; gap: 18px; justify-items: start; }
.page-cta h2 { font: 400 clamp(2rem, 5vw, 4rem)/.95 var(--display); text-transform: uppercase; }
.page-cta p { color: #CFCCC4; max-width: 46ch; }
.page-cta .btn { border-color: var(--paper); color: var(--paper); }
.page-cta .btn-red { border-color: var(--red); }
.page-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-cta a:focus-visible { outline-color: var(--red-lit); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px) var(--gutter); border-top: 2px solid var(--ink); }
.svc:nth-of-type(even) .svc-photo { order: -1; }
.svc-no { font: 400 1.1rem/1 var(--display); color: var(--red); letter-spacing: .04em; margin-bottom: 10px; }
.svc h2 { font: 400 clamp(2rem, 4.4vw, 3.6rem)/.95 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.svc p { max-width: 44ch; }
.svc blockquote { margin: 18px 0 0; padding-left: 16px; border-left: 4px solid var(--red); font: 400 italic 1.15rem/1.45 var(--serif); }
.svc blockquote cite { display: block; margin-top: 6px; font-style: normal; color: var(--ink-soft); }
.svc-photo { margin: 0; background: #fff; padding: 10px; box-shadow: 0 18px 30px -24px rgba(0,0,0,.45); }
.svc-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-weight: 700; color: var(--red); }
@media (max-width: 900px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc .svc-photo { order: -1; }
}

/* ---------- services: collapsible list, and the homepage strip ---------- */
.svc-list { border-top: 2px solid var(--ink); }
details.svc { display: block; padding: 0; border-top: 0; border-bottom: 2px solid var(--ink); }
details.svc summary { display: flex; align-items: center; gap: 16px; padding: clamp(18px, 2.4vw, 28px) var(--gutter); cursor: pointer; list-style: none; }
details.svc summary::-webkit-details-marker { display: none; }
details.svc summary:hover h2 { color: var(--red); }
details.svc summary .svc-no { margin: 0; flex: none; width: 2.4rem; }
details.svc summary h2 { margin: 0; flex: 1; font-size: clamp(1.6rem, 4vw, 3rem); }
.svc-toggle { flex: none; position: relative; width: 28px; height: 28px; }
.svc-toggle::before, .svc-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 3px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.svc-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
details.svc[open] .svc-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: 0 var(--gutter) clamp(24px, 3vw, 40px) calc(var(--gutter) + 2.4rem + 16px); }
.svc-strip { padding: var(--section) var(--gutter) calc(var(--section) * .7); border-top: 2px solid var(--ink); }
.svc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.svc-card { display: block; height: 100%; background: #fff; padding: 10px 10px 16px; color: inherit; text-decoration: none; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 30px -24px rgba(0,0,0,.45); transition: transform .35s var(--ease); }
.svc-card:hover { transform: translateY(-4px); }
.svc-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-card .svc-no { display: block; margin: 12px 0 4px; }
.svc-card h3 { font: 400 clamp(1.15rem, 1.8vw, 1.5rem)/1.05 var(--display); text-transform: uppercase; }
@media (max-width: 900px) {
  .svc-body { grid-template-columns: minmax(0, 1fr); padding-left: var(--gutter); }
  .svc-body .svc-photo { order: -1; }
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-cards li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .svc-cards li:first-child:nth-last-child(odd) .svc-card img { aspect-ratio: 16 / 9; }
}

/* ---------- added in the port (not in the demo) ---------- */
/* quote coupon: per-field errors, sending status and privacy line, from the starter's form handling (site.js) */
.field-error { color: var(--red); font: 600 .9rem/1.3 var(--serif); }
.field input[aria-invalid="true"]:not(:focus-visible) { outline: 0; }
.coupon-privacy { grid-column: 1 / -1; font-size: .92rem; color: var(--ink-soft); }
.coupon-privacy a { color: var(--ink); text-underline-offset: 3px; }
.form-status { grid-column: 1 / -1; color: var(--red); font-weight: 600; }
.form-status:empty { display: none; }
.c-form__unconnected { margin-top: 18px; font-size: .95rem; }
@media (max-width: 640px) { .coupon-privacy, .form-status { grid-column: 1; } }

/* portfolio: "No. 01" runs on across the finish groups */
main { counter-reset: job; }
.back { counter-increment: job; }
.back figcaption b::before { content: "No. " counter(job, decimal-leading-zero); }

/* the link under the services list */
.svc-more { padding: 0 var(--gutter) clamp(28px, 4vw, 56px); }

/* page heads that list links (404, thank you) */
.page-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 12px; padding: 0; }
.page-links .more-link { margin-top: 0; }

/* legal pages */
.legal-body { padding: 0 var(--gutter) var(--section); }
.legal-body h2 { font: 400 clamp(1.6rem, 3vw, 2.4rem)/1 var(--display); text-transform: uppercase; margin-top: 1.4em; }
.legal-body a { color: var(--red); }
.foot-credit a { color: inherit; }

/* ---------- before and after (Danny's changes, 14 Oct): the dark feature spread, drag to compare ---------- */
.ba { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "copy stage" "thumbs thumbs"; column-gap: clamp(28px, 5vw, 80px); row-gap: 28px; padding: var(--section) var(--gutter); }
.ba-copy { grid-area: copy; align-self: center; }
.feature-label { color: var(--red-lit); margin-bottom: 14px; }
.ba h2 { font: 400 clamp(3rem, 6vw, 6rem)/.88 var(--display); text-transform: uppercase; margin-bottom: 18px; }
.ba-stand { font: 400 italic 1.25rem/1.45 var(--serif); color: #CFCCC4; max-width: 34ch; margin-bottom: 24px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 26px; padding-top: 16px; border-top: 1px solid rgba(239,238,234,.28); }
.spec dt { color: #A9A59C; font-size: .72rem; align-self: center; }
.spec dd { margin: 0; font-weight: 600; }
.ba-nav { display: flex; align-items: center; gap: 18px; }
.ba .stack-btn { border-color: var(--paper); color: var(--paper); }
.ba .stack-btn:hover { background: var(--paper); color: var(--ink); }
.ba-stage { grid-area: stage; position: relative; width: 100%; max-width: 640px; justify-self: end; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.ba-job { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.ba-job img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-tag { position: absolute; top: 12px; z-index: 2; padding: 5px 10px; font: 600 .7rem/1.2 var(--serif); letter-spacing: .14em; text-transform: uppercase; background: var(--paper); color: var(--ink); pointer-events: none; }
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; background: var(--red); color: #fff; }
.ba-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 48px; margin-left: -24px; display: grid; place-items: center; cursor: ew-resize; touch-action: none; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--paper); box-shadow: 0 0 12px rgba(0,0,0,.45); }
.ba-handle span { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--red); box-shadow: 0 8px 18px -8px rgba(0,0,0,.7); }
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.ba-handle span::before { left: 9px; border-right: 8px solid #fff; border-left: 0; }
.ba-handle span::after { right: 9px; border-left: 8px solid #fff; border-right: 0; }
.ba-thumbs { grid-area: thumbs; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: thin; }
.ba-thumbs button { position: relative; flex: 0 0 84px; scroll-snap-align: start; padding: 0; border: 2px solid transparent; background: none; opacity: .55; cursor: pointer; transition: opacity .2s, border-color .2s; }
.ba-thumbs button:hover { opacity: .85; }
.ba-thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--red-lit); }
.ba-thumbs img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ba-job.turning .ba-after { animation: turn .7s var(--ease) both; }
@keyframes turn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 var(--pos)); } }
@media (max-width: 900px) {
  /* phone and tablet: heading, photo, spec and arrows, then the thumbnails */
  .ba { display: flex; flex-direction: column; row-gap: 20px; }
  .ba-copy { display: contents; }
  .ba-copy > .feature-label, .ba h2, .ba-stand { margin-bottom: 0; }
  .ba-stage { order: 1; max-width: 560px; justify-self: auto; align-self: center; }
  .ba .spec { order: 2; margin-bottom: 0; }
  .ba-nav { order: 3; justify-content: center; }
  .ba-thumbs { order: 4; }
}

/* opening hours in Find the yard */
.hours { display: grid; gap: 4px; margin: 0 0 22px; max-width: 320px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }

/* questions on the What we do page: the same rows as the services list */
.faq { padding: clamp(28px, 4vw, 56px) 0 0; border-top: 2px solid var(--ink); }
.faq h2 { font: 400 clamp(2rem, 4.4vw, 3.6rem)/.95 var(--display); text-transform: uppercase; padding: 0 var(--gutter); margin-bottom: 18px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); cursor: pointer; list-style: none; font: 600 1.15rem/1.35 var(--serif); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-item[open] .svc-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 var(--gutter) 20px; max-width: calc(60ch + 2 * var(--gutter)); }

/* About: the profile (core "Image and text" section) */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px) var(--gutter) var(--section); border-top: 2px solid var(--ink); }
.profile:not(.is-image-end) .profile-photo { order: -1; }
.profile h2 { font: 400 clamp(2rem, 4.4vw, 3.6rem)/.95 var(--display); text-transform: uppercase; margin-bottom: 18px; }
.profile-copy > p:not(.kicker) { max-width: 52ch; margin-bottom: 1em; }
.profile-photo { max-width: 520px; }
.profile-photo img { aspect-ratio: 4 / 5; }
.c-callout { display: flex; flex-direction: column-reverse; gap: 6px; margin: 22px 0 0; padding-left: 16px; border-left: 4px solid var(--red); font: 400 italic 1.25rem/1.45 var(--serif); max-width: 46ch; }
.c-callout strong { font: 600 .72rem/1.3 var(--serif); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 900px) {
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile .profile-photo { order: -1; }
}
