/* Companion website: same identity as the app (brief §18). Mobile-first. Brand colours are
   CSS variables set by brand.js (?brand=northlight-canada | aurora-canada | northern-light). */

@font-face { font-family: 'Playfair Display'; font-weight: 600; font-display: swap; src: url(assets/fonts/PlayfairDisplay_600SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-display: swap; src: url(assets/fonts/PlayfairDisplay_700Bold.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(assets/fonts/Inter_400Regular.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(assets/fonts/Inter_500Medium.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(assets/fonts/Inter_600SemiBold.woff2) format('woff2'); }

:root {
  --bg-top: #2B1E17;
  --bg: #37271F;
  --bg-bottom: #4B301F;
  --text: #F4E8D7;
  --text-dim: #DCCAB0;
  --text-faint: #AE9578;
  --line: rgba(244, 232, 215, 0.16);
  --accent: #E56A2B;
  --surface: #F4E8D7;
  --surface-text: #2E2019;
  --surface-dim: #6B5543;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(var(--bg-top), var(--bg) 40%, var(--bg-bottom));
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.top {
  position: absolute; z-index: 2; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) + 18px) var(--gutter) 0;
}
.wordmark { display: flex; flex-direction: column; align-items: center; text-align: center; color: #F6EDDF; text-decoration: none; font: 600 15px/18px var(--serif); letter-spacing: 2.6px; }
.wordmark span { display: block; margin-right: -2.6px; /* letter-spacing adds space after the last letter */ }
.wordmark .leaf { display: block; width: 18px; height: 18px; margin-bottom: 4px; fill: var(--accent); }
.lang select {
  appearance: none; background: rgba(5, 10, 14, 0.35); color: #F6EDDF;
  border: 1px solid rgba(246, 237, 223, 0.3); border-radius: 16px;
  padding: 6px 32px; font: 500 13px var(--sans);
  text-align: center; text-align-last: center; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6EDDF' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.6 2.6 3.9 5.8 3.9 9.5s-1.3 6.9-3.9 9.5c-2.6-2.6-3.9-5.8-3.9-9.5S9.4 5.1 12 2.5z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F6EDDF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat; background-position: left 11px center, right 12px center; background-size: 14px 14px, 10px 7px;
  field-sizing: content; min-width: 128px;
}
.lang select:hover, .lang select:focus-visible { border-color: rgba(246, 237, 223, 0.65); }
.lang select option { color: #111; }
.data-note { max-width: 640px; margin: 0 auto; padding: 8px var(--gutter) 40px; text-align: center; }

/* Hero: supplied artwork, fading into the page */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(rgba(5, 10, 14, 0.5), rgba(5, 10, 14, 0) 22%),
    linear-gradient(to bottom, transparent 30%, color-mix(in srgb, var(--bg-top) 75%, transparent) 62%, var(--bg-top) 92%);
}
.hero-copy { position: relative; z-index: 1; padding: 0 var(--gutter) 56px; max-width: 640px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font: 600 11px/14px var(--sans); letter-spacing: 2.2px; text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
}
.eyebrow span { flex: 0 0 24px; height: 1.5px; background: var(--accent); }
h1 { font-family: var(--serif); font-size: clamp(36px, 10vw, 60px); line-height: 1.08; margin: 16px 0 14px; }
.hero h1 { margin: 0 0 10px; }
.tagline { font: 600 clamp(18px, 4.6vw, 22px)/1.3 var(--serif); color: var(--text); margin-bottom: 14px; }
button.email {
  background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.lede { font-size: 17px; color: var(--text-dim); }
.status {
  display: inline-block; margin-top: 26px; padding: 10px 22px;
  border: 1.5px solid var(--accent); border-radius: 24px;
  font: 600 15px var(--sans); color: var(--text);
}
.fine { margin-top: 12px; font-size: 13px; color: var(--text-faint); }
.center { text-align: center; }

section { padding: 0 var(--gutter); }
section + section { margin-top: 72px; }

/* Answer + real app preview */
.answer { max-width: 960px; margin: 24px auto 0; display: grid; gap: 40px; }
h2 { font-family: var(--serif); font-size: 30px; line-height: 1.2; }
.answer-text p { margin-top: 12px; color: var(--text-dim); }
.factors { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.factors li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.factors strong { color: var(--text); font-weight: 600; }
.phone { margin: 0; justify-self: center; max-width: 300px; }
.phone-frame { border-radius: 44px; padding: 10px; background: #0D0907; box-shadow: 0 0 0 1px rgba(244, 232, 215, 0.12); }
.phone-frame img { border-radius: 34px; }
.phone figcaption { margin-top: 14px; font-size: 13px; color: var(--text-faint); text-align: center; }

/* Benefits: plain rows, not feature cards */
.benefits { max-width: 640px; margin-left: auto; margin-right: auto; }
.benefits ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.benefits li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.benefits strong { color: var(--text); font-weight: 600; }

/* Destinations */
.places { max-width: 960px; margin-left: auto; margin-right: auto; }
.dest { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dest li { background: var(--surface); color: var(--surface-text); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 10px; }
.dest img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.dest div { padding: 0 6px 6px; }
.dest h3 { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.dest p { font-size: 13px; color: var(--surface-dim); }

footer {
  max-width: 640px; margin: 80px auto 0; padding: 24px var(--gutter) calc(env(safe-area-inset-bottom) + 32px);
  border-top: 1px solid var(--line); font-size: 13px; color: var(--text-faint); display: grid; gap: 8px; text-align: center;
}

@media (min-width: 760px) {
  :root { --gutter: 40px; }
  .hero { min-height: 88vh; }
  .answer { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .dest { grid-template-columns: repeat(4, 1fr); }
}

/* Inner pages (generated by scripts/build-website.ts) */
.top.solid { position: static; padding-bottom: 8px; }
.dest li a { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.dest li a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.dest-page { padding-top: 12px; }
.dest-head { max-width: 760px; margin: 0 auto; display: grid; gap: 20px; }
.dest-art { width: 132px; height: 132px; object-fit: cover; border-radius: 14px; }
.dest-head h1 { font-size: clamp(32px, 8.5vw, 50px); margin: 10px 0 12px; }
.dest-head .status { margin-top: 18px; }
.eyebrow.left { justify-content: flex-start; }
.prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose h2 { margin-top: 28px; font-size: 26px; }
.prose p { margin-top: 10px; color: var(--text-dim); }
@media (min-width: 760px) {
  .dest-head { grid-template-columns: 180px 1fr; align-items: center; }
  .dest-art { width: 180px; height: 180px; }
}

/* Made in Canada line */
.made { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font: 600 12px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.leaf-sm { width: 14px; height: 14px; fill: var(--accent); flex: none; }
footer .made { margin: 0 0 4px; }

/* Long slogan eyebrow: wrap on narrow screens instead of widening the page. */
.hero .eyebrow { white-space: normal; text-align: center; line-height: 1.5; }
.hero-copy { width: 100%; }
@media (max-width: 520px) { .hero .eyebrow span { display: none; } .hero .eyebrow { letter-spacing: 1.8px; } }

/* Traditional Chinese: break only at marked points (<wbr>) so words like 北極光 stay whole. */
[lang|="zh"] h1 { word-break: keep-all; text-wrap: balance; }

/* Links on the dark page: accent ink, readable underline (default blue was too dark). */
main a:not(.dest a), footer a { color: var(--accent); text-underline-offset: 3px; }

/* Press kit */
.facts { width: 100%; margin-top: 12px; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(246, 237, 223, 0.12); }
.facts th { width: 28%; color: var(--text); font-weight: 600; }
.facts td { color: var(--text-dim); }
.facts a, .press-grid a { color: var(--accent); }
.button { display: inline-block; margin-top: 6px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 600; }
.press-grid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.press-grid a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; font-size: 13px; }
.press-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: rgba(246, 237, 223, 0.06); border-radius: 10px; }
