:root {
  color-scheme: light;
  --paper: #fffaf1;
  --ink: #17201c;
  --muted: #5d665f;
  --teal: #0f766e;
  --teal-dark: #084c45;
  --coral: #e85d4f;
  --yellow: #f4c430;
  --mint: #d6f3df;
  --sky: #d9ecff;
  --line: #17201c;
  --shadow: 10px 10px 0 #17201c;
  --soft-shadow: 0 24px 60px rgb(23 32 28 / 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(90deg, rgb(23 32 28 / 0.05) 1px, transparent 1px),
    linear-gradient(rgb(23 32 28 / 0.05) 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 16px, rgb(232 93 79 / 0.08) 16px 18px),
    linear-gradient(90deg, rgb(15 118 110 / 0.12), transparent 28%, rgb(244 196 48 / 0.18) 72%, transparent),
    linear-gradient(135deg, var(--paper), #f3fbff 55%, #fff2cf);
  background-size: 30px 30px, 30px 30px, auto, auto, auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 118px);
}

.hero-copy,
.portrait-panel,
.proof-card {
  border: 2px solid var(--line);
  background: rgb(255 250 241 / 0.92);
}

.hero-copy {
  padding: clamp(28px, 6vw, 64px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.subtitle {
  max-width: 42rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
}

.hero-actions {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.summon-button {
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.78rem 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.summon-button:hover,
.summon-button:focus-visible {
  background: #ffe06a;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.summon-button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.finding {
  min-height: 3.5rem;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.portrait-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--mint), var(--sky)),
    var(--mint);
  box-shadow: var(--soft-shadow);
}

.portrait-panel::before {
  content: "FERRET LAB";
  position: absolute;
  left: 18px;
  top: 16px;
  color: rgb(23 32 28 / 0.18);
  font-size: 0.9rem;
  font-weight: 900;
}

.ferret-stage {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 24px;
}

.ferret-stage svg {
  display: block;
  width: min(100%, 440px);
  height: auto;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 720px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.proof-card {
  min-height: 220px;
  border-radius: 8px;
  padding: 22px;
}

.proof-card:nth-of-type(1) {
  background: #fff1ec;
}

.proof-card:nth-of-type(2) {
  background: #effbf2;
}

.proof-card:nth-of-type(3) {
  background: #f3f0ff;
}

.proof-index {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 900;
}

.proof-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0;
}

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

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 840px) {
  .page-shell {
    padding-top: 24px;
  }

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

  .hero-copy {
    box-shadow: 6px 6px 0 var(--ink);
  }

  h1 {
    max-width: 10ch;
  }

  .portrait-panel,
  .ferret-stage {
    min-height: 380px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-card {
    min-height: 0;
  }
}

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