/* ════════════════════════════════════════════════════════════
   LandGate Quest — shared styles
   Linked by every page. Contains only styles that are reused
   across multiple pages. Page-specific styles live in a <style>
   block within each HTML file.
════════════════════════════════════════════════════════════ */


/* ── Reset ──────────────────────────────────────────────────
   Removes default browser margin/padding and makes padding
   behave intuitively (included in width, not added on top) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }


/* ── CSS variables ──────────────────────────────────────────
   Colour palette and fluid type scale defined once here.
   Reference anywhere with var(--name).
   Change a value here and it updates on every page. */
:root {
  /* Brand colours */
  --brown:      #231408;
  --rust:       #9E3E14;
  --green:      #4B6E37;
  --slate:      #465F7D;
  --gold:       #C39B32;

  /* Surface colours */
  --cream:      #f5ede0;
  --cream-dk:   #e0cfb8;
  --parchment:  #fdf6ec;
  --brown-mid:  #2e1c0e;
  --brown-lt:   #3a2010;

  /* Text colours */
  --text-dk:    #2e1a0a;
  --text-mid:   #5a3820;
  --text-lt:    #8a6a4a;
  --text-faint: #b89a6e;

  /* Fluid type scale — clamp(min, preferred, max)
     Font size scales smoothly with viewport width (vw)
     rather than jumping at breakpoints */
  --text-xs:   clamp(10px, 1.1vw, 11px);
  --text-sm:   clamp(12px, 1.3vw, 14px);
  --text-base: clamp(15px, 1.5vw, 17px);
  --text-md:   clamp(16px, 1.8vw, 19px);
  --text-xl:   clamp(26px, 3.5vw, 38px);
  --text-2xl:  clamp(32px, 5vw, 56px);
}


/* ── Base body ──────────────────────────────────────────────*/
body {
  background: #100804;
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--cream);
  min-height: 100vh;
}


/* ── Layout wrapper ─────────────────────────────────────────
   Constrains page content to 1200px and centres it.
   Used on every page as the direct child of <body>.
   margin-top creates the gap between the sticky header and the
   first content section — clamp scales it with the viewport. */
.layout {
  max-width: 1200px;
  margin: clamp(16px, 2.5vw, 32px) auto 0;
}


/* ── Sticky header ──────────────────────────────────────────
   Warm charcoal-grey background gives strong contrast for both
   the logo image and all header text. */
.site-header {
  background: #4a4035;
  border-bottom: 2px solid var(--rust);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  height: clamp(60px, 7vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── Logo + name group ──────────────────────────────────────
   Logo image and brand name sit side by side on the left. */
.logo {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: clamp(32px, 4vw, 48px);
  width: auto;
  display: block;
}

/* Brand name shown next to the logo image */
.logo-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 500;
  color: #f0e6d3; /* bright warm cream — clearly legible on grey */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

/* Thin divider between logo image and name */
.logo-divider {
  width: 1px;
  height: clamp(20px, 2.5vw, 30px);
  background: rgba(240, 230, 211, 0.25);
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.progress-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-inline-label {
  font-family: 'Cinzel', serif;
  font-size: clamp(10px, 1.1vw, 12px);
  color: #f0e6d3; /* bright warm cream — legible on grey */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.progress-dots { display: flex; gap: 6px; }

/* Each dot represents one scan stop */
.dot {
  width: clamp(20px, 3vw, 36px);
  height: 5px;
  border-radius: 3px;
  transition: background 0.3s;
}
.dot-done   { background: var(--rust); }
.dot-active { background: var(--gold); }
.dot-empty  { background: rgba(240, 230, 211, 0.2); }

/* Header nav link — used on homepage instead of progress dots */
.header-nav-link {
  font-family: 'Cinzel', serif;
  font-size: clamp(11px, 1.2vw, 13px);
  color: #f0e6d3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid rgba(240, 230, 211, 0.3);
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.header-nav-link:hover {
  background: rgba(240, 230, 211, 0.1);
  border-color: rgba(240, 230, 211, 0.5);
}

.header-icon {
  width: clamp(32px, 3.5vw, 40px);
  height: clamp(32px, 3.5vw, 40px);
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-icon svg {
  width: clamp(14px, 1.5vw, 18px);
  height: clamp(14px, 1.5vw, 18px);
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
}


/* ── Section label ──────────────────────────────────────────
   Small uppercase label used above content sections.
   Appears on both location pages and the paywall. */
.section-label {
  font-family: 'Cinzel', serif;
  font-size: var(--text-xs);
  color: var(--rust);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: clamp(8px, 1vw, 14px);
}


/* ── Footer ─────────────────────────────────────────────────*/
footer {
  background: #100804;
  border-top: 1px solid var(--brown-lt);
  padding: clamp(12px, 1.5vw, 18px) clamp(20px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--brown-lt);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text-lt); }

.footer-copy {
  font-size: var(--text-sm);
  color: #3a2010;
}


/* ════════════════════════════════════════════════════════════
   SHARED RESPONSIVE BREAKPOINTS
   Only rules that affect shared components (header, footer)
   belong here. Page layout breakpoints stay in each HTML file.
════════════════════════════════════════════════════════════ */

/* Mobile (< 640px) — hide "Your journey" label and logo tagline, too cramped */
@media (max-width: 639px) {
  .progress-inline-label { display: none; }
  .logo-name    { display: none; }
  .logo-divider { display: none; }
}

/* Tablet (640px–1023px) — body has padding so pull header back out */
@media (min-width: 640px) and (max-width: 1023px) {
  footer { padding: 14px 36px; }
  /* Pull header flush with viewport edges to counteract body padding.
     margin: 0 -Npx expands the element by N pixels on each side.
     width: calc(100% + 2*N) restores the full width after the margin shift. */
  .site-header {
    margin-left: calc(-1 * clamp(16px, 3vw, 32px));
    width: calc(100% + 2 * clamp(16px, 3vw, 32px));
  }
}

/* Desktop (≥ 1024px) — footer padding matches page padding */
@media (min-width: 1024px) {
  footer { padding: 16px 56px; }
  /* Same full-width fix at desktop body padding values */
  .site-header {
    margin-left: calc(-1 * clamp(24px, 5vw, 64px));
    width: calc(100% + 2 * clamp(24px, 5vw, 64px));
  }
}

/* Very small (< 380px) — shrink progress dots */
@media (max-width: 379px) {
  .dot { width: 16px; }
}
