:root {
  color-scheme: light;

  --color-forest-ink: #1a3300;
  --color-highlighter-yellow: #ffe95c;
  --color-cream-paper: #fcfaf5;
  --color-pencil-gray: #b6b6b6;
  --color-sticky-note-teal: #a8e5e5;
  --color-sticky-note-mint: #d5f5c2;
  --color-sticky-note-blush: #f6d0ff;

  --font-display: "Bricolage Grotesque", "Mulish", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", "Courier New", monospace;

  --page-max-width: 1200px;
  --page-gutter: clamp(16px, 3.5vw, 40px);
  --radius-button: 6px;
  --radius-card: 12px;
  --radius-nav: 16px;
  --shadow-subtle: rgba(0, 0, 0, 0.05) 0 1px 2px;
  --shadow-nav:
    rgba(255, 233, 92, 0.02) 0 170px 70px,
    rgba(255, 233, 92, 0.06) 0 92px 55px,
    rgba(255, 233, 92, 0.12) 0 38px 38px,
    rgba(255, 233, 92, 0.2) 0 12px 26px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mouse-x: 0;
  --mouse-y: 0;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--color-cream-paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-cream-paper);
  color: var(--color-forest-ink);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--color-forest-ink);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--color-highlighter-yellow);
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.page-shell::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(26, 51, 0, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 51, 0, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.page-shell::after {
  position: absolute;
  inset: 0;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.025;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max-width));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(12px, 2.5vw, 28px) auto 0;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--color-pencil-gray);
  border-radius: var(--radius-nav);
  background: rgba(252, 250, 245, 0.94);
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 9px 7px 10px 6px;
  background: var(--color-highlighter-yellow);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  transform: rotate(-2deg);
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.nav-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-button);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms var(--ease-out);
}

.nav-link {
  border: 1px solid var(--color-forest-ink);
}

.nav-link:hover {
  background: var(--color-sticky-note-mint);
}

.nav-cta {
  background: var(--color-forest-ink);
  color: var(--color-cream-paper);
  box-shadow: var(--shadow-subtle);
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.main-content {
  display: grid;
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max-width));
  align-content: center;
  margin-inline: auto;
  padding-block: clamp(56px, 9vh, 112px) clamp(32px, 6vh, 64px);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(470px, 62vh, 650px);
  place-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 900px);
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(24px, 4vh, 40px);
  padding: 5px 10px;
  border-radius: var(--radius-button);
  background: var(--color-highlighter-yellow);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.eyebrow span {
  font-size: 0.95em;
}

h1 {
  margin: 0;
  color: var(--color-forest-ink);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 5.625rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 0.98;
}

h1 mark {
  position: relative;
  display: inline-block;
  z-index: 0;
  background: transparent;
  color: inherit;
}

h1 mark::before {
  position: absolute;
  right: -0.055em;
  bottom: 0.01em;
  left: -0.055em;
  z-index: -1;
  height: 0.34em;
  border-radius: 2px 5px 3px 2px;
  background: var(--color-highlighter-yellow);
  content: "";
  transform: rotate(-1deg);
  transform-origin: left center;
}

.hero-lead {
  max-width: 620px;
  margin: clamp(24px, 4vh, 38px) 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(24px, 4vh, 40px);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms var(--ease-out);
}

.button:hover {
  box-shadow: var(--shadow-subtle);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

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

.button-pastel {
  border-color: var(--color-forest-ink);
  background: var(--color-sticky-note-teal);
  color: var(--color-forest-ink);
}

.reassurance {
  margin: 12px 0 0;
  color: #6d7862;
  font-size: 0.78rem;
  line-height: 1.5;
}

.sketch {
  position: absolute;
  z-index: 0;
  width: clamp(190px, 23vw, 320px);
  overflow: visible;
  fill: none;
  stroke: var(--color-forest-ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  opacity: 0.2;
  pointer-events: none;
  transition: transform 240ms ease-out;
}

.sketch circle {
  fill: var(--color-highlighter-yellow);
  stroke-width: 1.5;
}

.sketch-left {
  top: 48%;
  left: -6%;
  transform: translate3d(calc(var(--mouse-x) * -9px), calc(var(--mouse-y) * -7px), 0) rotate(-8deg);
}

.sketch-right {
  top: 5%;
  right: -7%;
  transform: translate3d(calc(var(--mouse-x) * 8px), calc(var(--mouse-y) * 6px), 0) rotate(7deg);
}

.sketch-note {
  position: absolute;
  right: 4%;
  bottom: 9%;
  z-index: 1;
  max-width: 160px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--color-forest-ink);
  border-radius: var(--radius-card);
  background: var(--color-sticky-note-mint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  transform: rotate(3deg);
}

.focus-line {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(16px, 4vh, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--color-pencil-gray);
  font-family: var(--font-mono);
  font-size: clamp(0.64rem, 1vw, 0.75rem);
  line-height: 1.4;
  text-align: center;
}

.focus-line i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-highlighter-yellow);
  box-shadow: 0 0 0 1px var(--color-forest-ink);
}

