@font-face {
  font-family: 'Bebas Neue';
  src: url('/fonts/bebas-neue-regular.ttf') format('truetype');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-semibold.ttf') format('truetype');
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-bold.ttf') format('truetype');
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: 'Caveat';
  src: url('/fonts/caveat-variable.ttf') format('truetype');
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

:root {
  color-scheme: light;
  --ink: #0c0d0b;
  --ink-soft: #171915;
  --paper: #e5e2dc;
  --paper-bright: #e2e0da;
  --paper-muted: #d7d5cd;
  --copy: #343630;
  --copy-muted: #676a62;
  --line: #c5c3ba;
  --line-dark: #343731;
  --primary: #b7c51f;
  --primary-pressed: #a8b71c;
  --destructive: #c73c32;
  --destructive-soft: #2f1512;
  --max-width: 1280px;
  --display: 'Bebas Neue', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-family: var(--body);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url('/assets/paper-texture.jpg');
  background-size: 720px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  width: 100%;
  min-height: 64px;
  align-items: stretch;
  color: var(--paper-bright);
  background: var(--ink);
  border-bottom: 1px solid #252722;
}

.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  padding: 0 30px;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  grid-column: 2;
  align-items: stretch;
  gap: 0;
}

.site-header nav a {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  padding: 0 21px;
  color: #d9dbd3;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--paper-bright);
  background: #1b1d19;
}

.site-header .nav-cta,
.site-header .mobile-nav-cta {
  min-width: 235px;
  justify-content: center;
  color: var(--ink);
  background: var(--primary);
  font-size: 17px;
}

