/* Off Trail Clothing: website styles. Colours and font come from the Off Trail brand. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --peat: #1E231D;
  --oat: #ECE5D4;
  --gorse: #E2A833;
  --gorse-light: #EFC05A;
  --bracken: #B4552B;
  --moss: #3D5236;
  --slate: #34505E;
  --rust: #8E4A2E;
  --paper: #F3EFE5;
  --tile: #EEEAE1;
  --muted: #4E574D;
  --line: #DDD5C4;
  --white: #FFFFFF;
  --danger: #A33A1F;
  --ok: #2F6B3A;
  --radius: 8px;
  --wrap: 1240px;
  --gutter: 24px;
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--peat);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--peat); }
a:hover { color: var(--bracken); }
:focus-visible { outline: 3px solid var(--gorse); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.display {
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bracken);
}
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--gorse);
  color: var(--peat);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.15;
}
.btn--gorse { background: var(--gorse); color: var(--peat); }
.btn--gorse:hover { background: #EDB848; color: var(--peat); }
.btn--dark { background: var(--peat); color: var(--oat); }
.btn--dark:hover { background: #333A31; color: var(--oat); }
.btn--outline-light { border-color: var(--oat); color: var(--oat); background: transparent; }
.btn--outline-light:hover { background: rgba(236, 229, 212, 0.12); color: var(--oat); }
.btn--outline { border-color: var(--peat); color: var(--peat); background: transparent; }
.btn--outline:hover { background: rgba(30, 35, 29, 0.06); color: var(--peat); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; }
.text-link { font-weight: 700; padding: 10px 0; display: inline-block; }

/* ---------- Top bar, header and navigation ---------- */

.topbar {
  background: var(--peat);
  color: var(--oat);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 9px var(--gutter);
}
.topbar__preview { color: var(--gorse); }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: block; flex: 0 0 auto; }
.logo img { height: 60px; width: auto; }
.nav { display: flex; gap: 4px 26px; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; padding: 10px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a[aria-current='page'] { border-bottom-color: var(--bracken); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
}
.icon-btn:hover { background: rgba(30, 35, 29, 0.07); color: var(--peat); }
.basket-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bracken);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.basket-count[hidden] { display: none; }