.site-footer {
  display: flex;
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max-width));
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
  border-top: 1px solid var(--color-pencil-gray);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.4;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.site-footer p:last-child span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-sticky-note-mint);
  box-shadow: 0 0 0 4px rgba(213, 245, 194, 0.55);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes marker-in {
  from {
    transform: scaleX(0) rotate(-1deg);
  }

  to {
    transform: scaleX(1) rotate(-1deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .is-loading .site-header,
  .is-loading .hero-copy > *,
  .is-loading .sketch,
  .is-loading .sketch-note,
  .is-loading .focus-line,
  .is-loading .site-footer {
    opacity: 0;
  }

  body:not(.is-loading) .site-header,
  body:not(.is-loading) .focus-line,
  body:not(.is-loading) .site-footer {
    animation: fade-in 520ms var(--ease-out) both;
  }

  body:not(.is-loading) .hero-copy > * {
    animation: rise-in 620ms var(--ease-out) both;
  }

  body:not(.is-loading) .hero-copy > :nth-child(2) {
    animation-delay: 70ms;
  }

  body:not(.is-loading) .hero-copy > :nth-child(3) {
    animation-delay: 140ms;
  }

  body:not(.is-loading) .hero-copy > :nth-child(4) {
    animation-delay: 210ms;
  }

  body:not(.is-loading) .hero-copy > :nth-child(5) {
    animation-delay: 280ms;
  }

  body:not(.is-loading) .sketch,
  body:not(.is-loading) .sketch-note {
    animation: fade-in 850ms var(--ease-out) 180ms both;
  }

  body:not(.is-loading) h1 mark::before {
    animation: marker-in 720ms var(--ease-out) 520ms both;
  }
}

@media (max-width: 760px) {
  .site-header {
    margin-top: 12px;
  }

  .main-content {
    padding-block: 44px 30px;
  }

  .hero {
    min-height: 500px;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
    letter-spacing: 0.02em;
  }

  .hero-lead {
    max-width: 34ch;
    font-size: 1.05rem;
  }

  .sketch-left {
    left: -22%;
  }

  .sketch-right {
    top: 7%;
    right: -24%;
  }

  .sketch-note {
    right: 0;
    bottom: 1%;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 58px;
    padding-block: 6px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .nav-link {
    display: none;
  }

  .nav-cta {
    min-height: 44px;
    padding-inline: 12px;
  }

  .hero {
    min-height: 520px;
  }

  .eyebrow {
    margin-bottom: 24px;
    font-size: 0.7rem;
  }

  h1 {
    font-size: clamp(3rem, 15.5vw, 4rem);
    line-height: 0.99;
  }

  .hero-actions {
    width: min(100%, 360px);
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .sketch {
    opacity: 0.12;
  }

  .sketch-left {
    display: none;
  }

  .sketch-note {
    display: none;
  }

  .focus-line {
    gap: 8px;
    font-size: 0.58rem;
  }

  .site-footer {
    min-height: 56px;
    font-size: 0.6rem;
  }
}

@media (max-width: 360px) {
  .brand {
    gap: 7px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .main-content {
    padding-top: 36px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .reassurance {
    max-width: 30ch;
  }

  .focus-line span:first-child,
  .focus-line i:first-of-type {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 768px) {
  .main-content {
    padding-block: 30px 24px;
  }

  .hero {
    min-height: 450px;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  .hero-lead {
    margin-top: 22px;
  }

  .hero-actions {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