.site-header > .nav-cta {
  grid-column: 3;
  justify-self: end;
  min-height: 64px;
  padding: 0 36px;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header .mobile-nav-cta {
  display: none;
}

.site-header .nav-cta:hover,
.site-header .nav-cta:focus-visible,
.site-header .mobile-nav-cta:hover,
.site-header .mobile-nav-cta:focus-visible {
  color: var(--ink);
  background: var(--primary-pressed);
}

.menu-button {
  display: none;
  min-width: 72px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--paper-bright);
  background: transparent;
  border: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main:not(.home-main) {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.home-main {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(400px, 31.5vw) 1fr;
  min-height: clamp(535px, 44vw, 680px);
  background: var(--paper);
}

.hero-copy {
  container-type: inline-size;
  z-index: 3;
  display: flex;
  min-height: clamp(535px, 44vw, 680px);
  flex-direction: column;
  justify-content: center;
  padding: 88px 36px 58px clamp(34px, 3.65vw, 58px);
  background-color: var(--paper-bright);
  background-image: url('/assets/paper-texture.jpg');
  background-size: 720px;
}

.eyebrow {
  display: inline-block;
  color: var(--copy-muted);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::after {
  display: block;
  width: 84px;
  height: 1px;
  margin-top: 8px;
  background: currentColor;
  content: '';
}

.eyebrow.light {
  color: var(--paper-muted);
}

.eyebrow.accent {
  color: #4b710b;
}

.eyebrow.danger {
  color: var(--destructive);
}

.hero h1 {
  max-width: 520px;
  margin: 38px 0 24px;
  font-family: var(--display);
  font-size: clamp(56px, 18cqi, 60px);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.94;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.lead {
  max-width: 410px;
  margin: 0;
  color: var(--copy);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 16px;
  margin-top: 38px;
}

.hero-actions .button {
  width: clamp(220px, 17.6vw, 270px);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  color: var(--ink);
  background: var(--primary);
}

.button.primary:hover {
  background: var(--primary-pressed);
}

.button.secondary {
  color: var(--paper-bright);
  background: var(--ink-soft);
  border-color: var(--line-dark);
}

.button.destructive {
  color: var(--paper-bright);
  background: var(--destructive-soft);
  border-color: var(--destructive);
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.text-button {
  min-height: 44px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-transform: uppercase;
}

.hero-media {
  position: relative;
  min-width: 0;
  min-height: clamp(535px, 44vw, 680px);
  margin: 0;
  overflow: hidden;
  background: #282c27;
}

.hero-media::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 118px;
  background-color: var(--paper-bright);
  background-image: url('/assets/paper-texture.jpg');
  background-size: 720px;
  content: '';
  -webkit-mask: url('/assets/torn-paper-edge.png') right center / 100% 100% no-repeat;
  mask: url('/assets/torn-paper-edge.png') right center / 100% 100% no-repeat;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.74) contrast(1.05);
}

.hero-media figcaption,
.for-climbers figcaption {
  position: absolute;
  right: 22px;
  bottom: 18px;
  padding: 5px 8px;
  color: #efeee8;
  background: rgba(12, 13, 11, 0.74);
  font-size: 11px;
}

.hero-media figcaption a,
.for-climbers figcaption a {
  text-decoration: none;
}

.account-strip {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(28px, 4vw, 66px);
  background-color: var(--paper-bright);
  background-image: url('/assets/paper-texture.jpg');
  background-size: 720px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.account-strip a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}

.account-strip a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.account-strip .strip-email {
  margin-left: auto;
  color: var(--copy-muted);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.habit-section {
  display: grid;
  grid-template-columns: 1.2fr 0.72fr 0.95fr;
  min-height: 390px;
  color: var(--paper-bright);
  background-color: var(--ink-soft);
  background-image: url('/assets/chalk-texture.jpg');
  background-size: 760px;
}

.habit-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-content: center;
  padding: 62px clamp(34px, 4vw, 66px);
}

.grade-mark {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--primary);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  transform: rotate(-7deg);
}

.habit-section h2,
.flow-section h2,
.for-climbers h2,
.account-center h2,
.section-heading h2,
.document-hero h1,
.form-intro h1,
.document h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.habit-section h2 {
  margin: 10px 0 14px;
  font-size: clamp(42px, 4vw, 60px);
  line-height: 1;
}

.habit-section h2::after {
  display: block;
  width: 135px;
  height: 3px;
  margin-top: 14px;
  background: var(--primary);
  content: '';
}

.habit-section p {
  max-width: 360px;
  margin: 0;
  color: var(--paper-muted);
  font-size: 17px;
}

.chalk-note {
  align-self: center;
  padding: 40px;
  border-left: 1px solid #555950;
  font-family: 'Caveat', cursive;
  font-size: clamp(26px, 2.3vw, 36px) !important;
  line-height: 1.08;
  text-align: center;
  transform: rotate(-3deg);
}

.habit-photo {
  position: relative;
  min-height: 300px;
  margin: 42px clamp(34px, 4vw, 66px) 42px 0;
  overflow: hidden;
}

.habit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 62%;
  filter: grayscale(0.78) sepia(0.15) contrast(1.16);
  transform: scale(1.16);
}

.habit-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  color: var(--paper-bright);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.habit-photo figcaption a {
  padding: 5px 7px;
  background: rgba(12, 13, 11, 0.74);
  text-decoration: none;
}

.habit-photo figcaption span {
  padding: 7px 15px;
  color: var(--ink);
  background: var(--primary);
  font-size: 24px;
  transform: rotate(5deg);
}

.flow-section {
  padding: 110px clamp(32px, 7vw, 110px) 120px;
  color: var(--ink);
  background-color: var(--paper-bright);
  background-image: url('/assets/paper-texture.jpg');
  background-size: 720px;
}

.section-kicker {
  margin-bottom: 14px;
  color: #527a10;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.flow-section h2 {
  max-width: 760px;
  margin: 0 0 56px;
  font-size: clamp(52px, 6.2vw, 92px);
  line-height: 0.95;
  text-transform: uppercase;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.flow-list li {
  display: grid;
  align-content: start;
  min-height: 220px;
  padding: 28px 34px 0 0;
}

.flow-list li + li {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.flow-list span {
  margin-bottom: 22px;
  color: #527a10;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.flow-list strong {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.flow-list p {
  max-width: 330px;
  margin: 10px 0 0;
  color: var(--copy-muted);
}

.for-climbers {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
  color: var(--paper-bright);
  background: var(--ink);
}

.for-climbers figure {
  position: relative;
  min-height: 580px;
  margin: 0;
  overflow: hidden;
}

.for-climbers figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.88) contrast(1.04);
}

.for-climbers > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px clamp(40px, 7vw, 110px);
  background-color: var(--ink-soft);
  background-image: url('/assets/chalk-texture.jpg');
  background-size: 760px;
}

.for-climbers h2 {
  max-width: 620px;
  margin: 30px 0 24px;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 0.98;
}

.for-climbers p {
  max-width: 560px;
  margin: 0;
  color: var(--paper-muted);
  font-size: 19px;
}

.account-center {
  padding: 105px clamp(32px, 7vw, 110px) 115px;
  background-color: var(--paper);
  background-image: url('/assets/paper-texture.jpg');
  background-size: 720px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-heading h2,
.document-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 0.98;
}

.section-heading p {
  max-width: 580px;
  margin: 0;
  color: var(--copy-muted);
  font-size: 18px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 90px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.account-center .action-grid {
  padding-bottom: 0;
}

.action-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 32px 34px 34px 0;
  text-decoration: none;
}

.action-card + .action-card {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.action-card h2 {
  margin: 42px 0 12px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
}

.action-card p {
  margin: 0;
  color: var(--copy-muted);
}

.text-link {
  margin-top: auto;
  padding-top: 30px;
  color: #41670a;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.action-card:hover .text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.narrow-main {
  width: min(calc(100% - 40px), 980px) !important;
  min-height: 720px;
  padding: 54px 0 110px;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--copy-muted);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.form-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding-top: 62px;
}

.form-intro h1 {
  margin: 24px 0 20px;
  font-size: clamp(52px, 6vw, 76px);
  line-height: 0.95;
  text-transform: uppercase;
}

.form-intro p {
  color: var(--copy-muted);
  font-size: 18px;
}

