/* ===== Site styles (the Doherty Highlanders theme) =====
   BRAND: start here. Colors and fonts in :root follow the Doherty brand
   guide, and the whole site follows them. The fonts are loaded in each
   page's <head>.
   - Headings: Zilla Slab, a bold, easy-to-read slab with a varsity feel
   - Everything else: Atkinson Hyperlegible, made by the Braille Institute
     so letters are easy to tell apart, even for readers with low vision

   ACCESSIBILITY (WCAG 2.2): if you change a color, keep text contrast at
   7:1 or more (AAA) and borders/icons at 3:1. Check pairs at
   https://webaim.org/resources/contrastchecker/ */
:root {
  --maroon: #76232F;
  --maroon-dark: #561821;
  --maroon-tint: #EFD3D6;
  --gold: #C99700;
  --gold-light: #F1D27A;
  --gold-tint: #F6E6B4;
  --cream: #FBF6EC;
  --paper: #FFFFFF;
  --ink: #1A1112;
  --muted: #4A3E40;          /* 9:1 on cream */
  --success: #17552C;        /* 8.6:1 on white */
  --on-gold: #000000;        /* text on gold: 7.7:1 (the ink color is just under 7:1) */
  --rule: rgba(26, 17, 18, 0.2);
  --gutter: clamp(16px, 5vw, 64px);
  --display: 'Zilla Slab', Rockwell, Georgia, serif;
  --sans: 'Atkinson Hyperlegible', Verdana, system-ui, sans-serif;
  /* Sticker look: a thick outline and a hard shadow */
  --outline: 3px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
  /* Highlanders tartan, used for stripes and backgrounds */
  --tartan:
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 255, 255, .18) 12px 14px, transparent 14px 58px, rgba(201, 151, 0, .9) 58px 62px, transparent 62px 120px),
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(255, 255, 255, .18) 12px 14px, transparent 14px 58px, rgba(201, 151, 0, .9) 58px 62px, transparent 62px 120px),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(0, 0, 0, .28) 40px 80px, transparent 80px 120px),
    repeating-linear-gradient(0deg, transparent 0 40px, rgba(0, 0, 0, .28) 40px 80px, transparent 80px 120px),
    var(--maroon);
  /* Tap targets: 44px meets WCAG 2.5.5 (AAA) */
  --target: 44px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 18px/1.6 var(--sans);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
strong { font-weight: 700; }

/* Focus ring: white inside, black outside, so it shows on every background
   (WCAG 2.4.7, and 2.4.13 Focus Appearance at AAA) */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--paper);
}
main:focus { outline: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hidden until a keyboard user tabs to it (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 12px 20px;
  border: var(--outline);
  border-radius: 10px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
}
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--maroon); }
em { font-style: normal; color: var(--gold); }

.kicker {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
}

.status { margin: 0; color: var(--muted); font-style: italic; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--target);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.text-link:hover { color: var(--maroon); text-decoration-color: var(--maroon); }

/* ===== "Under construction" banner =====
   Only shows while UNDER_CONSTRUCTION=true (see utils/seo.js) */
.construction-banner {
  border-block: 10px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--on-gold) 0 14px, var(--gold) 14px 28px) 10;
  background: var(--gold-tint);
  color: var(--on-gold);
}
.construction-banner p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px var(--gutter);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}
.construction-icon::before { content: '🚧'; margin-right: 8px; }