@media (max-width: 860px) {
  .site-header__inner { padding-top: 10px; padding-bottom: 0; }
  .logo img { height: 48px; }
  .nav {
    order: 3;
    width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    gap: 22px;
    border-top: 1px solid var(--line);
  }
  .nav::-webkit-scrollbar { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-top: 72px; }
.section--last { padding-bottom: 80px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.section-head h2, .h2 { font-size: 40px; }
.section-head p { margin-top: 6px; color: var(--muted); }
@media (max-width: 600px) {
  .section { padding-top: 56px; }
  .section-head h2, .h2 { font-size: 34px; }
}

/* A patterned stand-in for a photo that hasn't arrived yet. */
.placeholder {
  position: relative;
  border-radius: var(--radius);
  background-color: var(--moss);
  background-image: repeating-radial-gradient(ellipse at 65% 35%, transparent 0 22px, rgba(236, 229, 212, 0.09) 22px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.placeholder--slate { background-color: var(--slate); }
.placeholder--rust { background-color: var(--rust); }
.placeholder--bracken { background-color: var(--bracken); }
.placeholder--peat { background-color: var(--peat); }
.placeholder__note {
  background: rgba(30, 35, 29, 0.75);
  color: var(--oat);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
}
.photo { border-radius: var(--radius); width: 100%; object-fit: cover; }

/* ---------- Home: hero ---------- */

.hero-wrap { padding-top: 28px; }
.hero {
  position: relative;
  min-height: 580px;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--moss);
  background-image: repeating-radial-gradient(ellipse at 72% 28%, transparent 0 26px, rgba(236, 229, 212, 0.09) 26px 28px);
  display: flex;
  align-items: flex-end;
  color: var(--oat);
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__photo + .hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 24, 19, 0.78), rgba(20, 24, 19, 0.15) 60%, transparent);
}
.hero .placeholder__note { position: absolute; right: 20px; top: 20px; }
.hero__content {
  position: relative;
  padding: 48px clamp(24px, 5vw, 64px);
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero__content .eyebrow { color: var(--gorse-light); }
.hero h1 { font-size: clamp(56px, 9vw, 112px); line-height: 0.88; }
.hero__lead { font-size: 20px; max-width: 30ch; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
@media (max-width: 600px) {
  .hero-wrap { padding-top: 16px; }
  .hero { min-height: 500px; }
  .hero .placeholder__note { left: 16px; right: 16px; top: 16px; }
  .hero__content { padding-top: 76px; padding-bottom: 32px; }
}

/* ---------- Product cards and tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.tile { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.tile__image, .tile .placeholder { aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; width: 100%; }
.tile__image { background: var(--tile); }
.tile__label { font-size: 22px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 28px 24px;
}
.card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.card__image {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--tile);
  margin-bottom: 8px;
  transition: opacity 0.15s;
}
.card:hover .card__image { opacity: 0.92; }

/* Cards that turn over to show the back of the garment (see views/partials/card.ejs). */
.card-wrap { position: relative; display: flex; flex-direction: column; }
.card__pics { display: block; perspective: 1400px; margin-bottom: 8px; }
.card__pics .card__image { display: block; margin-bottom: 0; }
.card__turn { position: relative; display: block; transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(0.4, 0.1, 0.2, 1); }
.card__front, .card__back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card__back { position: absolute; inset: 0; height: 100%; transform: rotateY(180deg); }
.card-wrap.is-flipped .card__turn { transform: rotateY(180deg); }
.card-wrap.is-flipped .card:hover .card__image { opacity: 1; }
.card__flip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--peat);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.card__flip svg { transition: transform 0.55s; }
.card-wrap.is-flipped .card__flip svg { transform: rotate(180deg); }
.card__flip:active { transform: scale(0.94); }
/* With a mouse, hovering turns the card, so the button only shows up when it's useful (hover or keyboard). */
@media (hover: hover) and (pointer: fine) {
  .card__flip { opacity: 0; }
  .card-wrap:hover .card__flip, .card-wrap:focus-within .card__flip { opacity: 1; }
}
.card__pics { touch-action: pan-y; }
/* For people who've asked their device for less motion: a gentle fade instead of a spin. */
@media (prefers-reduced-motion: reduce) {
  .card__turn, .card__flip svg { transition: none; }
  .card-wrap.is-flipped .card__turn, .card-wrap.is-flipped .card__flip svg { transform: none; }
  .card__back { transform: none; opacity: 0; transition: opacity 0.3s; }
  .card-wrap.is-flipped .card__back { opacity: 1; }
}
.card__title { font-weight: 700; }
.card__meta { font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card__price { font-weight: 700; }
.card__price s { color: var(--muted); font-weight: 500; margin-left: 6px; }
.dots { display: inline-flex; gap: 4px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.25); display: inline-block; }
@media (max-width: 600px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .card__meta { font-size: 14px; }
  .card__flip { top: 8px; right: 8px; width: 36px; height: 36px; }
  .tile__image, .tile .placeholder { aspect-ratio: 4 / 3; }
}
.empty-note {
  background: var(--oat);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* ---------- Dark band (Drop 01) ---------- */

.band { margin-top: 80px; background: var(--peat); color: var(--oat); }
.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 56px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.band__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.band__text .eyebrow { color: var(--gorse); }
.band__text h2 { font-size: clamp(44px, 6vw, 72px); line-height: 0.9; }
.band__text p { max-width: 46ch; }
.band__text a { color: var(--oat); }
.band__designs { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.band__designs .placeholder, .band__designs img { aspect-ratio: 3 / 4; align-items: flex-end; justify-content: flex-start; padding: 12px; }
.band__designs .placeholder span { font-size: 13px; font-weight: 700; }

/* ---------- Facts, founder, ambassadors ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px;
}
.fact { display: flex; flex-direction: column; gap: 10px; }
.fact h3 { font-size: 24px; line-height: 1.1; }
.fact p { color: var(--muted); }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.split__media { flex: 1 1 420px; min-width: 0; }
.split__media .placeholder, .split__media img { aspect-ratio: 4 / 3; width: 100%; }
.split__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split__text h2 { font-size: clamp(36px, 4.5vw, 52px); }
.split__text p { max-width: 52ch; }
/* No photo yet: the heading sits on one side and the founder's words on the other. */
.split--words { align-items: flex-start; }
.founder__intro { font-weight: 700; }
.founder__intro--large { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; }
.founder__quote { margin: 0; font-style: italic; display: flex; flex-direction: column; gap: 14px; }
.founder__sign { font-weight: 700; }
.prose .founder__sign { font-style: italic; }
/* Paul's photo is nearly square, so it isn't cut down to the usual 4:3 (which would crop his cap). */
.split__media .photo--founder { aspect-ratio: 1 / 1; object-position: 50% 30%; }

/* Our story: each part of Paul's story, with its photo beside the words. */
.story { max-width: 1040px; padding-top: 24px; display: flex; flex-direction: column; gap: 56px; }
.story-part { display: flex; flex-direction: column; gap: 16px; max-width: 70ch; }
.story-part__head { font-size: 30px; }
.story-part__text { display: flex; flex-direction: column; gap: 16px; }
.story-part__pic { display: block; width: 100%; height: auto; }
@media (min-width: 801px) {
  .story-part--pic {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "head pic" "text pic";
    grid-template-rows: auto 1fr;
    gap: 16px 56px;
    align-items: start;
  }
  .story-part--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "pic head" "pic text"; }
  .story-part--pic .story-part__head { grid-area: head; }
  .story-part--pic .story-part__pic { grid-area: pic; max-height: 560px; object-fit: cover; }
  .story-part--pic .story-part__text { grid-area: text; }
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 28px 24px;
}
.person { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.person .placeholder, .person img {
  width: 150px; height: 150px;
  border-radius: 50%;
  padding: 0;
  color: var(--oat);
  font-size: 13px;
  font-weight: 700;
  object-fit: cover;
}
.person .placeholder { background-image: repeating-radial-gradient(circle at 50% 45%, transparent 0 12px, rgba(236, 229, 212, 0.12) 12px 14px); }
.person__name { font-weight: 700; margin-top: 4px; }
@media (max-width: 600px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .person .placeholder, .person img { width: 128px; height: 128px; }
}
.person__focus { font-size: 15px; color: var(--muted); }

/* ---------- Sign-up box ---------- */

.signup {
  background: var(--oat);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.signup__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.signup__text p { color: var(--muted); }
.signup__form { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.signup__form label { font-size: 15px; font-weight: 700; }
.signup__row { display: flex; flex-wrap: wrap; gap: 10px; }
.input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 50px;
  padding: 0 18px;
  border: 2px solid var(--peat);
  border-radius: 999px;
  background: var(--white);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--peat); color: var(--oat); }
.site-footer a { color: var(--oat); text-decoration: none; }
.site-footer a:hover { color: var(--gorse); text-decoration: underline; }
.site-footer__inner { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.site-footer__logo img { height: 64px; width: auto; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gorse);
}
.site-footer__tag { margin-top: 6px; max-width: 22ch; font-size: 15px; color: rgba(236, 229, 212, 0.75); }
.site-footer__tag a { color: var(--gorse); font-weight: 700; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgba(236, 229, 212, 0.2);
  padding-top: 20px;
  font-size: 14px;
  color: #C9C2B0;
}
.site-footer__bottom a { color: #C9C2B0; }

/* ---------- Page headings ---------- */

.page-head { padding-top: 48px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { font-size: clamp(44px, 7vw, 76px); line-height: 0.9; }
.page-head p { color: var(--muted); max-width: 60ch; font-size: 18px; }
.breadcrumbs { font-size: 15px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.chip[aria-current='page'] { border-color: var(--peat); background: var(--peat); color: var(--oat); }

/* ---------- Product page ---------- */

.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; padding-top: 32px; }
@media (max-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
}
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery__main { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--tile); }
.gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery__thumbs button {
  width: 76px; height: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--tile);
  cursor: pointer;
  overflow: hidden;
}
.gallery__thumbs button[aria-pressed='true'] { border-color: var(--peat); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buy { display: flex; flex-direction: column; gap: 22px; }
.buy h1 { font-size: clamp(40px, 5vw, 60px); }
.buy__price { font-size: 26px; font-weight: 700; }
.buy__price s { font-size: 20px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.option { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.option legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.option legend span { font-weight: 500; color: var(--muted); }
.option__choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 56px;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
}
.choice > input:checked + span { border-color: var(--peat); box-shadow: inset 0 0 0 1px var(--peat); }
.choice > input:focus-visible + span { outline: 3px solid var(--gorse); outline-offset: 2px; }
.choice > input:disabled + span { opacity: 0.4; text-decoration: line-through; }
.choice .dot { width: 18px; height: 18px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; font-size: 22px; cursor: pointer; border-radius: 999px; }
.qty button:hover { background: rgba(30, 35, 29, 0.06); }
.qty input { width: 44px; height: 46px; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy__actions .btn { flex: 1 1 220px; }
.notice {
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--oat);
  font-weight: 600;
}
.notice--ok { background: #DDE8D6; }
.notice--error { background: #F3D9CD; color: #6B2410; }
.notice a { font-weight: 700; }
.buy__details { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.buy__details p { max-width: 60ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: 0 0 auto; margin-top: 3px; }

/* Fold-out sections on a product page: fabric and care, size and fit. */
.fold { border-top: 1px solid rgba(30, 35, 29, 0.16); }
.fold:last-of-type { border-bottom: 1px solid rgba(30, 35, 29, 0.16); }
.fold summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--peat);
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; }
.fold[open] summary::after { content: "−"; }
.fold summary:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.fold > :not(summary) { margin-bottom: 14px; }
.fold ul { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.fold table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fold .table-scroll { border: 0; border-radius: 0; background: none; }
.fold th, .fold td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid rgba(30, 35, 29, 0.1); white-space: nowrap; }

/* ---------- Basket ---------- */

.basket { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; padding-top: 24px; }
@media (max-width: 860px) {
  .basket { grid-template-columns: minmax(0, 1fr); }
}
.basket-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.basket-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.basket-line img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--tile); }
.basket-line__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.basket-line__title { font-weight: 700; text-decoration: none; }
.basket-line__label { color: var(--muted); font-size: 15px; }
.basket-line__controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px; }
.basket-line__total { font-weight: 700; text-align: right; }
.link-button { background: none; border: 0; padding: 8px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 15px; }
.link-button:hover { color: var(--bracken); }
.summary {
  background: var(--oat);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 16px;
}
.summary h2 { font-size: 28px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; }
.summary__total { font-size: 20px; font-weight: 800; border-top: 1px solid rgba(30, 35, 29, 0.2); padding-top: 12px; }
.summary__small { font-size: 14px; color: var(--muted); }
.summary__small a { color: var(--muted); }
@media (max-width: 480px) {
  .basket-line { grid-template-columns: 72px minmax(0, 1fr); }
  .basket-line img { width: 72px; height: 72px; }
  .basket-line__total { grid-column: 2; text-align: left; }
}

/* ---------- Text pages (story, delivery, privacy, terms) ---------- */

.prose { max-width: 70ch; padding-top: 24px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 30px; margin-top: 24px; }
.prose h3 { font-size: 20px; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
.prose .updated { color: var(--muted); font-size: 15px; }

/* ---------- Journal ---------- */

.journal-list { padding-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.journal-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--radius);
  background: var(--oat); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.journal-card:hover { border-color: var(--peat); }
.journal-card__meta, .article__meta { color: var(--muted); font-size: 14px; }
.journal-card__title { font-size: 28px; line-height: 1; }
.journal-card__text { color: var(--muted); }
.journal-card .text-link { padding-bottom: 0; margin-top: auto; }
.article .page-head h1 { font-size: clamp(38px, 6vw, 64px); max-width: 18ch; text-wrap: balance; }
.article .page-head .eyebrow { text-decoration: none; }
.article__lead { font-size: 20px; line-height: 1.45; font-weight: 600; }
.article__draft { margin-top: 24px; padding: 12px 16px; border-radius: var(--radius); background: var(--gorse); color: var(--peat); font-weight: 700; }
.article__shop { margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--oat); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.article__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.article__sources-head { font-size: 20px; margin-top: 24px; }
.article__sources, .article__more { font-size: 15px; }
.article__sources a { overflow-wrap: anywhere; }
.stats-choice label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.stats-choice input { width: 20px; height: 20px; accent-color: var(--moss); }
.draft-note {
  border-left: 4px solid var(--gorse);
  background: var(--oat);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
}
.missing { background: #F6E3B4; padding: 0 4px; border-radius: 3px; }

/* ---------- Thank-you page ---------- */

.receipt { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.receipt__row { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- Admin ---------- */

.admin { padding-top: 32px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.admin h1 { font-size: 48px; }
.admin h2 { font-size: 30px; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--oat); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.table tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status--good { background: #DDE8D6; color: #234D2B; }
.status--bad { background: #F3D9CD; color: #6B2410; }
.status--wait { background: #F6E3B4; color: #5A4210; }
.status--info { background: var(--oat); color: var(--peat); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* The "add someone to the team" form: name, email and button in one row, stacking on a phone. */
.team-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 820px; margin-top: 16px; }
.team-form .input { flex: 1 1 220px; height: 50px; min-height: 50px; border-radius: 10px; }
.team-form .btn { flex: 0 0 auto; }
.admin p + .table-scroll { margin-top: 14px; }
.checks li { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.small-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--peat);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Links page (for Instagram's bio link and QR codes) ---------- */

.links {
  max-width: 460px;
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.links__logo img { display: block; height: 60px; width: auto; }
.links__note { background: var(--peat); color: var(--gorse); font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.links__lead { font-size: 17px; font-weight: 400; line-height: 1.5; color: var(--muted); max-width: 36ch; }
.links__list { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.links__heading { font-size: 26px; margin-top: 10px; }
.links__picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; width: 100%; text-align: left; }
.links__pick { display: flex; flex-direction: column; gap: 4px; text-decoration: none; font-weight: 600; font-size: 15px; }
.links__pick img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); background: var(--tile); margin-bottom: 4px; }
.links__pick span + span { font-weight: 400; color: var(--muted); }
.links__follow { color: var(--muted); font-size: 15px; }

/* ---------- Where an order has got to (thank-you and "your order" pages) ---------- */

.progress {
  border-left: 4px solid var(--moss);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.progress__title { font-size: 20px; }
.progress p { margin: 0; }
.progress--posted { border-left-color: var(--gorse); }
.progress--test, .progress--checking, .progress--cancelled { border-left-color: var(--muted); }
.progress__parcel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 4px; }

/* Mailing list: the small print under the sign-up box, and the basket's "don't send me emails" box. */
.signup__small { font-size: 14px; color: var(--muted); }
.summary__check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 4px 0 12px; cursor: pointer; }
.summary__check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--moss, #3D5236); }

/* Men's / Women's / Kids' fit choice: Kids' (or Men's and Women's on a kids' page) is a link styled like the buttons. */
a.choice { color: inherit; text-decoration: none; }
a.choice:hover > span { border-color: var(--peat); }
.choice__extra { font-size: 0.8em; font-weight: 500; color: var(--muted); }
