/* nuttallclimbing.com. Colours and type follow docs/design-system/colors_and_type.css:
   light is the chalk cut, dark is the ink cut. No third-party requests: fonts and art
   are served from /assets. */

@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --page: #EFE5D2;      /* Chalk Deep, the page ground */
  --card: #FCF6EA;      /* Chalk Raised */
  --well: #E0D3BB;      /* Silt */
  --ink: #0C1B2A;       /* Ink, headings */
  --prose: #3A2C18;     /* Peat, long-form prose */
  --muted: #5C5344;     /* Loam */
  --rule: #DDD0B6;      /* Silt Edge */
  --action: #1A6C96;    /* Crux Deep, links */
  --classify: #8E5026;  /* Caprock, kickers */
  --band: #0C1B2A;      /* the ink band behind the mark */
  --band-text: #F4ECDD;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-ui: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #071019;    /* Ink Deep */
    --card: #0C1B2A;    /* Ink */
    --well: #24384A;    /* Slate */
    --ink: #F4ECDD;     /* Chalk */
    --prose: #C7CFD8;   /* Vapor */
    --muted: #AEB8C2;   /* Ash */
    --rule: #3C4C5C;    /* Slate Raised */
    --action: #5FB4E6;  /* Crux Light */
    --classify: #DDA15E;/* Sandstone */
    --band: #0C1B2A;
    --band-text: #F4ECDD;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-head { padding-block: 22px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  letter-spacing: .02em; text-transform: uppercase; line-height: 1;
}
.site-nav { display: flex; gap: 22px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--action); }

/* Type */
.kicker {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--classify); margin: 0;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 76px); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(30px, 4.4vw, 40px); }
h3 { font-size: 23px; }
p { margin: 0; max-width: 64ch; color: var(--prose); }
.lede { font-size: 20px; }

/* Hero */
.hero { padding-block: 24px 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero figure { margin: 0; }
.hero img { border-radius: 6px; width: 100%; aspect-ratio: 779 / 1038; object-fit: cover; }
.status {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  background: var(--well); color: var(--ink); border-radius: 10px;
  padding: 7px 14px; font-size: 15px; font-weight: 500; line-height: 1.4;
}
.status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--classify); }

/* Sections */
section.block { padding-block: 64px; border-top: 1px solid var(--rule); }
.block-head { display: grid; gap: 10px; margin-bottom: 32px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--card); border-radius: 8px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.feature .tier { font-size: 14px; font-weight: 500; color: var(--muted); }

.band { background: var(--band); color: var(--band-text); }
.band .wrap { padding-block: 64px; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.band img { width: 160px; height: 160px; }
.band h2 { color: var(--band-text); }
.band p { color: #C7CFD8; }
.band .kicker { color: #DDA15E; }
.band-copy { display: grid; gap: 14px; min-width: 0; }

.contact { display: grid; gap: 14px; }
.email { font-size: 22px; font-weight: 500; overflow-wrap: anywhere; }

/* Prose pages */
.page { padding-block: 24px 72px; }
.page .wrap { max-width: 760px; display: grid; gap: 36px; }
.page-head { display: grid; gap: 12px; }
.page section { display: grid; gap: 12px; }
.page ol, .page ul { margin: 0; padding-left: 1.3em; color: var(--prose); max-width: 64ch; }
.page li + li { margin-top: 6px; }
.path { font-weight: 500; color: var(--ink); }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero figure { max-width: 420px; }
  .features { grid-template-columns: 1fr; }
  .band .wrap { grid-template-columns: 1fr; gap: 24px; }
  .band img { width: 96px; height: 96px; }
  section.block { padding-block: 48px; }
}
