/* ASHCROFT — products.
   The story is printed on the plate; this is printed on the paper. Same type,
   same mark, inverted ground. */

:root{
  --s: min(1vw, 1.7778vh);

  --paper:  #fffaf3;   /* the ground — one tone, edge to edge */
  --ink:    #16120d;   /* type */
  --soft:   #5d5145;   /* secondary type */
  --gold:   #9a7b4f;
  --rule:   rgba(22,18,13,.16);

  --serif: "Times New Roman", Times, "Liberation Serif", serif;
  --mono:  "Courier New", Courier, "Nimbus Mono PS", monospace;
  --script:"Pinyon Script", cursive;
  --sans:  "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 5.9%;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

/* ── masthead ──────────────────────────────────────────────── */

.masthead{
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--s) * 2.2) var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.wordmark{
  display: flex;
  align-items: center;
  gap: calc(var(--s) * 1.1);
  text-decoration: none;
  color: var(--ink);
}
.lockup{
  display: block;
  height: max(calc(var(--s) * 3.2), 40px);
  width: auto;
}
.wordmark-est{
  font-family: var(--sans);
  font-size: max(calc(var(--s) * .55), 8.5px);
  letter-spacing: .26em;
  line-height: 1;
  color: var(--soft);
  padding-left: calc(var(--s) * 1.1);
  border-left: 1px solid var(--rule);
}

.nav{ display: flex; gap: calc(var(--s) * 2.6); }
.nav a{
  position: relative;
  font-family: var(--sans);
  font-weight: 500;
  font-size: max(calc(var(--s) * .74), 10.5px);
  letter-spacing: .19em;
  text-decoration: none;
  color: var(--soft);
  padding-bottom: calc(var(--s) * .5);
  transition: color .3s var(--ease);
}
.nav a:hover{ color: var(--ink); }
.nav a.is-here{ color: var(--ink); font-weight: 700; }
.nav a.is-here::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
}

.nav-toggle{
  display: none;
  position: relative;
  z-index: 41;
  width: 44px;
  height: 44px;
  margin: -10px -8px -10px 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .28s var(--ease), opacity .2s var(--ease), top .28s var(--ease);
}
.nav-toggle span{ top: 21px; }
.nav-toggle span::before,
.nav-toggle span::after{ content: ""; left: 0; }
.nav-toggle span::before{ top: -7px; }
.nav-toggle span::after{ top: 7px; }
html.nav-open .nav-toggle span{ background: transparent; }
html.nav-open .nav-toggle span::before{ top: 0; transform: rotate(45deg); }
html.nav-open .nav-toggle span::after{ top: 0; transform: rotate(-45deg); }

/* ── lede ──────────────────────────────────────────────────── */

.eyebrow{
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: max(calc(var(--s) * .62), 9.5px);
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede{
  padding: calc(var(--s) * 3.2) var(--gutter) calc(var(--s) * 3.4);
  max-width: calc(var(--s) * 62);
}
.lede h1{
  margin: calc(var(--s) * 1.4) 0 calc(var(--s) * 1.6);
  font-weight: 700;
  font-size: max(calc(var(--s) * 5.4), 44px);
  line-height: 1;
  letter-spacing: -.005em;
}
.standfirst{
  margin: 0;
  font-size: max(calc(var(--s) * 1.25), 16px);
  line-height: 1.55;
  color: var(--soft);
}

/* ── the four ──────────────────────────────────────────────── */

.grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* widened from 1.6: the hairline sits in this gap, and at the old width the
     type and the packs crowded it on both sides. */
  gap: calc(var(--s) * 4.2);
  padding: 0 var(--gutter) calc(var(--s) * 7);
}

/* No box at all. The four sit on the paper with nothing drawn around them —
   the grid gap is what separates them. */
.card{
  position: relative;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border: 0;
  background: none;
  transition: transform .35s var(--ease);
}

/* A hairline standing in the gap rather than a box around each product. It
   fades out at both ends so it reads as a printed rule, not a table cell. */
