/* ============================================================
   Summit Guardian — presentation site (splash + project docs)
   Ported from the Highline Adventures design-system mockups.
   Tokens/type: Brand ID 2020 v1 via colors_and_type.css (subset).
   ============================================================ */

/* ---- Fonts (weights actually used: 300/400/500/700) ---- */
@font-face { font-family: 'Neue Haas Grotesk Display Pro'; font-weight: 300; font-style: normal; font-display: swap;
  src: url('../fonts/Linotype_-_NHaasGroteskDSPro-45Lt.otf') format('opentype'); }
@font-face { font-family: 'Neue Haas Grotesk Display Pro'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/Linotype_-_NHaasGroteskDSPro-55Rg.otf') format('opentype'); }
@font-face { font-family: 'Neue Haas Grotesk Display Pro'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('../fonts/Linotype_-_NHaasGroteskDSPro-65Md.otf') format('opentype'); }
@font-face { font-family: 'Neue Haas Grotesk Display Pro'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/Linotype_-_NHaasGroteskDSPro-75Bd.otf') format('opentype'); }

/* ---- Brand tokens ---- */
:root {
  --hl-hills:        #315C4D;
  --hl-hills-deep:   #244538;
  --hl-hills-tint:   #4F7869;
  --hl-skies:        #86AABA;
  --hl-skies-deep:   #5E8295;
  --hl-skies-tint:   #B2C9D3;
  --hl-blooms:       #F48020;
  --hl-blooms-deep:  #D86A0F;
  --hl-blooms-tint:  #F9A968;
  --hl-golden:       #D2AB4E;
  --hl-golden-tint:  #E5C97E;
  --hl-mute:         #FEEDD5;
  --hl-light:        #F4F4F0;
  --hl-medium:       #595A5F;
  --hl-dark:         #181819;

  --border:          rgba(24,24,25,0.12);
  --border-strong:   rgba(24,24,25,0.32);
  --border-on-dark:  rgba(244,244,240,0.22);

  --font-body: 'Neue Haas Grotesk Display Pro', system-ui, sans-serif;

  --shadow-2: 0 4px 12px rgba(24,24,25,0.10), 0 2px 4px rgba(24,24,25,0.06);
  --shadow-3: 0 12px 32px rgba(24,24,25,0.16), 0 4px 8px rgba(24,24,25,0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Splash accent (mock default: Blooms orange) */
  --sg-accent: #F48020;
  --sg-accent-deep: #D86A0F;
  --sg-accent-ink: #F4F4F0;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { margin: 0; padding: 0; color: var(--hl-dark); background: var(--hl-light); scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--hl-dark);
  -webkit-font-smoothing: antialiased;
}
h1 { font: 700 76px/0.98 var(--font-body); letter-spacing: 0.04em; margin: 0 0 16px; text-wrap: balance; }
h2 { font: 700 54px/1.02 var(--font-body); letter-spacing: 0.04em; margin: 0 0 16px; text-wrap: balance; }
h3 { font: 700 38px/1.08 var(--font-body); letter-spacing: 0.04em; margin: 0 0 12px; text-wrap: balance; }
h4 { font: 700 28px/1.12 var(--font-body); letter-spacing: 0.02em; margin: 0 0 12px; }
h5 { font: 700 22px/1.2  var(--font-body); letter-spacing: 0.04em; margin: 0 0 8px; text-transform: uppercase; }
h6 { font: 700 18px/1.25 var(--font-body); letter-spacing: 0.08em; margin: 0 0 8px; text-transform: uppercase; }
p  { margin: 0 0 16px; text-wrap: pretty; }
a  { color: var(--hl-hills); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--hl-blooms); }
img { max-width: 100%; }

/* ---- Layout helpers ---- */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.topo-overlay { position: absolute; inset: 0; background-image: url('../images/topo.svg'); background-size: 640px; opacity: 0.14; pointer-events: none; }

/* ---- Hover behaviors (mock style-hover equivalents) ---- */
.hv-card { transition: all 240ms var(--ease-out); }
.hv-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.hv-cta { transition: all 150ms; }
.hv-cta:hover { background: var(--sg-accent-deep) !important; transform: translateY(-1px); }
.hv-ghost { transition: all 150ms; }
.hv-ghost:hover { background: #F4F4F0 !important; color: #315C4D !important; }
.hv-nav:hover { color: var(--hl-blooms) !important; }
.hv-peach:hover { color: var(--hl-blooms-tint) !important; }
.hv-green { transition: all 150ms; }
.hv-green:hover { background: var(--hl-hills-deep) !important; }

/* ---- Cross-document nav band (site addition; not in the mock) ---- */
.doc-band { background: var(--hl-hills-deep); color: var(--hl-light); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; }
.doc-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.doc-band a { color: var(--hl-light); text-decoration: none; white-space: nowrap; }
.doc-band a:hover { color: var(--hl-blooms-tint); }
.doc-band .doc-band-docs { display: flex; gap: 18px; flex-wrap: wrap; }
.doc-band a[aria-current="page"] { color: var(--hl-golden); }

/* ---- Document sheet shell (Migration Plan / Site Audit) ---- */
.desk { background: #ece8dd; padding: 48px 24px; min-height: 100vh; }
.sheet {
  width: 8.5in; max-width: 100%; margin: 0 auto;
  background: #fff; border-radius: 2px; padding: 0.75in;
  box-shadow: 0 1px 3px rgba(24,24,25,0.2), 0 12px 32px rgba(24,24,25,0.16);
}
.sheet-header, .sheet-footer {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.sheet-header { color: var(--hl-hills); border-bottom: 2px solid var(--hl-hills); padding-bottom: 10px; margin-bottom: 36px; }
.sheet-footer { color: var(--hl-medium); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 48px; }
.sheet h1 { font-size: 40px; line-height: 1.05; }
.sheet h2 { font-size: 22px; line-height: 1.15; margin: 40px 0 14px; letter-spacing: 0.02em; }
.sheet p, .sheet li { font-size: 13.5px; line-height: 1.6; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.5; margin: 14px 0 6px; }
.sheet th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hl-medium); border-bottom: 2px solid var(--hl-dark); padding: 6px 10px 6px 0; vertical-align: bottom; }
.sheet td { border-bottom: 1px solid var(--border); padding: 8px 10px 8px 0; vertical-align: top; }
.sheet .lede { font-size: 16px; font-weight: 300; line-height: 1.5; color: var(--hl-medium); }
.sheet .tag { display: inline-block; border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hl-hills); white-space: nowrap; }
.sheet .num { color: var(--hl-blooms); font-weight: 700; }

@media print {
  @page { size: 8.5in 11in; margin: 0.6in; }
  .doc-band { display: none; }
  .desk { background: #fff; padding: 0; }
  .sheet { width: auto; box-shadow: none; border-radius: 0; padding: 0; }
  h1, h2, h3, h4, h5, h6 { break-after: avoid; }
  table, tr, figure, blockquote, img, svg { break-inside: avoid; }
  p, li { orphans: 3; widows: 3; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- Prototype animations ---- */
@keyframes hlFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hlDrawerIn { from { transform: translateX(48px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes hlScrimIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- Responsive (site addition — the mock is a fixed desktop export) ---- */
@media (max-width: 960px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 52px; }
  h2 { font-size: 40px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .desk { padding: 16px 8px; }
  .sheet { padding: 28px 20px; }
  .sheet table { display: block; overflow-x: auto; }
}
