/* Graphite Workbench tokens, from the approved direction (design/direction-contract.md).
   This site builds its own tokens and shares no code with the Hadrel app. */
@font-face {
  font-family: "Barlow";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Barlow-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Barlow-SemiBold.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ground: #121418;
  --pane: #171a1e;
  --raised: #1c1f24;
  --seam: #2a2e35;
  --control: #23272d;
  --seam-strong: #343941;
  --edge: #646b75;
  --text: #e7e9ec;
  --muted: #a9afb8;
  --faint: #8a919b;
  --accent: #e34300;
  --accent-deep: #bb2e00;
  --accent-hover: #c93400;
  --accent-text: #f2703a;
  --amber: #f2b705;
  --on-amber: #1b1600;
  --jwc: #e0566a;
  --jwc-text: #ffd9de;
  --ibf: #3fa7c9;
  --ibf-text: #9dd6ea;
  --night: #5b6d94;
  --gutter: clamp(16px, 4vw, 56px);
  --bar: 56px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--ground);
  color: var(--text);
  font: 400 15px/24px "Barlow", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--seam-strong) var(--ground);
  scroll-padding-top: calc(var(--bar) + 16px);
}

body {
  background: var(--ground);
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn.sm {
  height: 32px;
  padding: 0 14px;
  font-size: 14px;
}

/* Headline and sentence (the first screen is the stage, stage.css) */
h1 {
  max-width: 16ch;
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.lede {
  max-width: 44ch;
  margin: 20px 0 28px;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
}

/* Sections */
.block {
  padding: 96px var(--gutter) 24px;
  border-top: 1px solid var(--seam);
}

h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

.note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 16px;
  color: var(--faint);
}

/* Example voyage */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.demo {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--amber);
  color: var(--on-amber);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--gutter) 48px;
  border-top: 1px solid var(--seam);
  font-size: 13px;
  color: var(--faint);
}

@media (max-width: 700px) {
  h1 {
    font-size: 30px;
  }

  .lede {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 700px) {
  .block {
    padding-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