.card + .card::before{
  content: "";
  position: absolute;
  left: calc(var(--s) * -2.1);     /* half the grid gap */
  top: 2%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(22,18,13,.30) 18%,
    rgba(22,18,13,.30) 74%,
    transparent 100%);
  pointer-events: none;
}
.card:hover{ transform: translateY(-3px); }
.card.is-soon:hover{ transform: none; }

.card-plate{
  /* flex for the same reason as .item-plate: a percentage max-height on a
     grid item centred with place-items has no definite base, so the plate
     stopped bounding the render and the sachet was clipped at the bottom. */
  display: flex;
  align-items: center;
  justify-content: center;
  /* raised from 12.4: the category renders are upright packs, not the single
     horizontal carton this plate was sized for, so a short plate shrank them
     to a thumbnail. */
  height: calc(var(--s) * 17.5);
  min-height: 210px;
  padding: calc(var(--s) * 2);
  overflow: hidden;
}
.card-plate img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* the stand-in, when a category has no render yet */
.card-crest{
  display: block;
  width: 46%;
  color: var(--gold);
  opacity: .22;
}
.card-crest .crest{ display: block; width: 100%; height: auto; }

.card-body{
  flex: 1;
  padding: calc(var(--s) * 1.15) 0 0;
}
.card-name{
  margin: 0;
  font-weight: 700;
  font-size: max(calc(var(--s) * 1.85), 21px);
  line-height: 1.1;
}
.card-note{
  margin: calc(var(--s) * 1.1) 0 0;
  font-size: max(calc(var(--s) * 1.02), 13.5px);
  line-height: 1.5;
  color: var(--soft);
}

.card-foot{
  padding: calc(var(--s) * 1.05) 0 0;
}
.card-count{
  font-family: var(--mono);
  font-size: max(calc(var(--s) * .72), 10.5px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.card-soon{
  display: inline-block;
  padding: calc(var(--s) * .42) calc(var(--s) * .95);
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-weight: 700;
  font-size: max(calc(var(--s) * .62), 9.5px);
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--gold);
}

/* a category still being made should not read as loudly as one you can buy */
.card.is-soon .card-plate,
.card.is-soon .card-body{ opacity: .62; }

/* ── the two real lists ────────────────────────────────────── */

.ranges{
  padding: calc(var(--s) * 3) var(--gutter) calc(var(--s) * 5);
  border-top: 1px solid var(--rule);
}
.range{
  display: grid;
  grid-template-columns: calc(var(--s) * 16) 1fr;
  align-items: baseline;
  gap: calc(var(--s) * 2);
  padding: calc(var(--s) * 1.5) 0;
  border-bottom: 1px solid var(--rule);
}
.ranges .eyebrow{ margin-bottom: calc(var(--s) * 1.7); }

.range-name{
  margin: 0;
  font-weight: 700;
  font-size: max(calc(var(--s) * 1.55), 19px);
}
.range-list{
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--s) * .6) calc(var(--s) * 1.5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.range-list li{
  font-family: var(--mono);
  font-size: max(calc(var(--s) * .84), 12px);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--soft);
}
.range-list li + li{ position: relative; }
.range-list li + li::before{
  content: "·";
  position: absolute;
  left: calc(var(--s) * -.85);
  color: var(--gold);
}

/* ── colophon ──────────────────────────────────────────────── */

.colophon{
  padding: calc(var(--s) * 5) var(--gutter) calc(var(--s) * 3);
  background: var(--ink);
  color: var(--paper);
}
.colophon .lockup{ height: max(calc(var(--s) * 3.4), 40px); }
.colophon-in{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: calc(var(--s) * 4);
  flex-wrap: wrap;
}
.colophon-mark{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--s) * 1.2);
  color: var(--paper);
}
.colophon-mark .wordmark-est{
  padding-left: 0;
  border-left: 0;
  color: rgba(255,245,235,.55);
}
.colophon-nav{ display: flex; gap: calc(var(--s) * 6); }
.colophon-nav h3{
  margin: 0 0 calc(var(--s) * 1.1);
  font-family: var(--sans);
  font-weight: 700;
  font-size: max(calc(var(--s) * .62), 9.5px);
  letter-spacing: .26em;
  color: var(--gold);
}
.colophon-nav a{
  display: block;
  margin-bottom: calc(var(--s) * .72);
  font-size: max(calc(var(--s) * 1), 13.5px);
  text-decoration: none;
  color: rgba(255,245,235,.72);
  transition: color .3s var(--ease);
}
.colophon-nav a:hover{ color: var(--paper); }
.colophon-legal{
  margin: calc(var(--s) * 4) 0 0;
  padding-top: calc(var(--s) * 1.8);
  border-top: 1px solid rgba(255,245,235,.14);
  font-family: var(--mono);
  font-size: max(calc(var(--s) * .62), 10px);
  letter-spacing: .06em;
  color: rgba(255,245,235,.45);
}

