:root {
  --paper: #f4efe4;
  --ink: #1f2a8a;
  --accent: #ffe800;
  --link-hover: #8a6a00;
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --max-width: 1100px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

/* The page is exactly one viewport tall; sizes below scale with it so nothing scrolls. */
html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--link-hover);
}

/* Two-ink misregistered print: an accent copy offset behind the ink. */
.misprint {
  position: relative;
  display: inline-block;
}

.misprint__shadow {
  position: absolute;
  left: var(--offset, 3px);
  top: var(--offset, 3px);
  color: var(--accent);
  white-space: nowrap;
}

.misprint__ink {
  position: relative;
}

/* Header */
.site-header {
  flex: none;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(12px, 3vh, 28px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
}

.logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vh, 22px);
  letter-spacing: -0.02em;
}

.tagline {
  font-weight: 700;
  font-size: clamp(11px, 1.4vh, 13px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Hero: copy and mascot side by side, stacked on narrow screens */
main {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(8px, 2vh, 24px) var(--gutter) clamp(16px, 4vh, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vh, 32px) 56px;
}

.copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.6vh, 26px);
}

h1 {
  --offset: clamp(3px, 0.6vh, 6px);
  align-self: flex-start;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, min(9vw, 13vh), 128px);
  font-weight: normal;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0;
  max-width: 520px;
  font-size: clamp(15px, 2.1vh, 21px);
  font-weight: 500;
  line-height: 1.5;
}

.note {
  margin: 0;
  max-width: 520px;
  font-size: clamp(13px, 1.7vh, 17px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.4vh, 14px) 24px;
  margin-top: clamp(0px, 0.6vh, 6px);
}

.email {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: clamp(10px, 1.4vh, 14px) 22px;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(13px, 1.5vh, 15px);
  letter-spacing: 0.04em;
  box-shadow: 6px 6px 0 var(--ink);
}

.email:hover {
  color: var(--link-hover);
}

.email:active {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
  font-size: clamp(12px, 1.4vh, 14px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.links a {
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
}

/* Mascot fills whatever space the copy leaves, and steps aside on short phones where that's too little.
   (No container query here: Chrome freezes CSS animations inside a size container.) */
.art {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot {
  width: 100%;
  height: 100%;
  max-height: 480px;
  overflow: visible;
}

.mascot .ink {
  fill: var(--ink);
}

.mascot .accent {
  fill: var(--accent);
}

.mascot .paper {
  fill: var(--paper);
}

.mascot .line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mascot .line.ink {
  fill: var(--ink);
}

.mascot .sclera {
  fill: var(--paper);
  stroke-width: 6;
}

.mascot .lid {
  stroke-width: 9;
}

.mascot .leaf__rib {
  fill: none;
  stroke: var(--paper);
  stroke-width: 3;
  stroke-linecap: round;
}

/* Animation: slow breathing, an occasional blink, a sideways glance, a lazy leaf,
   and the yellow plate drifting a little out of register. */
.mascot .character {
  transform-box: view-box;
  transform-origin: 200px 398px;
  animation: mascot-breathe 4s ease-in-out infinite;
}

.mascot .plate-yellow {
  transform: translate(8px, 8px);
  animation: mascot-register 7s ease-in-out infinite;
}

.mascot .shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: mascot-shadow 4s ease-in-out infinite;
}

.mascot .leaf {
  transform-box: view-box;
  transform-origin: 204px 68px;
  animation: mascot-sway 3.2s ease-in-out infinite;
}

.mascot .eye__ball {
  transform-box: fill-box;
  transform-origin: center top;
  animation: mascot-blink 5.5s infinite;
}

.mascot .pupil {
  animation: mascot-glance 9s ease-in-out infinite;
}

.mascot .eye {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s ease;
}

/* Hover: mildly annoyed. */
.mascot:hover .eye--left {
  transform: translateY(4px) rotate(10deg);
}

.mascot:hover .eye--right {
  transform: translateY(4px) rotate(-10deg);
}

@keyframes mascot-breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.015, 0.975); }
}

@keyframes mascot-register {
  0%, 100% { transform: translate(8px, 8px); }
  50% { transform: translate(5px, 10px); }
}

@keyframes mascot-shadow {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.04); }
}

@keyframes mascot-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(5deg); }
}

@keyframes mascot-blink {
  0%, 90%, 96%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(0.06); }
}

@keyframes mascot-glance {
  0%, 38%, 100% { transform: translateX(0); }
  44%, 68% { transform: translateX(18px); }
  74% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mascot * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
  }
}

/* Footer */
.site-footer {
  flex: none;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
}

.site-footer .inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(10px, 1.6vh, 16px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 32px;
  font-weight: 700;
  font-size: clamp(11px, 1.3vh, 13px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