/* ===== Ticker (the scrolling banner at the top) ===== */
.ticker {
  display: flex;
  align-items: stretch;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticker-window { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker-track {
  display: inline-flex;
  padding: 13px 0;
  animation: ticker 36s linear infinite;
}
.ticker-track span { padding: 0 22px; }
.ticker-track span::after { content: '★'; margin-left: 44px; color: var(--gold); }

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--target);
  padding: 0 16px;
  border: 0;
  border-left: 2px solid rgba(241, 210, 122, 0.4);
  background: var(--ink);
  color: var(--paper);
  font: 700 13px var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.motion-toggle:hover { background: #33292A; }
.motion-toggle:focus-visible { outline-color: var(--gold-light); box-shadow: none; outline-offset: -5px; }
/* Pause icon (two bars), or a play triangle once paused */
.motion-icon {
  width: 12px;
  height: 14px;
  border-inline: 4px solid var(--gold-light);
}
.motion-toggle[aria-pressed="true"] .motion-icon {
  width: 0;
  height: 0;
  border-block: 7px solid transparent;
  border-inline: 12px solid var(--gold-light);
  border-right-width: 0;
}

/* ===== Masthead ===== */
.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 32px;
  padding: 14px var(--gutter);
  background: var(--paper);
  border-bottom: var(--outline);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--target);
  text-decoration: none;
  font: 700 2rem/1 var(--display);
  color: var(--maroon);
}
.wordmark img { width: 40px; height: auto; }
.wordmark small {
  display: block;
  margin-top: 4px;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
#site-menu { display: flex; justify-content: center; gap: 6px; }
#site-menu a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
#site-menu a:hover { background: var(--maroon); color: var(--paper); }
.masthead-note {
  margin: 0;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--gold-tint);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.open-dot {
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 6px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #2f8a4c;
}

/* The three-bar button: turns into an X when the links are open */
.menu-toggle {
  display: none;
  justify-self: end;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: var(--outline);
  border-radius: 12px;
  background: var(--gold);
  color: var(--on-gold);
  cursor: pointer;
}
.bars { position: relative; display: block; width: 24px; height: 18px; }
.bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.bars span:nth-child(1) { top: 0; }
.bars span:nth-child(2) { top: 7.5px; }
.bars span:nth-child(3) { top: 15px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 7.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 7.5px; transform: rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: var(--outline);
  border-radius: 999px;
  font: 700 17px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--paper); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: var(--paper); color: var(--maroon); }
.btn-maroon { background: var(--maroon); color: var(--paper); }
.btn-maroon:hover { background: var(--maroon-dark); }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  /* Full-width color, but the content lines up with the 1200px sections */
  padding: clamp(40px, 7vw, 96px) max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
  background:
    /* A gold glow behind the drawing only, never behind the text */
    radial-gradient(circle at 78% 50%, rgba(201, 151, 0, .25), transparent 40%),
    var(--maroon);
  color: var(--paper);
}
.hero .kicker { color: var(--paper); }
.hero h1 { font-size: clamp(3rem, 7.5vw, 5.8rem); line-height: 1; margin-bottom: 24px; }
.hero h1 em { display: block; color: var(--gold-light); }
.hero .lede { max-width: 36ch; margin: 0 0 32px; font-size: 1.25rem; color: var(--paper); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; }
.hero-art > img { animation: bob 5s ease-in-out infinite; }
.badge {
  position: absolute;
  top: -2%;
  right: 2%;
  width: clamp(110px, 14vw, 160px);
  font: 700 15px var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: turn 24s linear infinite;
}
.badge circle { fill: var(--gold); stroke: var(--ink); stroke-width: 4; }
.badge text { fill: var(--on-gold); }

.tartan-strip { height: 22px; background: var(--tartan); border-block: var(--outline); }

/* ===== Shared section layout ===== */
.promises, .shop, .blog-preview, .story, .faq, .visit, .connect, .page-head, .blog-page > .post-grid, .blog-page > .chips {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section-head { margin-bottom: 28px; }
.section-head.split {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.section-note { margin: 12px 0 0; max-width: 56ch; color: var(--muted); font-size: 1.1rem; }

/* ===== Promises (under the hero) ===== */
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 0;
  list-style: none;
}
.promises li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: var(--outline);
  border-radius: 14px;
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.35;
}
.promises strong { color: var(--maroon); }
.check {
  flex: none;
  position: relative;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
}
.check::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 5px;
  width: 8px;
  height: 14px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* ===== Filter chips (shop and blog) ===== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--target);
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 700 15px var(--sans);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.chip:hover { background: var(--gold-tint); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--maroon); color: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
/* A check mark on the chosen chip, so it isn't shown by color alone */
.chip[aria-pressed="true"]::before { content: '✓'; }

