:root {
  --green-dark: #2c3a30;
  --green: #3d5244;
  --cream: #f6f2ea;
  --cream-dark: #ece5d8;
  --stone: #8b8578;
  --ink: #24281f;
  --amber: #b98a4a;
  --white: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.0625rem;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.25rem; color: var(--green-dark); }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--green-dark); }

p + p { margin-top: 1rem; }

.center { text-align: center; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem;
  font-weight: 600; color: var(--amber); margin-bottom: 0.75rem;
}
.section-intro { max-width: 640px; margin: 0 auto 3rem; color: #4b5245; }

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  padding: 1.25rem 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.7); border-radius: 50%;
  font-family: var(--font-display); color: var(--white); font-size: 1rem;
}
.brand-name { font-family: var(--font-display); color: var(--white); font-size: 1.15rem; }
.brand-name em { font-style: italic; color: rgba(255,255,255,0.75); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--white); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  filter: sepia(0.25) contrast(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,38,30,0.55) 0%, rgba(30,38,30,0.35) 45%, rgba(30,38,30,0.75) 100%);
}
.hero-content { position: relative; color: var(--white); padding-top: 4rem; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.85rem;
  color: rgba(255,255,255,0.85); margin-bottom: 1rem;
}
.hero-sub { max-width: 520px; margin-top: 1.25rem; font-size: 1.15rem; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.25rem; flex-wrap: wrap; }
.hero-credit {
  position: absolute; bottom: 0.75rem; right: 1rem;
  font-size: 0.7rem; color: rgba(255,255,255,0.55);
}

/* Buttons */
.btn {
  display: inline-block; padding: 0.85rem 1.9rem; border-radius: 3px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--amber); color: var(--white); }
