/* ================================================================
   Torrefaction No. 4 — kraft, ink, copper, sage
   ================================================================ */
:root {
  --kraft: #d3be92;
  --kraft-deep: #c4ac79;
  --ink: #2a1708;
  --panel: #241309;
  --panel-2: #2f1c0e;
  --copper: #c87a3a;
  --copper-bright: #e0954f;
  --sage: #8c9a76;
  --sage-bright: #a7b48f;
  --cream: #ecdfc4;
  --cream-dim: #cbb896;

  --slab: "Alfa Slab One", "Rockwell", serif;
  --sans: "Archivo", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", monospace;

  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--kraft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--copper); color: var(--cream); }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------- header ---------------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  font-family: var(--slab);
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: .02em;
  display: flex;
  align-items: baseline;
  gap: .45rem;
  white-space: nowrap;
}
.wordmark-no {
  color: var(--copper);
  font-size: .95em;
}
.wordmark-o {
  font-size: .6em;
  vertical-align: super;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.site-nav {
  display: flex;
  gap: clamp(.9rem, 2.5vw, 2rem);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.site-nav a {
  text-decoration: none;
  padding: .2rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { border-bottom-color: var(--copper); }

@media (max-width: 640px) {
  .site-head { flex-wrap: wrap; padding-block: .9rem; }
  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: .5rem;
    font-size: .72rem;
  }
}

/* ---------------- shared type ---------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--copper);
  margin-bottom: 1.1rem;
}
.eyebrow-onDark { color: var(--copper-bright); }

.section-title {
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: .005em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.section-sub {
  max-width: 38rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  margin-bottom: 2.5rem;
}
.onDark { color: var(--cream); }
p.onDark { color: var(--cream-dim); }

.br-desk { display: none; }
@media (min-width: 720px) { .br-desk { display: inline; } }

/* ---------------- hero ---------------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad) clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1160px) {
  .hero { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* printed batch card, tucked in at an angle */
.batch-card {
  display: block;
  position: relative;
  width: min(330px, 100%);
  justify-self: start;
  background: var(--kraft-deep);
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 7px 9px 0 rgba(42, 23, 8, .25);
  padding: 1.1rem 1.2rem 1.2rem;
  transform: rotate(-1.5deg);
  margin-top: -.5rem;
}
@media (min-width: 1160px) {
  .batch-card { justify-self: end; transform: rotate(-2.5deg); margin-top: 0; }
}

.batch-card-head {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(42, 23, 8, .65);
  border-bottom: 2px solid var(--ink);
  padding-bottom: .55rem;
  margin-bottom: .8rem;
}
.batch-card-curve { width: 100%; height: auto; display: block; margin-bottom: .7rem; }
.bc-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.bc-dot { fill: var(--copper); stroke: var(--ink); stroke-width: 2; }
.bc-dev { fill: rgba(200, 122, 58, .18); }
.bc-fc { stroke: rgba(42, 23, 8, .5); stroke-width: 1.5; stroke-dasharray: 4 4; }
.bc-tick { font-family: var(--mono); font-size: 11px; fill: rgba(42, 23, 8, .6); }

.batch-card-rows { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; }
.batch-card-rows dt {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: rgba(42, 23, 8, .55);
}
.batch-card-rows dd { font-family: var(--mono); font-size: .8rem; font-weight: 600; }

.batch-stamp {
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 80px;
  height: 80px;
  border: 3px solid var(--copper);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--copper);
  transform: rotate(9deg);
  background: rgba(211, 190, 146, .75);
  mask-image: radial-gradient(circle at 40% 35%, #000 55%, rgba(0,0,0,.55) 100%);
}
.hero-title {
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(2.9rem, 8.4vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: .002em;
  margin-bottom: 1.4rem;
}
.hero-sub {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 3.2rem;
}

.btn {
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  padding: .95rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  display: inline-block;
}
.btn-solid {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 4px 4px 0 rgba(42, 23, 8, .35);
}
.btn-solid:hover {
  background: var(--copper);
  border-color: var(--copper);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(42, 23, 8, .35);
}
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(42, 23, 8, .08); }

.bag-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem 1rem;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: .8rem 0;
}
.strip-dot { font-size: .5rem; color: var(--copper); }

/* ---------------- roast lab ---------------- */
.lab {
  background: var(--panel);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.lab-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad);
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: stretch;
}
@media (max-width: 900px) {
  .lab-grid { grid-template-columns: 1fr; }
}