/* ── narrow ────────────────────────────────────────────────── */

@media (max-width: 1000px){
  :root{ --s: min(2.2vw, 1.6vh); }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .card + .card::before{ display: none; }
  .card:nth-child(even)::before{ display: block; }
}
@media (max-width: 900px){
  .wordmark{ position: relative; z-index: 41; }
  .nav-toggle{ display: block; }
  .nav{
    position: fixed;
    inset: 0;
    z-index: 35;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: calc(var(--s) * 3.2);
    padding: calc(var(--s) * 10) var(--gutter);
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .32s var(--ease), visibility 0s linear .32s;
  }
  html.nav-open .nav{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .32s var(--ease), visibility 0s;
  }
  html.nav-open{ overflow: hidden; }
  .nav a{
    font-size: max(calc(var(--s) * 1.15), 15px);
    padding-bottom: calc(var(--s) * .8);
  }
}
@media (max-width: 620px){
  :root{ --s: 3.4vw; }
  .grid{ grid-template-columns: 1fr; }
  .card::before{ display: none !important; }
  .range{ grid-template-columns: 1fr; gap: calc(var(--s) * 1); }
  .colophon-nav{ gap: calc(var(--s) * 3); }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .card{ transition: none; }
  .card:hover{ transform: none; }
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after,
  .nav{ transition: none; }
}

/* ── category pages ────────────────────────────────────────── */

.lede-cat{ padding-bottom: calc(var(--s) * 2.4); }

.crumb{
  margin: 0 0 calc(var(--s) * 1.2);
  font-family: var(--sans);
  font-size: max(calc(var(--s) * .68), 10px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--soft);
}
.crumb a{ color: var(--gold); text-decoration: none; }
.crumb a:hover{ color: var(--ink); }
.crumb i{ font-style: normal; opacity: .45; margin: 0 .35em; }

/* the four categories, always reachable from inside any one of them */
.tabs{
  display: flex;
  gap: calc(var(--s) * 3.2);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.tabs a{
  display: block;
  padding: 0 0 calc(var(--s) * 1.1);
  margin-bottom: -1px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.tab-name{
  display: block;
  font-size: max(calc(var(--s) * 1.2), 15px);
  color: var(--soft);
  transition: color .3s var(--ease);
}
.tabs a:hover .tab-name{ color: var(--ink); }
.tabs a.is-here{ border-bottom-color: var(--ink); }
.tabs a.is-here .tab-name{ color: var(--ink); font-weight: 700; }
.tab-meta{
  display: block;
  margin-top: calc(var(--s) * .3);
  font-family: var(--mono);
  font-size: max(calc(var(--s) * .64), 9.5px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.items{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--s) * 4) calc(var(--s) * 3);
  padding: calc(var(--s) * 4) var(--gutter) calc(var(--s) * 6);
}

.item{ display: flex; flex-direction: column; }

.item-plate{
  /* flex, not grid: on a grid item centred with place-items the percentage
     height has no definite base to resolve against, so the plate stopped
     bounding the image and a tall render was clipped at the bottom edge. */
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--s) * 15);
  min-height: 175px;
  padding: calc(var(--s) * 2);
  overflow: hidden;
}
/* A percentage max-height on a grid item is not reliably resolved against the
   track, so a wide render could overflow the plate and be clipped at the
   bottom. Sizing the box outright and letting object-fit do the letterboxing
   keeps every pack whole. */
.item-plate img{ max-width: 100%; max-height: 100%; object-fit: contain; }