/* ===== Shop ===== */
.shop { padding-block: clamp(48px, 7vw, 96px); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 28px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: var(--outline);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--pop);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card[hidden] { display: none; }
.product-card:hover { transform: translate(-3px, -3px) rotate(-0.6deg); box-shadow: 9px 9px 0 var(--ink); }
.product-card:nth-child(even):hover { transform: translate(-3px, -3px) rotate(0.6deg); }
/* The photo comes first on screen, after the name for screen readers */
.product-thumb {
  order: -1;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: var(--outline);
  border-radius: 15px 15px 0 0;
  background: var(--cream);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--tartan);
}
.thumb-placeholder img { width: 30%; height: auto; padding: 10px; border-radius: 50%; background: var(--cream); }
.product-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px 18px 18px; }
.product-section {
  order: -1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card h3 { font-size: 1.4rem; line-height: 1.15; color: var(--ink); }
.product-desc { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.product-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 10px;
}
.price-tag {
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font: 700 1.15rem/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.product-sizes { font-size: 15px; color: var(--muted); }

/* The "NEW!" sticker on new items */
.new-sticker {
  position: absolute;
  top: -14px;
  right: -12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: var(--outline);
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font: 700 17px/1 var(--display);
  transform: rotate(14deg);
  box-shadow: 3px 3px 0 var(--ink);
  animation: wiggle 3.5s ease-in-out infinite;
}

/* Sold out: grey photo with a ribbon across it */
.is-sold-out .product-thumb img { filter: grayscale(1) opacity(.55); }
.is-sold-out .price-tag { background: var(--cream); text-decoration: line-through; }
.sold-out-ribbon {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  padding: 8px 0;
  border-block: var(--outline);
  background: var(--maroon);
  color: var(--paper);
  font: 700 18px/1.2 var(--display);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(-50%) rotate(-12deg);
}

/* ===== Post cards ===== */
.blog-preview { padding-block: clamp(48px, 7vw, 96px); border-top: var(--outline); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 32px;
}
.post-card[hidden] { display: none; }
.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: var(--outline);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--pop);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card a:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.post-card a:focus-visible { box-shadow: 0 0 0 3px var(--paper); }
.post-frame {
  display: block;
  order: -1;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: var(--outline);
  background: var(--gold-tint);
}
.post-frame img, .post-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.post-placeholder {
  display: grid;
  place-items: center;
  background: var(--tartan);
  color: var(--paper);
  font: 700 2rem var(--display);
  text-shadow: 2px 2px 0 var(--ink);
}
.post-card a:hover img, .post-card a:hover .post-placeholder { transform: scale(1.04); }
.post-text { display: flex; flex-direction: column; padding: 18px 22px 24px; }
.post-text .post-meta { order: -1; }
.post-card .post-title { margin: 10px 0 10px; font-size: 1.5rem; line-height: 1.15; color: var(--ink); }
.post-card a:hover .post-title { color: var(--maroon); text-decoration: underline; }
.post-excerpt { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.post-category {
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--maroon-tint);
  color: var(--maroon-dark);
}

/* Home page: the newest post gets the big spot, two more sit under it */
#latest-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#latest-posts .post-card:first-child { grid-column: 1 / -1; }
#latest-posts .post-card:first-child a { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; }
#latest-posts .post-card:first-child .post-frame { height: 100%; border-bottom: 0; border-right: var(--outline); }
#latest-posts .post-card:first-child .post-text { padding: 32px clamp(24px, 4vw, 48px); }
#latest-posts .post-card:first-child .post-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--maroon); }
#latest-posts .post-card:first-child .post-excerpt { font-size: 1.05rem; }

/* ===== Story ===== */
.story {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
  border-top: var(--outline);
}
.story-mark {
  display: grid;
  place-items: center;
  width: clamp(200px, 26vw, 300px);
  aspect-ratio: 1;
  border: var(--outline);
  border-radius: 50%;
  background: var(--tartan);
  box-shadow: var(--pop);
}
.story-mark img {
  width: 46%;
  padding: 7%;
  border: var(--outline);
  border-radius: 50%;
  background: var(--cream);
  box-sizing: content-box;
}
.story h2 { max-width: 18ch; margin-bottom: 20px; }
.story p { max-width: 60ch; color: var(--muted); font-size: 1.1rem; }
.story strong { color: var(--ink); }
.story blockquote {
  display: inline-block;
  margin: 18px 0 0;
  padding: 10px 20px;
  border: var(--outline);
  border-radius: 12px;
  background: var(--gold);
  color: var(--on-gold);
  font: 700 1.5rem/1.2 var(--display);
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ===== FAQ ===== */
.faq { padding-block: clamp(48px, 7vw, 96px); border-top: var(--outline); }
.faq h2 { margin-bottom: 28px; }
.faq-list { display: grid; gap: 14px; max-width: 860px; }
.faq details {
  border: var(--outline);
  border-radius: 14px;
  background: var(--paper);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 20px;
  font: 700 1.2rem/1.3 var(--display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* A plus that turns into a minus */
.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font: 700 22px/1 var(--sans);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 20px 18px; max-width: 70ch; color: var(--muted); }

/* ===== Visit ===== */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
  border-top: var(--outline);
}
.visit h2 { margin-bottom: 20px; }
.visit address { font-style: normal; font-size: 1.2rem; line-height: 1.7; }
.visit-note {
  display: inline-block;
  margin: 16px 0 0;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--maroon-tint);
  font-size: 15px;
  font-weight: 700;
}
.hours {
  width: 100%;
  border: var(--outline);
  border-radius: 18px;
  border-spacing: 0;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--pop);
  font-size: 1.05rem;
}
.hours th, .hours td { padding: 14px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 700; text-align: left; }
.hours td { text-align: right; }

