/* Stoke website. Colours and type follow the app's design system
   (code/stoke-client/src/design-system/tokens) and the Claude Design
   website export (design/website-safety). */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --orca: #2B2A27;
  --deep-cove: #2F4F4C;
  --chalk: #FAF6EC;
  --golden: #E39A3B;
  --white: #FFFFFF;
  --gutter: clamp(16px, 3.4vw, 48px);
  /* Side padding for every full-width band, so the header, hero and footer
     share one left edge: the gutter, or the margin of a 1200px column. */
  --inline: max(var(--gutter), calc((100% - 1200px) / 2));
  --header: 74px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--chalk);
  color: var(--orca);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
}

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--golden); outline-offset: 3px; border-radius: 4px; }

.site-header {
  height: var(--header);
  display: flex;
  align-items: center;
  padding: 0 var(--inline);
  background: var(--chalk);
}
.logo { display: block; line-height: 0; }
.logo img { height: 36px; width: auto; }

.hero {
  position: relative;
  flex: 1;
  min-height: clamp(520px, 72svh, 860px);
  display: flex;
  align-items: flex-end;
  padding: 0 var(--inline);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  z-index: -3;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 30, 28, 0.78) 0%, rgba(20, 30, 28, 0.45) 45%, rgba(20, 30, 28, 0.2) 100%);
  z-index: -2;
}

.hero-content {
  width: 100%;
  padding: 120px 0 clamp(48px, 6vw, 88px);
  color: var(--white);
}
.pill {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--chalk);
  color: var(--deep-cove);
  font-size: 15px;
  font-weight: 600;
}
h1 {
  margin: 0;
  max-width: 14ch;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: clamp(19px, 1.8vw, 23px);
  text-wrap: pretty;
}
.contact { margin: 18px 0 0; font-size: 17px; }
.contact a { font-weight: 600; }

/* On a phone the words would cover the hikers, so the photo sits on top
   and the words below it on Deep Cove. */
@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0;
    background: var(--deep-cove);
  }
  .hero-photo {
    position: relative;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 92% 50%;
    z-index: 0;
  }
  .hero-shade { display: none; }
  .hero-content { padding: 32px var(--inline) 56px; }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px var(--inline);
  font-size: 15px;
}
.site-footer p { margin: 0; }

.notfound {
  flex: 1;
  padding: clamp(64px, 10vw, 128px) var(--inline);
}
.notfound h1 { color: var(--orca); max-width: 18ch; font-size: clamp(36px, 4.6vw, 60px); }
.notfound p { margin: 18px 0 0; font-size: 19px; max-width: 48ch; }
.notfound a { font-weight: 600; color: var(--deep-cove); }
