/* ==========================================================================
   Base: design tokens, reset, typography, buttons, navigation, footer
   ========================================================================== */

:root {
  /* Colours */
  --bg: #fcfbf8;
  --surface: #ffffff;
  --text: #141414;
  --muted: #6c6a64;
  --faint: #8a877f;      /* large text only */
  --line: #dedcd5;
  --line-strong: #b9b6ad;
  --green: #288642;      /* logo green: graphics only */
  --green-ink: #1f6f38;  /* readable as text on --bg */
  --green-soft: #a8d3b5;
  --cyan: #27fdfd;       /* logo cyan: graphics or dark backgrounds only */

  /* Type */
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --logo: "Overpass Mono", var(--mono);

  /* Layout and motion */
  --max: 1168px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}


/* Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  top: 8px;
  left: -999px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
}

.skip:focus {
  left: 8px;
}


/* Typography
   -------------------------------------------------------------------------- */

h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.05em;
}

h1 em {
  font-style: normal;
  color: var(--green-ink);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.045em;
}

/* Small mono label used for section eyebrows and status */
.label {
  font: 400 .75rem/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sub {
  margin-top: 14px;
  font-size: 1.125rem;
  color: var(--muted);
}


/* Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font: 500 1rem var(--sans);
  transition: background-color .15s, transform .12s var(--ease);
}

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

.btn:active {
  transform: scale(.97);
}

.btn .arrow {
  transition: transform .2s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-small {
  height: 36px;
  padding: 0 14px;
  font-size: .9375rem;
}

.textlink {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color .15s, border-color .15s;
}

.textlink:hover {
  border-color: var(--text);
  color: var(--text);
}


/* Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(252 251 248 / .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 1.0625rem var(--logo);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .9375rem;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  transition: color .15s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}


/* Footer
   -------------------------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 24px;
  font-size: .875rem;
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}


/* Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}
