/* ==========================================================================
   Friday Edits — design tokens & shared styles
   ========================================================================== */

:root {
  --color-orange: #C3612C;
  --color-orange-dark: #A24E22;
  --color-green: #2B3D2D;
  --color-green-light: #3A4F3C;
  --color-black: #000000;
  --color-cream: #F4EFE4;
  --color-cream-panel: #EAE3D2;
  --color-cream-line: #D8CEB8;
  --color-white: #FFFFFF;

  --font-heading: 'Graduate', serif;
  --font-body: 'Jost', sans-serif;
  --font-serif: 'PT Serif', serif;

  --content-max: 1120px;
  --radius-pill: 999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.wordmark {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--color-orange);
  font-size: 1.75rem;
  letter-spacing: 0.02em;
}

.wordmark--light {
  color: var(--color-cream);
}

/* ---------- Announcement bar ---------- */

.announcement {
  background: var(--color-orange);
  color: var(--color-white);
  text-align: center;
  font-size: 0.9rem;
  padding: 0.75rem 3rem 0.75rem 1rem;
  position: relative;
}

.announcement--green {
  background: var(--color-green);
}

.announcement__close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem;
}

.announcement[hidden] {
  display: none;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-cream-line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
  padding-bottom: 0.3rem;
  transition: color 0.15s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-orange);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--color-orange);
}

.site-header__meta {
  font-size: 1rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--color-cream-line);
}

.currency-toggle {
  display: inline-flex;
  border: 1px solid var(--color-orange);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.currency-toggle button {
  background: none;
  border: none;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--color-orange);
  line-height: 1.4;
}

.currency-toggle button[aria-pressed="true"] {
  background: var(--color-orange);
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-black);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 1.25rem;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  text-align: center;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.btn-outline--light {
  border-color: var(--color-cream);
  color: var(--color-cream);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.btn-block {
  display: block;
  width: 100%;
}

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

.section {
  padding: 5rem 2.5rem;
}

.section--tight {
  padding: 3rem 2.5rem;
}

.section--cream {
  background: var(--color-cream);
}

.section--green {
  background: var(--color-green);
  color: var(--color-cream);
}

.section--orange {
  background: var(--color-orange);
  color: var(--color-white);
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 760px;
}

/* Wavy divider between sections */
.wave-divider {
  display: block;
  width: 100%;
  height: 24px;
  margin-top: -1px;
}

.wave-divider--to-green path {
  fill: var(--color-green);
}

.wave-divider--to-cream path {
  fill: var(--color-cream);
}

.wave-divider--to-orange path {
  fill: var(--color-orange);
}

/* ---------- Headings ---------- */

h1, h2, h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.15;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.eyebrow--orange {
  color: var(--color-orange);
  font-family: var(--font-heading);
  text-transform: uppercase;
}

mark {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 0.05em 0.3em;
  border-radius: 3px;
}

.section--green mark,
.section--orange mark {
  background: var(--color-cream);
  color: var(--color-green);
}

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

.site-footer {
  background: var(--color-green);
  color: var(--color-cream);
  padding: 4rem 2.5rem 3rem;
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-footer p {
  margin-top: 0.75rem;
  opacity: 0.9;
}

.site-footer a {
  color: var(--color-orange);
  text-decoration: underline;
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 3rem 2.5rem;
  margin-top: 3rem;
}

.product-tile {
  display: block;
}

.product-tile__image {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-black);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  position: relative;
  transition: transform 0.15s ease;
}

.product-tile:hover .product-tile__image {
  transform: translateY(-3px);
}

.product-tile__label {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-tile__name {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.9rem;
  line-height: 1.05;
}

.product-tile__rule {
  width: 1.5rem;
  height: 3px;
  margin-top: 0.5rem;
}

.product-tile__title {
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.product-tile__price {
  margin-top: 0.35rem;
  color: var(--color-black);
  opacity: 0.75;
}

/* Fill/outline/dark tile variants */
.product-tile__image--fill-orange {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-white);
}

.product-tile__image--outline-orange {
  background: var(--color-cream);
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.product-tile__image--outline-green {
  background: var(--color-cream);
  border-color: var(--color-green);
  color: var(--color-green);
}

.product-tile__image--fill-green {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-cream);
}

.product-tile__image--dark {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-cream-line);
}

.product-tile--disabled {
  pointer-events: none;
}

.product-tile--disabled .product-tile__image {
  opacity: 0.55;
}

.product-tile--featured {
  grid-column: span 2;
}

.product-tile--featured .product-tile__image {
  aspect-ratio: auto;
  min-height: 320px;
}

.product-tile--featured .product-tile__name {
  font-size: 2.75rem;
}

@media (max-width: 640px) {
  .product-tile--featured {
    grid-column: span 1;
  }
  .product-tile--featured .product-tile__image {
    min-height: 240px;
  }
}

.coming-soon-label {
  margin-top: 1.25rem;
  color: var(--color-black);
  opacity: 0.5;
  font-size: 1.1rem;
}

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

.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-detail__image {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-black);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  position: relative;
}

