/* Stack & Daughters: after.
   Galvanised page, Fascia green for the sign band and the main buttons, Ink text, Steel for the quiet
   lines. Kerry gold is paint on the fascia lettering and the "We have" tick, nowhere else.
   Libre Franklin (one variable file) for everything; Zilla Slab 600 for prices and aisle labels. */

@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/redesigns/stack-hardware/fonts/libre-franklin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("/assets/redesigns/stack-hardware/fonts/zilla-slab-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --gal: #edefee;
  --green: #1f4a35;
  --green-deep: #143324;
  --gold: #e2b23a;
  --ink: #141816;
  --steel: #59625d;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --slab: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --gutter: 20px;
  --wrap: 1200px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--gal);
  color: var(--ink);
  font: 400 18px/1.5 var(--sans);
  overflow-x: clip;
}

.fascia, .fascia *, main, main *, .foot, .foot * { box-sizing: border-box; }
.fascia h1, .fascia p, main h2, main h3, main p, main dl, main dd, main ul, main figure, main address { margin: 0; padding: 0; }
.foot p { margin: 0; }

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

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

.wrap {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.only-wide { display: none; }

/* ---------- the fascia ---------- */

.fascia {
  display: flex;
  flex-direction: column;
  background: var(--green);
  color: var(--gal);
  border-bottom: 8px solid var(--green-deep); /* the moulding under the sign */
}
.fascia :focus-visible { outline-color: var(--gal); }

.skip {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
}
.skip:focus { top: 8px; }

.fascia__face {
  order: 1;
  padding: 26px var(--gutter) 22px;
  text-align: center;
}
.sign {
  font: 800 clamp(40px, 12.6vw, 56px)/0.98 var(--sans);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--gold);
  text-wrap: balance;
}
.sub {
  margin-top: 12px;
  font: 600 12.5px/1.35 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gal);
}

/* on a phone the lintel strip under the sign holds today's hours and the call button */
.fascia__bar {
  order: 2;
  background: var(--green-deep);
  padding: 9px 0;
}
.fascia__barin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bar-today { margin: 0; font: 600 16px/1.3 var(--sans); color: var(--gal); }
.bar-today b { font-weight: 800; color: var(--gold); }
.today { display: none; }
.fascia__nav { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 3px;
  font: 800 17px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn--call { background: var(--gal); color: var(--green); min-height: 44px; padding: 0 28px; }
.btn--call:hover { background: #fff; color: var(--green-deep); }
.btn--primary { background: var(--green); color: var(--gal); }
.btn--primary:hover { background: var(--green-deep); color: var(--gal); }
.btn--primary:focus-visible { outline-color: var(--green); }

/* ---------- the footpath ---------- */

.front { background: var(--green-deep); }
.front img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--steel);
}

.today {
  padding-top: 14px;
  padding-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--steel);
}
.today b { font-weight: 800; color: var(--green); }
.today.is-closed b { color: var(--ink); }

/* ---------- the counter ---------- */

.counter { padding-top: 26px; padding-bottom: 30px; }