.form-card {
  min-height: 390px;
  padding: 34px;
  color: var(--paper-bright);
  background-color: var(--ink-soft);
  background-image: url('/assets/chalk-texture.jpg');
  background-size: 760px;
  border-top: 5px solid var(--primary);
}

.form-card form {
  display: grid;
  gap: 12px;
}

.form-card h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
}

.form-card label {
  margin-top: 6px;
  color: var(--paper-muted);
  font-size: 13px;
  font-weight: 700;
}

.form-card input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  color: var(--paper-bright);
  background: #22251f;
  border: 1px solid #4a4f45;
  border-radius: 0;
  outline: none;
}

.form-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(183, 243, 74, 0.18);
}

.form-card .button {
  margin-top: 14px;
}

.status {
  margin-top: 22px;
  padding: 14px 16px;
  color: var(--paper-bright);
  background: #223014;
  border-left: 4px solid var(--primary);
}

.status:empty {
  display: none;
}

.status.error {
  background: var(--destructive-soft);
  border-color: var(--destructive);
}

.muted,
.updated {
  color: var(--copy-muted);
}

.document-hero {
  max-width: 780px;
  padding: 110px 0 80px;
}

.document {
  width: min(calc(100% - 40px), 780px) !important;
  padding: 100px 0 120px;
}

.document h1 {
  margin: 26px 0 20px;
  font-size: clamp(50px, 6vw, 76px);
  line-height: 0.95;
  text-transform: uppercase;
}

.document h2 {
  margin: 52px 0 12px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
}

.document p {
  color: var(--copy);
  font-size: 17px;
}

.document a {
  color: #41670a;
}

.contact-block {
  padding-top: 0;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  width: 100%;
  padding: 54px clamp(32px, 4vw, 66px);
  color: var(--paper-bright);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}

footer div {
  display: grid;
  gap: 5px;
}

footer strong {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
}

footer div span,
footer small {
  color: #979b92;
  font-size: 13px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

footer a {
  color: var(--paper-muted);
  font-size: 13px;
  text-decoration: none;
}

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

footer small {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .brand {
    min-width: auto;
  }

  .site-header nav a {
    padding-inline: 13px;
  }

  .site-header {
    grid-template-columns: minmax(165px, 1fr) auto minmax(165px, 1fr);
  }

  .site-header > .nav-cta {
    min-width: 165px;
    padding-inline: 18px;
  }

  .hero {
    grid-template-columns: minmax(360px, 38vw) 1fr;
  }

  .hero h1 {
    font-size: 56px;
  }

  .habit-section {
    grid-template-columns: 1.1fr 0.8fr;
  }

  .habit-photo {
    display: none;
  }
}

@media (max-width: 780px) {
  .site-header {
    display: flex;
    min-height: 62px;
    justify-content: space-between;
  }

  .brand {
    padding: 0 18px;
    font-size: 26px;
  }

  .menu-button {
    display: block;
  }

  .site-header nav {
    position: absolute;
    top: 62px;
    right: 0;
    display: none;
    width: min(320px, 100vw);
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav a {
    min-height: 48px;
    padding: 0 14px;
  }

  .site-header .mobile-nav-cta {
    display: inline-flex;
    min-width: 0;
    margin: 8px 0 0;
  }

  .site-header > .nav-cta {
    display: none;
  }

  main:not(.home-main) {
    width: calc(100% - 32px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    min-height: 590px;
    padding: 58px 22px 52px;
  }

  .hero h1 {
    margin-top: 30px;
    font-size: clamp(53px, 17vw, 70px);
  }

  .hero h1 span {
    white-space: normal;
  }

  .lead {
    font-size: 19px;
  }

  .hero-media {
    min-height: 440px;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero-media::before {
    display: none;
  }

  .account-strip {
    gap: 8px 22px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 20px;
  }

  .account-strip .strip-email {
    width: 100%;
    margin-left: 0;
  }

  .habit-section {
    grid-template-columns: 1fr;
  }

  .habit-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 62px 22px 30px;
  }

  .chalk-note {
    margin: 0 22px 56px !important;
    padding: 30px 16px;
    border-top: 1px solid #555950;
    border-left: 0;
  }

  .flow-section,
  .account-center {
    padding: 76px 22px 84px;
  }

  .flow-list,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .flow-list li {
    min-height: auto;
    padding: 28px 0;
  }

  .flow-list li + li,
  .action-card + .action-card {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .for-climbers {
    grid-template-columns: 1fr;
  }

  .for-climbers figure {
    min-height: 420px;
  }

  .for-climbers > div {
    padding: 70px 22px 78px;
  }

  .action-card {
    min-height: 240px;
    padding: 28px 0;
  }

  .form-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 38px;
  }

  .form-card {
    padding: 25px 20px;
  }

  .document {
    width: calc(100% - 32px) !important;
    padding-top: 72px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 44px 22px;
  }

  footer nav {
    flex-direction: column;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