.product-detail__price {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.75rem;
  margin-top: 1rem;
}

.product-detail__vat {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.1rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.product-detail__copy p {
  margin-top: 1.1rem;
  max-width: 60ch;
}

.product-detail__note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
  background: var(--color-cream-panel);
  border-left: 3px solid var(--color-orange);
  max-width: 60ch;
}

.field-label {
  display: block;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.select {
  width: 100%;
  max-width: 360px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-black);
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.purchase-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--color-black);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
}

.qty-stepper button {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-black);
}

.qty-stepper__value {
  min-width: 1.25rem;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-top: 2.5rem;
}

.faq-item {
  text-align: center;
}

.faq-item h3 {
  margin-bottom: 0.6rem;
}

.faq-item p {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item a {
  color: var(--color-orange);
  text-decoration: underline;
}

/* ---------- Samples ---------- */

.sample-player {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-cream-panel);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.sample-player__btn {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-cream);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.sample-player__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.sample-player__scrub {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sample-player__range {
  flex: 1;
  accent-color: var(--color-orange);
}

.sample-player__time {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
  flex: none;
}

.samples-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1.05rem;
}

.samples-note a {
  color: var(--color-orange);
  text-decoration: underline;
}

/* ---------- Countdown ---------- */

.countdown-block {
  margin-top: 2.5rem;
}

.countdown-block__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.75rem;
}

.countdown-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .countdown-row {
    grid-template-columns: 1fr;
  }
}

.countdown-card {
  background: var(--color-cream-panel);
  padding: 1.5rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* .countdown-card sets display:flex as an author rule, which otherwise beats
   the browser's default [hidden]{display:none} — without this, toggling
   .hidden in JS stops actually hiding the element and both the "closed"
   banner and the "submit by" card render at once instead of one replacing
   the other. */
.countdown-card[hidden] {
  display: none;
}

.countdown-card--closed {
  background: var(--color-green);
  color: var(--color-cream);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.countdown-card__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.countdown-card__date {
  font-size: 1.1rem;
  margin: 0.5rem 0 1rem;
}

.countdown-card--closed .countdown-card__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 1.1;
}

.countdown-card--closed .countdown-card__sub {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}

.countdown-timer {
  display: flex;
  gap: 1.25rem;
}

.countdown-timer__unit {
  text-align: center;
}

.countdown-timer__value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-orange);
}

.countdown-card--closed .countdown-timer__value {
  color: var(--color-cream);
}

.countdown-timer__unit-label {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 0.15rem;
}

/* ---------- Contact form ---------- */

.form-field {
  margin-top: 1.75rem;
  max-width: 560px;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-black);
  background: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-field input {
  border-radius: var(--radius-pill);
}

.form-field textarea {
  border-radius: 1.25rem;
  min-height: 140px;
  resize: vertical;
}

.form-required {
  font-weight: 400;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* ---------- Hero (homepage) ---------- */

.hero-kicker {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.02;
  text-align: center;
}

.hero-kicker span {
  display: block;
}

.hero-kicker .is-green {
  color: var(--color-green);
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
}

.hero-kicker .is-orange {
  color: var(--color-orange);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  margin-top: 0.08em;
}

.hero-copy {
  margin-top: 3.5rem;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-copy p {
  font-size: 1.15rem;
}

.hero-copy p + p {
  margin-top: 0.75rem;
}

.hero-footnote {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.cta-stack {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-stack .btn {
  min-width: 280px;
  text-align: center;
}

.qa-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.qa-block + .qa-block {
  margin-top: 2.75rem;
}

.qa-block h2 {
  color: var(--color-orange);
  font-size: 1.6rem;
}

.qa-block p {
  margin-top: 0.75rem;
  font-size: 1.1rem;
}

/* ---------- Locale (UK/.co.uk vs US/.com) ---------- */
/* html[data-locale] is set synchronously in <head> before paint — see
   assets/js/locale-detect.js — so there's no flash of the wrong currency. */

html[data-locale="uk"] [data-locale-us] { display: none !important; }
html[data-locale="us"] [data-locale-uk] { display: none !important; }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Responsive header/nav ---------- */

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: 1.1rem 1.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header__meta {
    border-left: none;
    padding-left: 0;
    margin-top: 0.5rem;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .wordmark { font-size: 1.4rem; }
}