/* ===== Newsletter + contact ===== */
.connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  padding-block: 0 clamp(64px, 9vw, 110px);
}
.card {
  padding: clamp(24px, 4vw, 44px);
  border: var(--outline);
  border-radius: 18px;
  box-shadow: var(--pop);
}
.card h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 10px; }
.card > p { margin: 0 0 18px; color: var(--muted); }
.signup { align-self: start; background: var(--gold-tint); }
.signup img { width: 56px; margin-bottom: 12px; }
.contact-form { background: var(--paper); }

label { display: block; margin: 16px 0 6px; font-size: 16px; font-weight: 700; }
.hint { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%;
  min-height: var(--target);
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--maroon); border-width: 3px; background: #FFF4F5; }
textarea { resize: vertical; }
.contact-form .btn { margin-top: 20px; }
.inline-field { display: flex; gap: 10px; }
.inline-field input { flex: 1; min-width: 0; }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-size: 16px; }
.form-status.is-ok { color: var(--success); font-weight: 700; }
.form-status.is-error { color: var(--maroon); font-weight: 700; }
.form-status.is-error::before { content: '⚠ '; }
.form-status.is-ok::before { content: '✓ '; }
.btn:disabled { opacity: 0.75; cursor: wait; transform: none; }

/* The honeypot field: off screen, so only bots ever fill it in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Footer ===== */
.footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 40px;
  padding: 36px var(--gutter);
  border-top: 22px solid transparent;
  border-image: var(--tartan) 1;
  background: var(--ink);
  color: #E8E1E1;
  font-size: 16px;
}
.footer > p { grid-column: 1 / -1; margin: 0; max-width: 80ch; }
.footer-mark { display: flex; align-items: center; gap: 12px; }
.footer-mark p { margin: 0; font: 700 2rem/1 var(--display); color: var(--gold-light); }
.footer-mark small {
  display: block;
  margin-top: 4px;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8E1E1;
}
.footer a { color: var(--gold-light); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 10px;
  font-weight: 700;
}
.footer :focus-visible { outline-color: var(--gold-light); box-shadow: none; }

