/* Peak & Lantern — peakandlantern.ca
   Colours from the approved mark: red #C8102E, amber #C9953A, charcoal #3E3E40.
   Fonts are self-hosted (SIL Open Font License). No analytics, no third-party requests. */

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --red: #C8102E;
  --red-dark: #9B0E24;
  --amber: #C9953A;
  --amber-soft: #F3E6C8;
  --charcoal: #3E3E40;
  --ink: #2C2C2E;
  --muted: #5A5A5E;
  --cream: #F6F1E8;
  --paper: #FFFCF7;
  --line: #E6DFD2;
  --navy: #1A2744;
  --shadow: 0 10px 30px rgba(44, 44, 46, 0.08);
  --radius: 18px;
  --max: 68rem;
  --text: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(var(--text), calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--charcoal);
}
.brand img.emblem { width: 52px; height: 52px; }
.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.brand-name span { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; color: var(--muted); }

nav ul {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
nav a:hover, nav a[aria-current="page"] { color: var(--red-dark); text-decoration: underline; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(201, 149, 58, 0.18), transparent 40%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin: 0 0 0.6rem;
}
.hero h1 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--navy);
}
.tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.35;
}
.hero p { margin: 0 0 1rem; max-width: 38rem; }
.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art img {
  width: min(100%, 340px);
  border-radius: 24px;
  background: #F6F0E4;
  box-shadow: var(--shadow);
}

.hero h1.logo-heading { margin: 0 0 0.35rem; font-size: 0; line-height: 0; }
.logo-lockup {
  width: min(100%, 420px);
  margin: 0;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  line-height: 1.2;
}
.btn:hover { background: var(--red-dark); }
.btn-ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff !important; }

.soon {
  margin-top: 1.5rem;
  display: inline-block;
  background: var(--amber-soft);
  color: var(--ink);
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #e2c98a;
}

/* Sections */
section { padding: 3rem 0; }
section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
  color: var(--navy);
  line-height: 1.2;
}
.lede { font-size: 1.15rem; color: var(--charcoal); max-width: 40rem; margin: 0 0 1.75rem; }

.features { background: var(--paper); border-block: 1px solid var(--line); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
}
.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.card p { margin: 0; color: var(--charcoal); font-size: 1.05rem; }

.privacy-callout {
  background: var(--navy);
  color: #F4EEE2;
}
.privacy-callout h2 { color: #fff; }
.privacy-callout p { color: #E8E2D4; }
.privacy-callout a { color: #F3E6C8; }
.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.privacy-points div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(243, 230, 200, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.privacy-points h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #fff;
}
.privacy-points p { margin: 0; font-size: 1rem; }

.about, .contact { }
.contact-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-box a.email {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--red-dark);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #E8E2D4;
  padding: 2rem 0 2.4rem;
  margin-top: 0;
}
.site-footer a { color: #F3E6C8; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-brand img { width: 240px; height: auto; background: transparent; }
.legal { margin: 0.6rem 0 0; font-size: 0.95rem; color: #C9C3B6; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Privacy article */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0 1.6rem;
}
.page-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.4rem;
  color: var(--navy);
  line-height: 1.15;
}
.meta { color: var(--muted); margin: 0; }
article.policy { padding: 2.2rem 0 3rem; }
article.policy h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  margin: 2rem 0 0.6rem;
  color: var(--navy);
}
article.policy h3 {
  font-size: 1.1rem;
  margin: 1.2rem 0 0.4rem;
  color: var(--charcoal);
}
article.policy p, article.policy li { color: var(--charcoal); }
article.policy ul { padding-left: 1.2rem; }
article.policy li { margin: 0.3rem 0; }
.draft-note {
  margin-top: 2.5rem;
  padding: 1rem 1.1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* 404 */
.err {
  min-height: 55vh;
  display: grid;
  align-content: center;
  padding: 3rem 0;
  text-align: center;
}
.err h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  margin: 0 0 0.6rem;
}

/* Hero character teaser */
.hero-cast {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 1rem;
}
.hero-cast:hover { color: var(--red-dark); }
.hero-cast-pics {
  display: flex;
  align-items: flex-end;
}
.hero-cast-pics img {
  width: 52px;
  height: 74px;
  object-fit: contain;
  margin-left: -12px;
  filter: drop-shadow(0 2px 4px rgba(44, 44, 46, 0.12));
}
.hero-cast-pics img:first-child { margin-left: 0; }

/* Meet the characters */
.characters {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 149, 58, 0.16), transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(200, 16, 46, 0.06), transparent 40%),
    var(--cream);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8.5rem;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.character {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.15rem 1.3rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.character-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
  margin-bottom: 0.85rem;
}
.character-art img {
  width: auto;
  height: 200px;
  object-fit: contain;
  margin-inline: auto;
}
.character h3 {
  margin: 0 0 0.4rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  color: var(--navy);
}
.character p {
  margin: 0 auto;
  max-width: 20rem;
  color: var(--charcoal);
  font-size: 1.05rem;
}

.characters-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.section-mark {
  width: auto;
  height: 2.4rem;
  flex-shrink: 0;
}
.characters::after {
  content: "";
  position: absolute;
  right: max(1.25rem, calc((100% - var(--max)) / 2 + 0.75rem));
  bottom: 1.1rem;
  width: 100px;
  height: 110px;
  background: url("images/cottage.png") no-repeat right bottom / contain;
  opacity: 0.7;
  pointer-events: none;
}

/* 404 accent */
.err-art {
  width: 160px;
  height: auto;
  margin: 0 auto 1rem;
}
.err-note {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 800px) {
  .hero-grid, .feature-grid, .privacy-points, .character-grid { grid-template-columns: 1fr; }
  .hero { padding: 1.8rem 0 2.2rem; }
  .hero-art { order: -1; }
  .hero-art img { width: min(100%, 260px); }
  body { font-size: 1.05rem; }
  .site-header .wrap { padding: 0.7rem 0; }
  .brand img.emblem { width: 44px; height: 44px; }
  nav ul { gap: 0.8rem; }
  .character-art { min-height: 170px; }
  .character-art img { height: 170px; }
  .hero-cast-pics img { width: 44px; height: 62px; }
  .err-art { width: 130px; }
  .characters { padding-bottom: 6.75rem; }
  .characters::after { width: 72px; height: 80px; bottom: 0.9rem; opacity: 0.65; }
  .section-mark { height: 2rem; }
}