.have { display: block; }
.have label {
  display: block;
  font-size: clamp(30px, 8.6vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.have__blank {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
}
.have input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 1.5em;
  padding: 0 2px;
  border: 0;
  border-bottom: 4px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font: 800 clamp(30px, 8.6vw, 44px)/1.4 var(--sans);
  letter-spacing: -0.03em;
}
.have input::placeholder { color: var(--steel); font-weight: 400; opacity: 1; letter-spacing: -0.02em; }
.have input:focus { border-bottom-color: var(--green); }
.have input:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 1px; }
.have__q {
  flex: none;
  font-size: clamp(30px, 8.6vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.asks {
  margin-top: 14px;
  color: var(--steel);
  font-size: 16.5px;
  line-height: 1.2;
}
.asks button {
  display: inline-block;
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--green);
  font: 600 16.5px/1 var(--sans);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.asks button:hover { color: var(--ink); }

.reply { margin-top: 10px; min-height: 6rem; }
.say {
  font-size: clamp(22px, 5.8vw, 30px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.015em;
  max-width: 30em;
}
.say b { font-weight: 800; }
.say .mark {
  display: inline-block;
  width: 0.3em;
  height: 0.82em;
  margin-right: 0.28em;
  vertical-align: -0.04em;
  background: var(--gold);
  border-radius: 1px;
}
.say .price, .more .price, .fuel .price, .item__p { font-family: var(--slab); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.say .price { font-size: 1.05em; }
.say a { font-weight: 800; white-space: nowrap; }
.more {
  margin-top: 14px;
  list-style: none;
  max-width: 24em;
}
.more li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 4px 0;
  font-size: 17px;
  line-height: 1.35;
}
.more__w { color: var(--steel); font-size: 15px; display: block; }
.more .price { flex: none; }

.counter__nojs { display: none; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
@media (scripting: none) {
  .counter__live { display: none; }
  .counter__nojs { display: block; }
}

/* ---------- sections ---------- */

main h2 {
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ---------- the shelves ---------- */

.shelves { padding-top: 40px; padding-bottom: 40px; }
.shelves__note { margin-top: 10px; color: var(--steel); font-size: 15.5px; line-height: 1.4; }

.aisle { margin-top: 30px; border-top: 3px solid var(--green); padding-top: 12px; }
/* On a phone the aisles start folded (after.js); the counter is the way in. */
.aisle summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 44px; cursor: pointer; list-style: none; }
.aisle summary::-webkit-details-marker { display: none; }
.aisle__count { font: 600 15px/1 var(--slab); color: var(--steel); }
.aisle__count::after { content: " +"; }
.aisle[open] .aisle__count::after { content: " −"; }
.aisle h3 {
  font: 600 22px/1.2 var(--slab);
  letter-spacing: 0.005em;
  max-width: 14em;
}

.items {
  margin-top: 10px;
  list-style: none;
  column-width: 17.5rem;
  column-gap: 44px;
}
.item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  break-inside: avoid;
  font-size: 17px;
  line-height: 1.3;
}
.item__n { flex: 1 1 auto; min-width: 0; }
.item__o { flex: none; color: var(--steel); font-size: 14px; }
.item__p { flex: none; white-space: nowrap; margin-left: auto; text-align: right; font-size: 17px; }
.item__o + .item__p { margin-left: 0; }

/* ---------- delivery and fuel ---------- */

.delivery { padding-top: 36px; padding-bottom: 48px; border-top: 3px solid var(--ink); display: grid; gap: 30px; margin-top: 24px; }
.delivery__big { margin-top: 14px; font-size: 21px; line-height: 1.4; max-width: 28em; letter-spacing: -0.01em; }
.delivery .btn { margin-top: 22px; min-height: 52px; }
.fuel { display: grid; gap: 16px; align-content: start; }
.fuel dt { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.fuel dd { font-size: 17.5px; line-height: 1.45; max-width: 26em; }
.fuel .price { font-size: 1.05em; }

/* ---------- hours ---------- */

.hours { padding-top: 12px; padding-bottom: 56px; }
.hours h2 { margin-bottom: 20px; }
.hours__cols { display: grid; gap: 30px; }
.week { list-style: none; max-width: 28rem; }
.week li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  margin: 0 -12px;
  border-radius: 2px;
  font-size: 19px;
  line-height: 1.3;
}
.week b { font-weight: 800; font-variant-numeric: tabular-nums; }
.week li.is-today { background: var(--green); color: var(--gal); }
.where { font-style: normal; display: grid; gap: 4px; }
.where p { line-height: 1.5; }
.where a { display: inline-block; padding: 9px 0; font-weight: 600; }
.where__town { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }

/* ---------- footer ---------- */

.foot { background: var(--green); color: var(--gal); padding: 26px 0 30px; font-size: 15.5px; line-height: 1.6; }
.foot a { color: var(--gal); }
.foot a:hover { color: #fff; }
.foot :focus-visible { outline-color: var(--gal); }

/* ---------- wider screens ---------- */

@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .items { column-width: 19rem; }
  .front img { aspect-ratio: 2.4 / 1; object-position: 50% 82%; }
}

@media (min-width: 900px) {
  :root { --gutter: 36px; }

  .only-wide { display: inline; }
  .bar-today { display: none; }
  .today { display: block; }
  .only-narrow { display: none; }

  .fascia { display: block; }
  .fascia__bar { padding: 6px 0; border-bottom: 1px solid rgba(237, 239, 238, 0.14); }
  .fascia__barin { justify-content: space-between; align-items: center; }
  .fascia__nav { display: flex; gap: 28px; }
  .fascia__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--gal);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
  }
  .fascia__nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; color: #fff; }
  .fascia__bar { order: 0; }
  .fascia__face { order: 0; padding: 26px var(--gutter) 24px; }
  .sign { font-size: clamp(64px, 7.7vw, 96px); letter-spacing: 0.06em; line-height: 1; white-space: nowrap; }
  .sub { margin-top: 14px; font-size: 15px; letter-spacing: 0.3em; }
  .btn--call { padding: 0 24px; }

  .front { background: none; padding: 0 var(--gutter); }
  .front img { max-width: var(--wrap); margin: 0 auto; aspect-ratio: 2.7 / 1; }
  .today { padding-top: 12px; padding-bottom: 0; font-size: 19px; }

  .counter { padding-top: 20px; padding-bottom: 28px; }
  .have { display: flex; align-items: baseline; gap: 20px; }
  .have label { font-size: 48px; flex: none; }
  .have__blank { flex: 1 1 auto; margin-top: 0; }
  .have input { font-size: 48px; }
  .have__q { font-size: 48px; }
  .asks { font-size: 17.5px; line-height: 1.2; margin-top: 10px; }
  .asks button { font-size: 17.5px; }
  .reply { margin-top: 12px; min-height: 5rem; }
  .say { font-size: 30px; }
  .more li { font-size: 18px; }

  main h2 { font-size: 44px; }
  .shelves { padding-top: 56px; padding-bottom: 56px; }
  .aisle { display: grid; grid-template-columns: 250px 1fr; column-gap: 44px; margin-top: 34px; padding-top: 18px; }
  .aisle h3 { margin-top: 4px; }
  .aisle summary { grid-column: 1; align-self: start; pointer-events: none; }
  .aisle__count { display: none; }
  .items { grid-column: 2; margin-top: 0; column-width: auto; column-count: 2; column-gap: 40px; }
  .item { font-size: 16.5px; padding: 5px 0; }

  .delivery { grid-template-columns: 1.15fr 1fr; gap: 64px; padding-top: 44px; padding-bottom: 64px; }
  .delivery__big { font-size: 23px; }
  .fuel { gap: 20px; padding-top: 8px; }

  .hours__cols { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
  .week li { font-size: 20px; }
}

@media (min-width: 1100px) {
  .items { column-count: 3; }
}

@media (max-width: 359px) {
  .asks, .asks button { font-size: 15.5px; }
}
