/* Bomb Hills brand layer. Shared by every page except the map app, which has
 * its own dense UI in style.css.
 *
 * Direction comes from how longboard and skate brands actually build a page
 * (Loaded Boards, Landyachtz, and the wider skate-media convention): a huge
 * condensed uppercase display face, wide-tracked small caps for labels, near
 * black and white with one hot accent, and imagery doing the emotional work.
 * Our imagery is the terrain itself.
 *
 * Bebas Neue is self-hosted rather than linked from Google Fonts. It is SIL
 * Open Font Licensed so that is permitted, and it keeps the promise in the
 * privacy policy that no third party sees visitors' IP addresses.
 */

@font-face {
  font-family: 'Bebas Neue';
  src: url('/fonts/bebasneue.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e1116;
  --bg-2: #161b22;
  --card: #1b2029;
  --card-hi: #262d38;
  --line: #2a3038;
  --fg: #f2f5f8;
  --dim: #93a0af;
  --accent: #ff7a1a;
  --accent-2: #ffb454;
  --ok: #8fd14f;
  --bad: #ff6b5e;

  --display: 'Bebas Neue', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}

/* ---- type ------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}

h1 { font-size: clamp(44px, 11vw, 96px); }
h2 { font-size: clamp(28px, 5vw, 42px); margin-top: 48px; }
h3 { font-size: clamp(20px, 3vw, 26px); margin-top: 28px; }

/* Wide-tracked small caps. The label voice of the genre. */
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

p { margin: 0 0 16px; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.lede { font-size: 18px; color: var(--dim); }

/* ---- layout ------------------------------------------------------------ */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---- site header ------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding-top: env(safe-area-inset-top);
}

.logo {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.logo b { color: var(--accent); font-weight: 400; }

.site-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  padding: 7px 11px;
  border-radius: 7px;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover { background: var(--card); color: var(--fg); }
.site-nav a[aria-current] { color: var(--fg); background: var(--card); }

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--accent);
  color: #12151a;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #ff8f3d; color: #12151a; }
.btn:disabled { background: #39414d; color: #79828f; cursor: not-allowed; }
.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: var(--card); color: var(--fg); }

/* ---- cards and forms --------------------------------------------------- */

.card {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

label.field { display: block; margin-bottom: 14px; }
label.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
input[type=text], input[type=email], textarea, select {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
textarea { min-height: 140px; resize: vertical; }

.note { font-size: 13px; color: var(--dim); }
.note.bad { color: var(--bad); }
.note.ok { color: var(--ok); }

/* ---- footer ------------------------------------------------------------ */

.site-foot {
  margin-top: 64px;
  padding: 28px 0 calc(env(safe-area-inset-bottom) + 28px);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}
.site-foot .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.site-foot nav { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.site-foot a { color: var(--dim); }
.site-foot a:hover { color: var(--fg); }

/* ---- misc -------------------------------------------------------------- */

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
th, td { padding: 9px 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--card); color: var(--dim); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

code { padding: 1px 5px; background: var(--card-hi); border-radius: 4px; font-size: 13px; }

@media (max-width: 640px) {
  .site-nav a { padding: 6px 8px; font-size: 11.5px; }
  .logo { font-size: 22px; }
}
