/* Tour Tales — colours match apps/tour-tales/src/constants/theme.ts */
:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --text: #1C2421;
  --muted: #5F6B66;
  --border: #DCD8CE;
  --primary: #1F6F4A;
  --on-primary: #FFFFFF;
  --primary-soft: #E3F0E8;
  --tag: #F2C14E;
  --tag-text: #2A2108;

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714;
    --surface: #1C2420;
    --text: #EEF2EF;
    --muted: #A3B0AA;
    --border: #33403A;
    --primary: #5CC08E;
    --on-primary: #0B1F15;
    --primary-soft: #1E3A2C;
    --tag: #E7B84A;
    --tag-text: #221A05;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(960px, 100% - 2rem); margin-inline: auto; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; flex: none; border-radius: 8px; }

/* Hero */
.hero { padding-block: clamp(1.5rem, 6vw, 4.5rem) clamp(2rem, 6vw, 4rem); }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.3rem, 9vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 1rem; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lede { font-size: clamp(1.1rem, 3.6vw, 1.3rem); color: var(--muted); max-width: 40ch; margin: 0 0 1.75rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.tags li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.3rem 0.85rem; font-weight: 700; font-size: 0.95rem;
}
.tags li:first-child { background: var(--tag); color: var(--tag-text); border-color: transparent; }

/* Store buttons (placeholders until the apps are live) */
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 170px; padding: 0.6rem 1.1rem; border-radius: 12px;
  background: var(--text); color: var(--bg); text-decoration: none; line-height: 1.2;
}
.store small { font-size: 0.75rem; opacity: 0.8; }
.store strong { font-family: var(--display); font-size: 1.15rem; }
.store[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.stores-note { color: var(--muted); font-size: 0.95rem; margin: 0.75rem 0 0; }

/* Sections */
.section { padding-block: clamp(2rem, 6vw, 3.5rem); border-top: 1px solid var(--border); }
.section h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: -0.02em; margin: 0 0 1.25rem;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 4.25rem; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.15rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-family: var(--display); font-weight: 800;
}
.steps h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

.for-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0; margin: 0 0 1.25rem; list-style: none; font-weight: 700; }
.for-list li::before { content: "✓ "; color: var(--primary); }
.private { background: var(--primary-soft); border-radius: var(--radius); padding: 1.25rem; margin: 0; }

/* Join page */
.join { padding-block: clamp(1.5rem, 6vw, 4rem) 3rem; max-width: 560px; }
.join h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 7vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 0.5rem; line-height: 1.1; }
.join .lede { color: var(--muted); margin: 0 0 1.5rem; }
.code-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.25rem; text-align: center; margin-bottom: 1.25rem;
}
.code-card .label { margin: 0 0 0.25rem; color: var(--muted); font-size: 0.95rem; }
.code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700;
  font-size: clamp(2.2rem, 11vw, 3.4rem); letter-spacing: 0.08em; margin: 0;
  color: var(--primary); word-break: break-all;
}
.copy {
  margin-top: 0.75rem; font: inherit; font-size: 0.95rem; background: none; border: 1px solid var(--border);
  color: var(--text); border-radius: 999px; padding: 0.35rem 1rem; cursor: pointer;
}
.btn-primary {
  display: block; text-align: center; background: var(--primary); color: var(--on-primary);
  font-weight: 700; font-size: 1.15rem; text-decoration: none;
  padding: 1rem; border-radius: 14px; margin-bottom: 1.75rem;
}
.join ol { padding-left: 1.25rem; margin: 0 0 1.5rem; }
.join ol li { margin-bottom: 0.5rem; }
.join h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
[hidden] { display: none !important; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding-block: 1.5rem 2.5rem;
  color: var(--muted); font-size: 0.95rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