/* A product without a photograph is shown in its own colour rather than as an
   empty frame, so the grid still tells you which product you are looking at. */
/* no panel behind it — the colour is carried by the mark itself */
.item-crest{ display: block; width: 34%; color: var(--tint, var(--gold)); opacity: .34; }
.item-crest .crest{ display: block; width: 100%; height: auto; }

.item-body{ padding-top: calc(var(--s) * 1.2); }
.item-swatch{
  display: inline-block;
  width: calc(var(--s) * .62);
  height: calc(var(--s) * .62);
  min-width: 8px; min-height: 8px;
  margin-right: calc(var(--s) * .7);
  vertical-align: baseline;
  border-radius: 50%;
}
.item-name{
  display: inline;
  font-weight: 700;
  font-size: max(calc(var(--s) * 1.5), 18px);
}
.item-note{
  margin: calc(var(--s) * .8) 0 0;
  font-size: max(calc(var(--s) * 1), 13.5px);
  line-height: 1.5;
  color: var(--soft);
}

/* a category with nothing in it yet */
.empty{
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--s) * 1.6);
  padding: calc(var(--s) * 5) 0;
  text-align: center;
}
.empty-crest{ display: block; width: calc(var(--s) * 8); color: var(--gold); opacity: .2; }
.empty-crest .crest{ display: block; width: 100%; height: auto; }
.empty-note{
  margin: 0;
  max-width: calc(var(--s) * 40);
  font-size: max(calc(var(--s) * 1.2), 15px);
  line-height: 1.55;
  color: var(--soft);
}

@media (max-width: 1000px){
  .items{ grid-template-columns: repeat(2, 1fr); }
  .tabs{ gap: calc(var(--s) * 2); overflow-x: auto; }
}
@media (max-width: 620px){
  .items{ grid-template-columns: 1fr; }
}


/* ── a product card ────────────────────────────────────────── */
/* It is a button, not a link — nothing is navigated to. */

.item{
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.item-plate{
  /* flex, not grid: on a grid item centred with place-items the percentage
     height has no definite base to resolve against, so the plate stopped
     bounding the image and a tall render was clipped at the bottom edge. */
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--s) * 15);
  min-height: 175px;
  padding: calc(var(--s) * 2);
  overflow: hidden;
}
/* A percentage max-height on a grid item is not reliably resolved against the
   track, so a wide render could overflow the plate and be clipped at the
   bottom. Sizing the box outright and letting object-fit do the letterboxing
   keeps every pack whole. */
.item-plate img{ max-width: 100%; max-height: 100%; object-fit: contain; }
.item-crest{ display: block; width: 34%; color: var(--tint, var(--gold)); opacity: .34; }
.item-crest .crest{ display: block; width: 100%; height: auto; }

.item-body{ display: block; padding-top: calc(var(--s) * 1.2); }
.item-swatch{
  display: inline-block;
  width: calc(var(--s) * .62);
  height: calc(var(--s) * .62);
  min-width: 8px; min-height: 8px;
  margin-right: calc(var(--s) * .7);
  border-radius: 50%;
  background: var(--tint, var(--gold));
}
.item-name{
  display: inline;
  font-weight: 700;
  font-size: max(calc(var(--s) * 1.5), 18px);
}
.item-note{
  display: block;
  margin-top: calc(var(--s) * .8);
  font-size: max(calc(var(--s) * 1), 13.5px);
  line-height: 1.5;
  color: var(--soft);
}

/* the carton lifts under the pointer */
.item-plate img,
.item-crest,
.sheet-box img{
  transition: transform .45s var(--ease);
  will-change: transform;
}
.item:hover .item-plate img,
.item:focus-visible .item-plate img{ transform: translateY(calc(var(--s) * -.9)); }
.item:hover .item-crest,
.item:focus-visible .item-crest{ transform: translateY(calc(var(--s) * -.55)); }
.item:hover .item-name{ text-decoration: underline; text-underline-offset: .18em; }
.item:focus-visible{ outline: 1px solid var(--gold); outline-offset: calc(var(--s) * .8); }

/* ── the product panel ─────────────────────────────────────── */