.chart-panel {
  background: var(--panel-2);
  border: 1px solid rgba(236, 223, 196, .18);
  border-radius: 6px;
  padding: clamp(.8rem, 2vw, 1.4rem);
  min-width: 0;
}
#roastChart {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
}
.chart-caption {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: .8rem .4rem .2rem;
}

/* chart internals (SVG) */
.grid-line { stroke: rgba(236, 223, 196, .09); stroke-width: 1; }
.grid-line-major { stroke: rgba(236, 223, 196, .16); }
.axis-label {
  font-family: var(--mono);
  font-size: 13px;
  fill: rgba(236, 223, 196, .55);
}
.axis-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  fill: rgba(236, 223, 196, .45);
  text-transform: uppercase;
}
.phase-band { fill: rgba(236, 223, 196, .03); }
.phase-band-dev { fill: rgba(200, 122, 58, .13); }
.phase-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  fill: rgba(236, 223, 196, .5);
  text-transform: uppercase;
}
.curve-main {
  fill: none;
  stroke: var(--copper-bright);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.curve-ghost {
  fill: none;
  stroke: rgba(236, 223, 196, .28);
  stroke-width: 2;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
}
.curve-ror {
  fill: none;
  stroke: rgba(167, 180, 143, .65);
  stroke-width: 2;
  stroke-linecap: round;
}
.ror-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  fill: rgba(167, 180, 143, .8);
  text-transform: uppercase;
}
.marker-line {
  stroke: var(--sage-bright);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}
.marker-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  fill: var(--sage-bright);
  text-transform: uppercase;
}
.marker-dot { fill: var(--sage-bright); }
.crack2-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  fill: rgba(236, 223, 196, .45);
  text-transform: uppercase;
  transition: opacity .25s ease;
}
.crack2-tick { stroke: rgba(236, 223, 196, .45); stroke-width: 1.5; }
.phase-band-c2 { fill: rgba(160, 62, 30, .16); }

/* axis cursor: live drop-temp readout on the y-axis */
.temp-guide {
  stroke: rgba(224, 149, 79, .35);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}
.temp-chip { fill: var(--copper); }
.temp-chip-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  fill: var(--panel);
}

/* the house roast, kept as a reference once you drag away from it */
.pick-mark { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.pick-mark.shown { opacity: 1; }
.pick-ring {
  fill: none;
  stroke: rgba(236, 223, 196, .55);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}
.pick-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  fill: rgba(236, 223, 196, .55);
  text-transform: uppercase;
}

/* keep the instrument legible when the SVG scales down */
@media (max-width: 700px) {
  .axis-label { font-size: 22px; }
  .axis-title { font-size: 19px; }
  .phase-label { font-size: 18px; }
  .marker-label { font-size: 20px; }
  .crack2-label { font-size: 16px; }
  .ror-label { font-size: 18px; }
  .handle-tag { font-size: 21px; }
  .handle-hint { font-size: 18px; }
  .pick-label { font-size: 16px; }
  .temp-chip-label { font-size: 20px; }
}

.drop-handle { cursor: grab; }
.drop-handle:active { cursor: grabbing; }
.drop-handle:focus { outline: none; }
.handle-core { fill: var(--cream); stroke: var(--copper); stroke-width: 4; }
.handle-ring {
  fill: none;
  stroke: rgba(224, 149, 79, .55);
  stroke-width: 1.5;
}
.drop-handle:focus-visible .handle-ring,
.drop-handle:hover .handle-ring {
  stroke: var(--cream);
  stroke-width: 2;
}
.handle-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  fill: var(--cream);
  text-transform: uppercase;
}
.handle-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  fill: rgba(236, 223, 196, .5);
}