/* ===== Blog page ===== */
.page-head { padding-block: clamp(48px, 7vw, 88px) 28px; }
.page-head h1 { font-size: clamp(3rem, 8vw, 5.4rem); color: var(--maroon); }
.page-head em { color: var(--maroon); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 6px; text-underline-offset: 8px; }
.page-head .lede { max-width: 56ch; margin: 18px 0 0; font-size: 1.2rem; color: var(--muted); }
.blog-page > .post-grid { padding-bottom: clamp(64px, 9vw, 120px); }

/* ===== Single post page ===== */
.post-page { max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.post header { margin-bottom: 32px; text-align: center; }
.post .post-meta { justify-content: center; margin: 0 0 18px; }
.post h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--maroon); }
.post-hero {
  margin: 0 0 40px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: var(--outline);
  border-radius: 18px;
  box-shadow: var(--pop);
}
.post-hero img, .post-hero .post-placeholder { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 66ch; margin: 0 auto; font-size: 1.2rem; line-height: 1.75; }
.post-body p:first-child::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font: 700 4.6rem/0.8 var(--display);
  color: var(--maroon);
}
.back-link { max-width: 66ch; margin: 40px auto 0; }

/* ===== Animations ===== */
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(14deg); } 85% { transform: rotate(4deg); } 90% { transform: rotate(22deg); } 95% { transform: rotate(10deg); } }

/* "Pause animations" button (site.js adds this class) */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-toggle { display: none; }
}

/* ===== Tablets and phones ===== */
@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr auto; }
  .masthead-note { display: none; }
  .menu-toggle { display: grid; }
  #site-menu {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0;
  }
  #site-menu:not(.is-open) { display: none; }
  #site-menu a { min-height: 52px; padding: 0 4px; border-top: 1px solid var(--rule); border-radius: 0; font-size: 1.1rem; }
  .hero, .visit, .connect { grid-template-columns: minmax(0, 1fr); }
  .story { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .hero-art { max-width: 440px; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  #latest-posts .post-card:first-child a { grid-template-columns: minmax(0, 1fr); }
  #latest-posts .post-card:first-child .post-frame { height: auto; border-right: 0; border-bottom: var(--outline); }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; margin-left: -10px; }
}

@media (max-width: 640px) {
  #latest-posts { grid-template-columns: minmax(0, 1fr); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 18px; }
  .product-body { padding: 12px 12px 14px; }
  .product-card h3 { font-size: 1.15rem; }
  .product-desc { font-size: 15px; }
  .new-sticker { width: 56px; height: 56px; font-size: 14px; top: -10px; right: -8px; }
  .product-card { box-shadow: 4px 4px 0 var(--ink); }
  .hours th, .hours td { display: block; padding: 4px 18px; text-align: left; border: 0; }
  .hours th { padding-top: 14px; }
  .hours td { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
  .motion-toggle { font-size: 0; gap: 0; padding: 0 15px; }
}

@media (max-width: 480px) {
  .wordmark { font-size: 1.7rem; }
  .wordmark img { width: 32px; }
  .inline-field { flex-direction: column; }
}

/* ===== 404 page ===== */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--gutter);
  text-align: center;
}
.not-found img { width: 88px; margin-bottom: 16px; }
.not-found h1 { margin-bottom: 12px; font-size: clamp(2.6rem, 7vw, 4.4rem); color: var(--maroon); }
.not-found em { color: var(--maroon); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 5px; text-underline-offset: 6px; }
.not-found p:not(.kicker) { margin: 0 0 28px; color: var(--muted); }
