/* OneDown — site styles.
   Palette comes from a cricket ground: pitch green, worn-strip pale, ball red. */

:root {
  --paper:      #F7F9F6;
  --paper-warm: #EEF3EE;
  --ink:        #12211A;
  --ink-soft:   #4A5A52;
  --ink-faint:  #77877E;
  --pitch:      #0B7A4B;
  --pitch-deep: #05402A;
  --ball:       #9E2A20;
  --line:       #DCE4DE;

  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .masthead__word, .slotgrid__price {
  font-family: "Barlow Condensed", "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

a { color: var(--pitch); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--pitch-deep); }

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

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

/* ── Masthead ───────────────────────────────────────────────────────────── */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0 1.4rem;
  flex-wrap: wrap;
}

.masthead__word {
  font-size: 1.6rem;
  color: var(--pitch-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.masthead__word:hover { color: var(--pitch); }

.masthead nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.masthead nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.masthead nav a:hover { color: var(--pitch); text-decoration: underline; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 2rem 0 3.5rem; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin: 0 0 1rem;
  max-width: 16ch;
  color: var(--pitch-deep);
}

.hero p {
  margin: 0;
  max-width: var(--measure);
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* The availability strip — the one loud thing on the page, because this grid
   is what the product actually is. */
.slotgrid {
  margin-top: 2.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.5rem;
  max-width: 44rem;
}

.slotgrid__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.slotgrid__name { font-weight: 600; font-size: 1rem; }
.slotgrid__where { color: var(--ink-faint); font-size: 0.86rem; font-weight: 400; }
.slotgrid__price { font-size: 1.5rem; color: var(--pitch-deep); white-space: nowrap; }
.slotgrid__price span { font-size: 0.8rem; color: var(--ink-faint); font-family: "Inter", sans-serif; }

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(3.9rem, 1fr));
  gap: 0.5rem;
  margin: 1.1rem 0 0.9rem;
  padding: 0;
  list-style: none;
}

.slot {
  border-radius: 8px;
  padding: 0.55rem 0.3rem 0.6rem;
  text-align: center;
  font-size: 0.84rem;
  border: 1px solid transparent;
}
.slot b { display: block; font-weight: 600; font-size: 0.9rem; }
.slot small { font-size: 0.68rem; letter-spacing: 0.02em; }

.slot--free  { background: #E7F3EC; color: var(--pitch-deep); border-color: #C6E2D2; }
.slot--taken { background: var(--paper-warm); color: var(--ink-faint); }
.slot--taken small { color: var(--ball); }

.slotgrid__foot {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

/* One orchestrated moment: the slots settle in, once. */
@media (prefers-reduced-motion: no-preference) {
  .slot { animation: settle 420ms cubic-bezier(.2, .7, .3, 1) backwards; }
  .slot:nth-child(1) { animation-delay: 60ms; }
  .slot:nth-child(2) { animation-delay: 110ms; }
  .slot:nth-child(3) { animation-delay: 160ms; }
  .slot:nth-child(4) { animation-delay: 210ms; }
  .slot:nth-child(5) { animation-delay: 260ms; }
  .slot:nth-child(6) { animation-delay: 310ms; }
  .slot:nth-child(7) { animation-delay: 360ms; }
  .slot:nth-child(8) { animation-delay: 410ms; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ── Services ───────────────────────────────────────────────────────────── */
.services { padding: 1rem 0 3rem; }

.service {
  padding: 1.7rem 0 1.9rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  gap: 1.2rem 2.5rem;
  align-items: start;
}

.service h2 {
  margin: 0;
  font-size: 1.55rem;
  color: var(--pitch-deep);
}

.service p { margin: 0; color: var(--ink-soft); font-size: 0.99rem; }

.service__price {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.service__price em {
  display: block;
  font: 400 0.74rem/1.4 "Inter", sans-serif;
  color: var(--ink-faint);
  font-style: normal;
}

/* ── Payments note (what a reviewer is looking for) ─────────────────────── */
.payments {
  border-left: 3px solid var(--pitch);
  padding: 0.3rem 0 0.4rem 1.4rem;
  margin: 1rem 0 3.5rem;
  max-width: var(--measure);
}
.payments h2 { margin: 0 0 0.6rem; font-size: 1.3rem; color: var(--pitch-deep); }
.payments p { margin: 0 0 0.7rem; color: var(--ink-soft); font-size: 0.97rem; }
.payments p:last-child { margin-bottom: 0; }

/* ── Prose pages ────────────────────────────────────────────────────────── */
.prose { padding: 1rem 0 4rem; max-width: var(--measure); }
.prose h1 { font-size: clamp(2.1rem, 5vw, 3rem); color: var(--pitch-deep); margin: 0 0 0.4rem; }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 0.7rem; color: var(--pitch-deep); }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; font-family: "Inter", sans-serif; font-weight: 700; }
.prose p, .prose li { color: var(--ink-soft); }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

.prose blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  background: #FFF6E0;
  border-left: 3px solid #D9A21B;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
}
.prose blockquote p { color: #6B4E06; }
.prose blockquote p:last-child { margin-bottom: 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.93rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.6rem 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th { color: var(--ink); font-weight: 600; }
.prose td { color: var(--ink-soft); }

.prose code {
  background: var(--paper-warm);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  font-size: 0.87em;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.foot__links {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.foot__links a { color: var(--ink-soft); text-decoration: none; }
.foot__links a:hover { color: var(--pitch); text-decoration: underline; }
.foot address { font-style: normal; line-height: 1.7; }

@media (max-width: 40rem) {
  body { font-size: 16px; }
  .service { grid-template-columns: 1fr; gap: 0.5rem; }
  .service__price { margin-top: 0.3rem; }
  .slotgrid { padding: 1rem; }
}