/* readout */
.readout {
  background: var(--kraft);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .35);
  padding: clamp(1.2rem, 2.5vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.readout-bean {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1.1rem;
}
#beanGlyph { width: 86px; height: 86px; flex: 0 0 auto; }
#beanBody { fill: #96683a; stroke: var(--ink); stroke-width: 3; transition: fill .2s ease; }
#beanCrease { stroke: var(--ink); stroke-width: 3.5; }
#beanSheen { fill: rgba(236, 223, 196, 0); transition: fill .2s ease; }

.readout-kicker {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(42, 23, 8, .6);
  margin-bottom: .15rem;
}
.readout-level {
  font-family: var(--slab);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.1;
}
@media (prefers-reduced-motion: no-preference) {
  .readout-level.bump { animation: stamp .32s cubic-bezier(.2, .8, .3, 1.3); }
  @keyframes stamp {
    0%   { transform: scale(.92); color: var(--copper); }
    100% { transform: none; }
  }
}
.readout-agtron {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--copper);
  text-transform: uppercase;
}

.readout-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.readout-data dt {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(42, 23, 8, .6);
  margin-bottom: .2rem;
}
.readout-data dd {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
}

.readout-notes p:last-child,
.readout-brew p:last-child {
  font-weight: 600;
  font-size: 1rem;
}

.readout-foot {
  font-size: .85rem;
  font-style: italic;
  color: rgba(42, 23, 8, .75);
  border-top: 2px solid var(--ink);
  padding-top: .9rem;
  margin-top: auto;
}

/* ---------------- process ---------------- */
.process {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad);
}

.stations {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  background: var(--kraft-deep);
}
@media (max-width: 780px) {
  .stations { grid-template-columns: 1fr; }
}

.station {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1.1rem;
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  border-bottom: 2px solid var(--ink);
  position: relative;
  transition: background .2s ease;
}
.station:hover { background: rgba(236, 223, 196, .28); }
.station:hover .station-glyph { stroke: var(--copper); }
.station .station-glyph { transition: stroke .2s ease; }
.station:nth-child(odd) { border-right: 2px solid var(--ink); }
.station:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 780px) {
  .station:nth-child(odd) { border-right: none; }
  .station:nth-last-child(2) { border-bottom: 2px solid var(--ink); }
}

.station-no {
  font-family: var(--slab);
  font-size: 1.5rem;
  color: var(--copper);
  line-height: 1;
}
.station-glyph {
  width: 52px;
  height: 52px;
  stroke: var(--ink);
  stroke-width: 2.5;
  fill: none;
}
.station-glyph circle[r="3"] { fill: var(--copper); stroke: none; }
.station-body h3 {
  font-family: var(--slab);
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: .4rem;
}
.station-body p { font-size: .95rem; }
.station-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cream);
  background: var(--ink);
  padding: .3rem .6rem;
  border-radius: 3px;
  margin-top: .7rem;
}

/* ---------------- drop ---------------- */
.drop {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(4rem, 8vw, 6.5rem);
}
.drop-card {
  background: var(--panel);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(42, 23, 8, .3);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
}
@media (max-width: 860px) {
  .drop-card { grid-template-columns: 1fr; align-items: start; }
}
.drop-card .section-title { color: var(--cream); }
.drop-sub { color: var(--cream-dim); margin-bottom: 1.8rem; }

.drop-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  font-size: .95rem;
  color: var(--cream-dim);
}
.drop-facts span {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--copper-bright);
  display: inline-block;
  min-width: 4.6rem;
}