body.is-locked{ overflow: hidden; }

.overlay{
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: calc(var(--s) * 3);
}
.overlay[hidden]{ display: none; }

.overlay-scrim{
  position: absolute;
  inset: 0;
  background: rgba(22,18,13,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.overlay.is-open .overlay-scrim{ opacity: 1; }

.overlay-panel{
  position: relative;
  width: min(1180px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: calc(var(--s) * 4);
  background: var(--paper);
  box-shadow: 0 calc(var(--s) * 2) calc(var(--s) * 6) rgba(22,18,13,.28);

  opacity: 0;
  transform: translateY(calc(var(--s) * 2)) scale(.985);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.overlay.is-open .overlay-panel{ opacity: 1; transform: none; }

.overlay-close{
  position: absolute;
  top: calc(var(--s) * 1.6);
  right: calc(var(--s) * 1.6);
  z-index: 2;
  display: grid;
  place-items: center;
  width: calc(var(--s) * 2.8);
  height: calc(var(--s) * 2.8);
  min-width: 34px; min-height: 34px;
  padding: 0;
  border: 1px solid var(--rule);
  background: none;
  color: var(--soft);
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.overlay-close:hover{ color: var(--ink); border-color: var(--gold); }
.overlay-close svg{
  width: calc(var(--s) * 1.1); min-width: 13px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
}

.sheet{
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: calc(var(--s) * 4);
  align-items: start;
}

.slot{
  margin: 0;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--tint, var(--gold)) 7%, transparent);
}
.slot img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-wait{
  display: flex; flex-direction: column; align-items: center;
  gap: calc(var(--s) * 1.4);
}
.slot-crest{ display: block; width: calc(var(--s) * 7); color: var(--tint, var(--gold)); opacity: .34; }
.slot-crest .crest{ display: block; width: 100%; height: auto; }
.slot-label{
  font-family: var(--mono);
  font-size: max(calc(var(--s) * .64), 9.5px);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--soft);
  opacity: .7;
}

.sheet-name{
  margin: calc(var(--s) * .9) 0 calc(var(--s) * 1.5);
  font-weight: 700;
  font-size: max(calc(var(--s) * 3.6), 30px);
  line-height: 1;
}
.sheet-copy{
  margin: 0;
  font-size: max(calc(var(--s) * 1.15), 14.5px);
  line-height: 1.6;
  color: var(--soft);
}

/* the carton floats here too, exactly as it does in the grid */
.sheet-box{
  margin: calc(var(--s) * 2.4) 0 0;
  max-width: calc(var(--s) * 30);
}
.sheet-box img{ width: 100%; height: auto; display: block; }
.sheet-box:hover img{ transform: translateY(calc(var(--s) * -.7)); }

.ing{
  margin-top: calc(var(--s) * 2.6);
  padding-top: calc(var(--s) * 1.6);
  border-top: 1px solid var(--rule);
}
.ing-title{
  margin: 0 0 calc(var(--s) * 1.2);
  font-family: var(--sans);
  font-weight: 700;
  font-size: max(calc(var(--s) * .66), 10px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.ing-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--s) * .55) calc(var(--s) * 2);
  margin: 0; padding: 0;
  list-style: none;
}
.ing-list li{
  position: relative;
  padding-left: calc(var(--s) * 1.1);
  font-family: var(--mono);
  font-size: max(calc(var(--s) * .82), 11.5px);
  line-height: 1.45;
  color: var(--ink);
}
.ing-list li::before{
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: calc(var(--s) * .42); height: calc(var(--s) * .42);
  min-width: 5px; min-height: 5px;
  border-radius: 50%;
  background: var(--tint, var(--gold));
}
.detail-legal{
  margin: calc(var(--s) * 2.2) 0 0;
  font-family: var(--mono);
  font-size: max(calc(var(--s) * .6), 9.5px);
  letter-spacing: .05em;
  color: var(--soft);
  opacity: .7;
}

@media (max-width: 900px){
  .sheet{ grid-template-columns: 1fr; gap: calc(var(--s) * 2.6); }
  .ing-list{ grid-template-columns: 1fr; }
  .overlay{ padding: calc(var(--s) * 1.2); }
  .overlay-panel{ padding: calc(var(--s) * 2.4); max-height: 94vh; }
  .slot img{ object-fit: contain; }
}

@media (prefers-reduced-motion: reduce){
  .item-plate img, .item-crest, .sheet-box img{ transition: none; }
  .item:hover .item-plate img,
  .item:hover .item-crest,
  .sheet-box:hover img{ transform: none; }
  .overlay-scrim, .overlay-panel{ transition: none; }
}

/* ── moving between pages ──────────────────────────────────────
   Products, the four category pages and the story are separate
   documents, so every move between them was a hard reload: white
   flash, masthead redrawn, grid snapped into place. Two layers fix
   that. First, cross-document view transitions, where the browser
   has them — the masthead, the tab strip and the colophon are named,
   so they hold still while only the grid beneath them changes.
   Second, nav.js fades the outgoing page for everyone else. */

@view-transition{ navigation: auto; }

::view-transition-old(root){ animation: vt-out .26s var(--ease) both; }
::view-transition-new(root){ animation: vt-in  .46s var(--ease) both; }

@keyframes vt-out{ to{ opacity: 0; transform: translateY(calc(var(--s) * -.5)); } }
@keyframes vt-in { from{ opacity: 0; transform: translateY(calc(var(--s) * 1)); } }

.masthead { view-transition-name: masthead;  }
.tabs     { view-transition-name: tabs;      }
.colophon { view-transition-name: colophon;  }

/* the fallback: paint the outgoing page out before the load lands */
html{ background: var(--paper); }
.is-leaving body{ opacity: 0; transition: opacity .22s var(--ease); }

/* and settle the incoming one in, rather than having it appear */
.lede, .items{ animation: page-in .55s var(--ease) both; }
.items{ animation-delay: .06s; }
@keyframes page-in{
  from{ opacity: 0; transform: translateY(calc(var(--s) * 1.2)); }
}

/* the cards arrive in reading order instead of all at once */
.item{ animation: card-in .5s var(--ease) both; }
.item:nth-child(1){ animation-delay: .10s } .item:nth-child(2){ animation-delay: .15s }
.item:nth-child(3){ animation-delay: .20s } .item:nth-child(4){ animation-delay: .25s }
.item:nth-child(5){ animation-delay: .30s } .item:nth-child(6){ animation-delay: .35s }
.item:nth-child(7){ animation-delay: .40s } .item:nth-child(8){ animation-delay: .45s }
.item:nth-child(9){ animation-delay: .50s }
@keyframes card-in{
  from{ opacity: 0; transform: translateY(calc(var(--s) * 1.6)); }
}

/* the panel was quick enough to read as a cut; give it room to move */
.overlay-scrim{ transition: opacity .42s var(--ease); }
.overlay-panel{
  transform: translateY(calc(var(--s) * 3)) scale(.982);
  transition: opacity .46s var(--ease), transform .52s var(--ease);
}

@media (prefers-reduced-motion: reduce){
  ::view-transition-old(root), ::view-transition-new(root){ animation: none; }
  .lede, .items, .item{ animation: none; }
  .is-leaving body{ transition: none; }
}

/* ── contact ───────────────────────────────────────────────────
   Screen 18 of the wireframe: the form on the left, and on the
   right an archival card rather than an embedded map. Same paper,
   same rules, same type as the rest of the range. */

.contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--s) * 6);
  align-items: start;
  padding: 0 var(--gutter) calc(var(--s) * 8);
}

