:root {
  --paper: #f3eee4;
  --cream: #fbf7ee;
  --ink: #2a221b;
  --muted: #5c4e42;
  --almond: #8c3e1e;
  --almond-deep: #73311a;
  --gold: #8a6a22;
  --shell: #e2d3bf;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--almond); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--almond-deep); }

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

h1, h2, h3, p, ul, dl, figure { margin: 0; }

h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.2; }

.wrap {
  width: min(66rem, 100% - 3rem);
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }

.eyebrow {
  color: var(--almond);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow + h2 { margin-top: 0.7rem; }

.big {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.4;
}

.nb { white-space: nowrap; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.3rem;
  z-index: 10;
}
.skip:focus { top: 1rem; color: var(--paper); }

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--almond);
  border-radius: 999px;
  background: var(--almond);
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--almond-deep); border-color: var(--almond-deep); color: var(--cream); }

.btn--quiet { background: transparent; color: var(--almond); }
.btn--quiet:hover { background: var(--almond); color: var(--cream); }

/* Header */

.site-header { border-bottom: 1px solid var(--shell); }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 2.25rem;
  padding-block: 1.1rem;
}

.nav a {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover { color: var(--almond); }

/* Hero */

.hero {
  padding-top: clamp(2.75rem, 1.5rem + 5vw, 5rem);
  text-align: center;
}

.hero h1 { margin: 1.1rem auto 0; width: min(31rem, 100%); }
.hero h1 img { width: 100%; }

.line {
  margin: 1.5rem auto 0;
  max-width: 24rem;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.35;
}

.hero .actions { justify-content: center; margin-top: 2rem; }

.village { margin: clamp(2rem, 1rem + 4vw, 3.5rem) auto 0; width: min(43rem, 100%); }

figcaption {
  margin-top: 0.6rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

/* Product */

#crisps { border-top: 1px solid var(--shell); margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.product__text .big { margin-top: 1.4rem; }
.product__text .big + p { margin-top: 1rem; color: var(--muted); }
.product__text .actions { margin-top: 2rem; }

.facts {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--shell);
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.3;
}
.facts strong {
  display: block;
  color: var(--ink);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.1;
}

/* The card borrows the bag label: cream ground, gold ring. */
.label {
  position: relative;
  padding: clamp(1.9rem, 1.4rem + 1.5vw, 2.75rem);
  background: var(--cream);
  border-radius: 1.6rem;
}
.label::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1.5px solid var(--gold);
  border-radius: 1.1rem;
  opacity: 0.75;
  pointer-events: none;
}

.label dl { margin-top: 1.1rem; }
.label dt {
  margin-top: 1rem;
  color: var(--almond);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.label dd { margin: 0.2rem 0 0; font-size: 1rem; line-height: 1.45; }

details { position: relative; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--shell); }
summary { cursor: pointer; color: var(--almond); font-size: 1rem; }
summary:hover { color: var(--almond-deep); }

.nutrition {
  width: 100%;
  margin-top: 0.9rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.3;
}
.nutrition caption { padding-bottom: 0.6rem; text-align: left; color: var(--muted); }
.nutrition th, .nutrition td { padding: 0.32rem 0; border-top: 1px solid var(--shell); text-align: left; font-weight: 400; }
.nutrition thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nutrition td, .nutrition thead th:not(:first-child) { text-align: right; white-space: nowrap; padding-left: 1rem; }
.nutrition .strong th { font-weight: 700; }
.nutrition .sub th { padding-left: 1rem; }
.nutrition .sub2 th { padding-left: 2rem; }
.note { margin-top: 0.6rem; color: var(--muted); font-size: 0.8rem; }

.versions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  padding: 0;
  border-top: 1px solid var(--shell);
  border-bottom: 1px solid var(--shell);
  list-style: none;
}
.versions li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  padding: 1.25rem 1.5rem;
}
.versions li + li { border-left: 1px solid var(--shell); }
.versions li:first-child { padding-left: 0; }
.versions li:last-child { padding-right: 0; }
.versions__name { font-size: 1.4rem; }

.tag { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.tag--on { color: var(--almond); }

/* Where to buy */

.band { background: var(--cream); border-block: 1px solid var(--shell); }

.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}
.ways article { padding: 0.25rem 2rem; border-left: 1px solid var(--shell); }
.ways article:first-child { padding-left: 0; border-left: 0; }
.ways article:last-child { padding-right: 0; }
.ways h3 { font-size: 1.5rem; }
.ways p { margin-top: 0.6rem; color: var(--muted); }
.ways .go { margin-top: 1.25rem; }

.more { display: inline-block; padding-block: 0.75rem; line-height: 1.2; }
.more::after { content: " \2192"; }

/* Story */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.story__text .big { margin-top: 1.4rem; }
.story__text .big + p { margin-top: 1rem; color: var(--muted); max-width: 34rem; }

.map { color: var(--gold); width: min(19rem, 100%); margin-inline: auto; }
.map svg { width: 100%; }

/* Footer */

.site-footer {
  padding-block: clamp(3.5rem, 2rem + 6vw, 6rem) 2.5rem;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.site-footer .eyebrow { color: #d9b38c; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: #d9b38c; }

.mail { margin-top: 1.25rem; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
.trade { margin-top: 0.9rem; color: #c9bba9; }

.colophon {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(243, 238, 228, 0.16);
  color: #b3a595;
  font-size: 0.9rem;
}
.colophon img { width: 9.5rem; margin: 0 auto 1.1rem; }
.colophon p + p { margin-top: 0.2rem; }

/* Plain page, used by 404 */

.plain { min-height: 100vh; display: grid; place-content: center; gap: 1.25rem; padding: 2rem; text-align: center; }
.plain img { width: min(20rem, 80vw); margin-inline: auto; }
.plain .actions { justify-content: center; }

/* Small screens */

@media (max-width: 800px) {
  body { font-size: 1.0625rem; }
  .product, .story { grid-template-columns: minmax(0, 1fr); }
  .map { width: min(15rem, 70%); }

  .ways { grid-template-columns: minmax(0, 1fr); }
  .ways article { padding: 1.5rem 0; border-left: 0; border-top: 1px solid var(--shell); }
  .ways article:first-child { padding-top: 0; border-top: 0; }
  .ways article:last-child { padding-bottom: 0; }

  .versions { grid-template-columns: minmax(0, 1fr); }
  .versions li, .versions li:first-child, .versions li:last-child { padding: 1rem 0; }
  .versions li + li { border-left: 0; border-top: 1px solid var(--shell); }
}

@media (max-width: 480px) {
  .wrap { width: min(66rem, 100% - 2.5rem); }
  .nav { gap: 0.35rem 1.25rem; }
  .nav a { font-size: 0.7rem; letter-spacing: 0.14em; }
  .facts { gap: 1.25rem; }
  .facts strong { font-size: 1.6rem; }
  .hero .btn { padding-inline: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