.drop-label {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--cream-dim);
  margin-bottom: .6rem;
}
.drop-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.drop-row input {
  flex: 1 1 200px;
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--cream);
  background: var(--panel-2);
  border: 2px solid rgba(236, 223, 196, .35);
  border-radius: 3px;
  padding: .9rem 1rem;
}
.drop-row input::placeholder { color: rgba(236, 223, 196, .4); }
.drop-row input:focus-visible {
  outline: 3px solid var(--copper-bright);
  outline-offset: 2px;
  border-color: var(--copper-bright);
}
.drop-row .btn-solid {
  border-color: var(--copper);
  background: var(--copper);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .4);
}
.drop-row .btn-solid:hover {
  background: var(--copper-bright);
  border-color: var(--copper-bright);
}
.drop-fine {
  font-size: .82rem;
  color: rgba(236, 223, 196, .55);
  margin-top: .8rem;
}
.drop-fine.confirmed { color: var(--sage-bright); font-weight: 600; }

/* ---------------- footer ---------------- */
.site-foot {
  border-top: 3px solid var(--ink);
  background: var(--kraft-deep);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--pad) 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  max-width: 100%;
}
@media (max-width: 700px) {
  .site-foot { grid-template-columns: 1fr; }
}
.foot-wordmark {
  font-family: var(--slab);
  font-size: 1.3rem;
  margin-bottom: .3rem;
}
.foot-line { font-size: .92rem; color: rgba(42, 23, 8, .75); }
.foot-meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .04em;
  text-align: right;
}
@media (max-width: 700px) { .foot-meta { text-align: left; } }
.foot-meta a { color: var(--copper); text-decoration-thickness: 2px; }
.foot-legal {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(42, 23, 8, .55);
  border-top: 1px solid rgba(42, 23, 8, .3);
  padding-top: 1.2rem;
}

/* ---------------- guide page ---------------- */
.guide-main {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(4rem, 7vw, 6rem);
}
.guide-back {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  border-bottom: 2px solid var(--copper);
  padding-bottom: .1rem;
}
.guide-main h1 {
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 1.6rem 0 1rem;
}
.guide-main h2 {
  font-family: var(--slab);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin: 2.8rem 0 .9rem;
  padding-top: 2rem;
  border-top: 2px solid var(--ink);
}
.guide-main p, .guide-main li { max-width: 62ch; }
.guide-main p + p { margin-top: .8rem; }
.guide-main ul, .guide-main ol { padding-left: 1.3rem; margin: .8rem 0; }
.guide-main li { margin-bottom: .55rem; }
.guide-main li strong { font-weight: 700; }

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.2rem 0;
}
.swatch {
  flex: 1 1 118px;
  min-width: 118px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  overflow: hidden;
  background: var(--kraft-deep);
}
.swatch-chip { height: 62px; }
.swatch figcaption {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .45rem .55rem;
  line-height: 1.4;
}
.swatch figcaption span { display: block; color: rgba(42,23,8,.6); }

.type-specimen {
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--kraft-deep);
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}
.type-specimen p { margin-bottom: .7rem; }
.spec-slab { font-family: var(--slab); font-size: 1.7rem; line-height: 1.15; }
.spec-sans { font-family: var(--sans); font-size: 1.05rem; }
.spec-mono { font-family: var(--mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 0 !important; }

.guide-main pre {
  background: var(--panel);
  color: var(--cream);
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.55;
  border-radius: 6px;
  border: 2px solid var(--ink);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
}
.guide-main code { font-family: var(--mono); font-size: .88em; }
.guide-main p code, .guide-main li code {
  background: rgba(42, 23, 8, .1);
  padding: .1em .35em;
  border-radius: 3px;
}

.pass-list { list-style: none; padding-left: 0 !important; }
.pass-list li {
  border-left: 4px solid var(--copper);
  padding: .2rem 0 .2rem 1rem;
  margin-bottom: 1rem;
}
.pass-list .pass-name {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--copper);
  display: block;
  margin-bottom: .2rem;
}

/* ---------------- motion ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero-copy .eyebrow      { animation-delay: .05s; }
  .hero-copy .hero-title   { animation-delay: .12s; }
  .hero-copy .hero-sub     { animation-delay: .22s; }
  .hero-copy .hero-actions { animation-delay: .32s; }
  .hero-copy .bag-strip    { animation-delay: .45s; }
  /* the batch card gets no entrance animation on purpose: its display
     toggles with a media query, and replayed keyframes would blink it out */

  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
}
