/* Maple Byways landing page (issue #4). System fonts only, no external
   resources, light and dark from the visitor's own setting. */

:root {
  color-scheme: light dark;
  --bg: #fffbf5;
  --surface: #ffffff;
  --surface-2: #f6eee3;
  --text: #1d1b16;
  --muted: #5f5446;
  --accent: #8a3b12;
  --accent-text: #ffffff;
  --border: #e3d7c6;
  --notice-bg: #fff1c9;
  --notice-text: #4a3a00;
  --notice-border: #e7c766;
  --focus: #1f5fbf;
  --road: #2f6b4f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1916;
    --surface: #24211d;
    --surface-2: #2c2823;
    --text: #f3ece2;
    --muted: #c4b8a6;
    --accent: #f0a776;
    --accent-text: #1b1916;
    --border: #3d3730;
    --notice-bg: #3a3214;
    --notice-text: #f6e7b0;
    --notice-border: #6b5a1f;
    --focus: #8cb8ff;
    --road: #7fc4a0;
  }
}

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: -10000px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  z-index: 10;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.header-link {
  font-weight: 600;
}

/* Notices */

.notice {
  background: var(--notice-bg);
  color: var(--notice-text);
  border: 1px solid var(--notice-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.notice strong {
  font-weight: 700;
}

.notice-bar {
  margin: 1rem 0 0;
}

/* Hero */

.hero {
  padding: 2.5rem 0 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 0.5rem;
  border: 0;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}

.button:hover {
  filter: brightness(1.08);
}

/* Sections */

section {
  padding: 2rem 0;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: step;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.1rem 1.2rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--road);
  color: var(--bg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.steps p,
.card p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tag {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px dashed var(--muted);
  color: var(--muted);
}

.facts {
  font-size: 0.95rem;
  color: var(--text) !important;
  font-weight: 600;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Signup */

.signup {
  background: var(--surface-2);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  margin: 1rem 0 2rem;
}

.signup form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  min-height: 44px;
  border-radius: 0.5rem;
  border: 1px solid var(--muted);
  background: var(--surface);
  color: var(--text);
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.consent input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.15rem 0 0;
  flex: none;
  accent-color: var(--accent);
}

.consent label {
  font-weight: 600;
}

.fine {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* The honeypot field: off-screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Legal pages */

.legal {
  max-width: 46rem;
  padding-bottom: 2rem;
}

.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 1.5rem 0 0.5rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.5rem 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.legal .meta {
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