/* the form */

.form{ max-width: calc(var(--s) * 40); }
.f{ margin: 0 0 calc(var(--s) * 2.4); }
.f-label{
  display: block;
  margin-bottom: calc(var(--s) * .8);
  font-family: var(--sans);
  font-weight: 700;
  font-size: max(calc(var(--s) * .62), 9.5px);
  letter-spacing: .22em;
  color: var(--soft);
}
/* No box. A single rule under the line of type, the way a form is ruled on
   paper — the field is the writing line, not a container. */
.f-input{
  width: 100%;
  padding: calc(var(--s) * .7) 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: none;
  font-family: var(--serif);
  font-size: max(calc(var(--s) * 1.15), 15px);
  color: var(--ink);
  transition: border-color .3s var(--ease);
}
.f-input:focus{ outline: 0; border-bottom-color: var(--gold); }
textarea.f-input{ resize: vertical; min-height: calc(var(--s) * 7); line-height: 1.55; }

.is-bad .f-input:invalid,
.is-bad .f-input:placeholder-shown{ border-bottom-color: #8c3b2e; }

.send{
  margin-top: calc(var(--s) * 1.4);
  padding: calc(var(--s) * 1.05) calc(var(--s) * 3.4);
  border: 1px solid var(--ink);
  background: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: max(calc(var(--s) * .68), 10px);
  letter-spacing: .26em;
  color: var(--ink);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.send:hover{ background: var(--ink); color: var(--paper); }

.form-note{
  margin: calc(var(--s) * 1.6) 0 0;
  font-family: var(--mono);
  font-size: max(calc(var(--s) * .78), 11px);
  line-height: 1.6;
  color: var(--soft);
}

/* the archival card */

.plate{
  position: relative;
  padding: calc(var(--s) * 4);
  border: 1px solid var(--rule);
  /* a hair darker than the paper, the way a pasted-in card sits on a page */
  background: #fdf6ec;
}
.plate-crest{
  position: absolute;
  top: calc(var(--s) * 3);
  right: calc(var(--s) * 3);
  display: block;
  width: calc(var(--s) * 4.4);
  min-width: 46px;
  color: var(--gold);
  opacity: .2;
}
.plate-crest .crest{ display: block; width: 100%; height: auto; }

.plate-title{
  margin: 0 0 calc(var(--s) * 1.4);
  padding-bottom: calc(var(--s) * 1.2);
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
  font-size: max(calc(var(--s) * 2.1), 24px);
  line-height: 1.1;
}
.plate-copy{
  margin: 0 0 calc(var(--s) * 3);
  font-size: max(calc(var(--s) * 1.05), 14px);
  line-height: 1.62;
  color: var(--soft);
}
.plate-label{
  margin: 0 0 calc(var(--s) * .9);
  font-family: var(--sans);
  font-weight: 700;
  font-size: max(calc(var(--s) * .62), 9.5px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.plate-lines{
  margin: 0 0 calc(var(--s) * 2.6);
  font-family: var(--mono);
  font-size: max(calc(var(--s) * .92), 13px);
  line-height: 1.85;
  color: var(--ink);
}
.plate-lines a,
.plate-lines span{ display: block; }
.plate-lines a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
  width: fit-content;
}
.plate-lines a:hover{ border-bottom-color: var(--gold); }

.plate-foot{
  margin: 0;
  padding-top: calc(var(--s) * 1.6);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: max(calc(var(--s) * .58), 9px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--soft);
}

@media (max-width: 900px){
  .contact{ grid-template-columns: 1fr; gap: calc(var(--s) * 4); }
  .form{ max-width: none; }
  .plate{ padding: calc(var(--s) * 3); }
}

/* ── the dark ground ───────────────────────────────────────────
   Contact runs black. Every colour on the site already comes out
   of five tokens, so the page is inverted by redefining those
   five rather than by writing a second stylesheet — anything
   added later inherits the inversion for free. The handful of
   rules below are the places where a colour was named outright
   instead of taken from a token. */

/* The tokens live on the body, but the canvas behind the page is painted from
   the root — so overscrolling a dark page showed a band of cream below the
   footer. The root has to be told separately. */
html:has(body.dark){ background: #0b0906; }

body.dark{
  --paper: #14110d;             /* the ground */
  --ink:   #f6efe3;             /* type */
  --soft:  #a0917c;             /* secondary type */
  --gold:  #c09a68;             /* lifted: the printing gold goes muddy on black */
  --rule:  rgba(246,239,227,.17);

  background: var(--paper);
  color: var(--ink);
}

/* the colophon inverts the page, so on a dark page it goes darker still
   rather than flipping to cream */
.dark .colophon{ background: #0b0906; color: var(--ink); }
.dark .colophon-legal{ color: var(--soft); }
/* The mark and the hover state are painted in --paper, on the assumption that
   the colophon is the one dark band on a light page. Here the page is dark
   too, so --paper is near-black and the lockup vanished into the footer. */
.dark .colophon-mark{ color: var(--ink); }
.dark .colophon-nav a:hover{ color: var(--ink); }

/* the pasted-in card lifts off the ground instead of sinking into it */
.dark .plate{ background: #1d1913; border-color: var(--rule); }

/* a filled field on black reads as a hole; keep the ruled line but let the
   caret and the autofill sit on the same ground */
.dark .f-input{ color: var(--ink); }
.dark .f-input:-webkit-autofill{
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 40px var(--paper) inset;
}
.dark .send:hover{ background: var(--ink); color: var(--paper); }

/* ── FAQ ───────────────────────────────────────────────────────
   Rules, not boxes. Each question is a line of type with a hair
   under it; opening one pushes the answer into the space rather
   than dropping a panel over it. */

.faq{
  padding: calc(var(--s) * 2) var(--gutter) calc(var(--s) * 9);
  border-top: 1px solid var(--rule);
}
.faq-title{
  margin: calc(var(--s) * 1.2) 0 calc(var(--s) * 3.4);
  font-weight: 700;
  font-size: max(calc(var(--s) * 3.6), 32px);
  line-height: 1;
}

.qs{ max-width: calc(var(--s) * 74); }

.q{ border-bottom: 1px solid var(--rule); }
.q:first-child{ border-top: 1px solid var(--rule); }

.q-ask{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(var(--s) * 2);
  padding: calc(var(--s) * 2.1) 0;
  font-size: max(calc(var(--s) * 1.5), 18px);
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color .3s var(--ease);
}
.q-ask::-webkit-details-marker{ display: none; }
.q-ask:hover{ color: var(--gold); }
.q[open] .q-ask{ color: var(--gold); }

/* a drawn cross that loses its upright when the answer is open — no glyph,
   so it cannot go missing with the font */
.q-sign{
  position: relative;
  flex: none;
  width: calc(var(--s) * 1.1);
  min-width: 13px;
  height: 1px;
  margin-top: calc(var(--s) * .6);
  background: currentColor;
}
.q-sign::before{
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: rotate(90deg);
  transition: transform .38s var(--ease), opacity .38s var(--ease);
}
.q[open] .q-sign::before{ transform: rotate(0deg); opacity: 0; }

.q-say{
  overflow: hidden;
  /* the answer unrolls; ::details-content is what makes a native
     <details> animatable, and browsers without it simply open at once */
  padding-bottom: calc(var(--s) * 2.4);
  max-width: calc(var(--s) * 58);
}
.q-say p{
  margin: 0;
  font-size: max(calc(var(--s) * 1.08), 14.5px);
  line-height: 1.68;
  color: var(--soft);
}
.q-say i{ font-style: italic; color: var(--ink); }

.q::details-content{
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size .42s var(--ease), content-visibility .42s allow-discrete,
              opacity .42s var(--ease);
}
.q[open]::details-content{ block-size: auto; opacity: 1; }

@media (prefers-reduced-motion: reduce){
  .q-sign::before, .q::details-content{ transition: none; }
}

/* ── the card's invitation ─────────────────────────────────────
   The whole card has always been a link, but nothing on it said
   so — a pack, a name and a count read as a display, not as a
   door. This is the line that says there is more behind it. */

.card-foot{ display: flex; flex-direction: column; align-items: flex-start;
            gap: calc(var(--s) * 1.1); }

.card-cta{
  display: inline-flex;
  align-items: center;
  gap: calc(var(--s) * .9);
  padding-bottom: calc(var(--s) * .45);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-weight: 700;
  font-size: max(calc(var(--s) * .68), 10px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--soft);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.card-cta svg{
  width: calc(var(--s) * 1.7); min-width: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round;
  transition: transform .38s var(--ease);
}
.card:hover .card-cta{ color: var(--gold); border-bottom-color: var(--gold); }
.card:hover .card-cta svg{ transform: translateX(calc(var(--s) * .55)); }