.btn-primary:hover { background: #a5793d; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.8); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-small { padding: 0.5rem 1.2rem; border: 1.5px solid rgba(255,255,255,0.8); border-radius: 3px; }
.btn-small:hover { background: rgba(255,255,255,0.12); }

.text-link {
  color: var(--amber); text-decoration: none; font-weight: 600;
  display: inline-block; margin-top: 1rem;
}
.text-link:hover { text-decoration: underline; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-tint { background: var(--cream-dark); }
.section-dark { background: var(--green-dark); color: var(--cream); }
.section-dark h2 { color: var(--cream); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-text .btn { margin-top: 1.5rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
  background: var(--white); border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(40,48,38,0.07);
}
.card h3 { padding: 1.25rem 1.5rem 0; }
.card p { padding: 0.25rem 1.5rem 1.5rem; font-size: 0.95rem; color: #4b5245; }

/* Placeholder images */
.placeholder-img {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.25rem;
  background: repeating-linear-gradient(45deg, #dcd4c3, #dcd4c3 12px, #d4ccbb 12px, #d4ccbb 24px);
  color: #6f6a5c; border-radius: 0;
}
.placeholder-img span { font-weight: 600; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }
.placeholder-img small { font-size: 0.8rem; }
.placeholder-img.tall { aspect-ratio: 3 / 4; border-radius: 6px; }
.card-img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block;
}
.story-photo {
  width: 100%; height: auto; display: block; border-radius: 6px;
  box-shadow: 0 4px 24px rgba(40,48,38,0.18);
}

/* Timeline */
.timeline {
  list-style: none; display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem; margin-top: 4rem; padding-top: 2.5rem;
  border-top: 1px solid #d9d1c0;
}
.timeline li { position: relative; padding-top: 1.1rem; }
.timeline li::before {
  content: ""; position: absolute; top: -5px; left: 2px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
}
.timeline-year {
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--green-dark); display: block; margin-bottom: 0.35rem;
}
.timeline p { font-size: 0.85rem; color: #4b5245; line-height: 1.55; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr 1fr; }
}

/* Events */
.events { max-width: 760px; margin: 0 auto; display: grid; gap: 1.5rem; }
.event {
  display: flex; gap: 1.75rem; background: var(--white);
  border-radius: 6px; padding: 1.75rem 2rem;
  box-shadow: 0 2px 16px rgba(40,48,38,0.07); align-items: flex-start;
}
.event-muted { background: transparent; box-shadow: none; border: 1.5px dashed #c9c0ac; }
.event-date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 74px; padding: 0.6rem 0.5rem; background: var(--green-dark);
  color: var(--cream); border-radius: 4px;
}
.event-muted .event-date { background: transparent; color: var(--stone); border: 1px solid #c9c0ac; }
.event-day { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.event-month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.event-body p { font-size: 0.97rem; color: #4b5245; }
.event-weekly {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber);
  white-space: nowrap; margin-left: 0.35rem;
}
.event-body .text-link { margin-top: 0.5rem; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.quote p { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; color: rgba(246,242,234,0.92); }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.85rem; color: var(--amber); }

/* Map */
.map { width: 100%; height: 380px; border: 0; border-radius: 6px; }

.todo-note { font-size: 0.92rem; color: var(--stone); font-style: italic; }

/* Sub-pages with no photo hero */
.page-solid .site-header { position: relative; background: var(--green-dark); }
.page-hero { background: var(--green-dark); color: var(--white); padding: 4rem 0 4.5rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero .hero-sub { max-width: 560px; margin-top: 1rem; font-size: 1.1rem; color: rgba(255,255,255,0.9); }

/* Enquiry form */
.form-container { max-width: 760px; }
fieldset {
  border: none; background: var(--white); border-radius: 6px;
  padding: 2rem 2.25rem 2.25rem; margin-bottom: 2rem;
  box-shadow: 0 2px 16px rgba(40,48,38,0.07);
  min-inline-size: auto;
}
/* float:left pulls the legend out of the fieldset border area (where
   browsers clip it against the card edge) into normal flow */
legend {
  float: left; width: 100%; padding: 0; margin-bottom: 0.5rem;
  font-family: var(--font-display); font-size: 1.35rem; color: var(--green-dark);
  display: flex; align-items: center; gap: 0.75rem;
}
legend + * { clear: both; }
.step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--amber); color: var(--white);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
}
.fieldset-note { font-size: 0.92rem; color: var(--stone); margin: 0.75rem 0 1.25rem; }
.field { margin-top: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label, .group-label {
  display: block; font-weight: 600; font-size: 0.92rem;
  margin-bottom: 0.4rem; color: var(--ink);
}
.req { color: var(--amber); }
.optional { font-weight: 400; color: var(--stone); font-size: 0.85rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], input[type="time"], select, textarea {
  width: 100%; padding: 0.7rem 0.85rem; font: inherit; font-size: 1rem;
  border: 1.5px solid #d5cdbc; border-radius: 4px; background: var(--cream);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(185,138,74,0.18);
}
textarea { resize: vertical; }
.checks { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.check {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 500; font-size: 1rem; cursor: pointer; margin-bottom: 0;
}
.check input { width: 20px; height: 20px; accent-color: var(--amber); cursor: pointer; }
.hidden { display: none; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-actions { text-align: center; margin-top: 0.5rem; }
.btn-large { font-size: 1.05rem; padding: 1rem 2.75rem; border: none; cursor: pointer; font-family: var(--font-body); }
.form-note { font-size: 0.88rem; color: var(--stone); margin-top: 1rem; }
.form-message { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 4px; font-size: 0.95rem; }
.form-message.notice { background: #f3e8d5; border: 1px solid var(--amber); color: #6b5327; }
.form-message.error { background: #f6e3e0; border: 1px solid #c0665a; color: #7c3a31; }
.required-hint { font-size: 0.9rem; color: var(--stone); margin-bottom: 1.25rem; }
.field-error { color: #a63d31; font-size: 0.9rem; font-weight: 600; margin-top: 0.6rem; }
.checks-invalid { padding: 0.75rem; margin-left: -0.75rem; border-radius: 4px; outline: 2px solid #c0665a; }
.next-steps {
  margin-top: 3rem; padding: 2rem 2.25rem; border: 1.5px dashed #c9c0ac;
  border-radius: 6px;
}
.next-steps h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.next-steps ol { padding-left: 1.25rem; display: grid; gap: 0.6rem; }
.next-steps li { font-size: 0.97rem; color: #4b5245; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field + .field { margin-top: 1.25rem; }
  fieldset { padding: 1.5rem 1.25rem; }
  .checks { flex-direction: column; gap: 0.75rem; }
}
.todo-mark { color: var(--amber); cursor: help; }

/* Lottery page */
.launch-banner { background: var(--amber); color: #fff; }
.launch-banner .container { padding-top: 0.9rem; padding-bottom: 0.9rem; font-size: 1rem; }
.launch-banner strong { font-weight: 700; }

.lottery-steps { margin-top: 2rem; }
.lottery-step { padding: 2rem 1.75rem; text-align: center; position: relative; }
.step-badge {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--green-dark); color: var(--cream);
  font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 1rem;
}
.lottery-step h3 { margin-bottom: 0.5rem; }
.lottery-step p { padding: 0; color: #4b5245; }

.lottery-status {
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; text-align: center;
}
.status-item { display: flex; flex-direction: column; }
.status-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--green-dark); line-height: 1.1; }
.status-label { font-size: 0.9rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }

.grid-loading { text-align: center; color: var(--stone); padding: 2rem 0; }

.mode-chooser { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 0 auto 1rem; }
.range-tabs { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem auto; }
.range-tab {
  border: 1.5px solid #d5cdbc; background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 0.55rem 1.4rem; font: inherit; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.range-tab:hover { border-color: var(--amber); }
.range-tab.active { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }

.pick-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.pick-again { margin-top: 0; cursor: pointer; background: none; border: none; font: inherit; }
.number-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px; max-width: 760px; margin: 0 auto;
}
.num {
  aspect-ratio: 1; border: 1.5px solid transparent; border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.num-free { background: #e2eee5; color: #2f5a3d; border-color: #cfe3d5; }
.num-free:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(47,90,61,0.2); }
.num-taken { background: #ece7dd; color: #b3aa98; cursor: not-allowed; }
.num-picked { background: var(--amber) !important; color: #fff !important; border-color: #a5793d !important; }

.grid-legend { display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: 0.9rem; color: #4b5245; }
.grid-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.gl-swatch { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.gl-free { background: #e2eee5; border: 1.5px solid #cfe3d5; }
.gl-taken { background: #ece7dd; }
.gl-picked { background: var(--amber); }

.pick-bar {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  flex-wrap: wrap; margin: 2.5rem auto 0; max-width: 640px;
  background: var(--white); border: 1.5px solid #d9d1c0; border-radius: 10px; padding: 1.25rem 1.75rem;
}
.pick-info { font-size: 1.1rem; }
.pick-info strong { color: var(--green-dark); }

.past-winners { max-width: 640px; margin: 2rem auto 0; }
.winner-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid #e4ddcd;
}
.winner-num { font-family: var(--font-display); font-size: 1.2rem; color: var(--green-dark); min-width: 90px; }
.winner-name { flex: 1; }
.winner-month { color: var(--stone); font-size: 0.9rem; }

@media (max-width: 600px) {
  .lottery-status { gap: 1.75rem; }
  .status-num { font-size: 2rem; }
  .number-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
}

/* Legal pages */
.legal-content { max-width: 780px; }
.legal-content h2 {
  font-size: 1.5rem; margin-top: 2.75rem; margin-bottom: 0.75rem;
  scroll-margin-top: 1.5rem;
}
.legal-content h3 {
  font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem;
  font-family: var(--font-body); font-weight: 600;
}
.legal-content ul { padding-left: 1.35rem; margin: 0.75rem 0; }
.legal-content li { margin-bottom: 0.5rem; font-size: 0.97rem; color: #3c4237; }
.legal-content p { font-size: 0.97rem; color: #3c4237; }
.legal-content a { color: var(--amber); }
.legal-updated { font-size: 0.85rem; color: var(--stone); margin-bottom: 1.5rem; }
.warn {
  background: #f6efdd; border-left: 4px solid var(--amber); border-radius: 4px;
  padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.95rem; color: #5d4a26;
}
.toc {
  background: var(--white); border-radius: 6px; padding: 1.5rem 1.75rem;
  margin: 2rem 0; box-shadow: 0 2px 16px rgba(40,48,38,0.07);
}
.toc ol { padding-left: 1.35rem; columns: 2; column-gap: 2.5rem; }
.toc li { margin-bottom: 0.4rem; font-size: 0.93rem; }
.toc a { color: var(--green); text-decoration: none; }
.toc a:hover { color: var(--amber); }
.contacts-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.contacts-table th, .contacts-table td {
  text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid #ddd5c4;
}
.contacts-table th { font-weight: 600; color: var(--green-dark); }
.footer-address { margin-top: 0.5rem; font-size: 0.88rem; color: rgba(246,242,234,0.65); }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Footer */
.site-footer { background: #1f2921; color: rgba(246,242,234,0.8); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand { font-size: 1.3rem; color: var(--cream); margin-bottom: 0.75rem; }
.footer-brand em { color: rgba(246,242,234,0.6); }
.footer-text { font-size: 0.92rem; }
.footer-heading {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 600; color: var(--amber); margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(246,242,234,0.8); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(246,242,234,0.15);
  padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: 0.8rem;
  color: rgba(246,242,234,0.55);
}

/* Responsive */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px; z-index: 20;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--white); }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--green-dark);
    padding: 1.5rem; gap: 1.25rem; text-align: center;
  }
  .nav-links.open { display: flex; }
}
