/* Kelp Cover "I · Lobe". Tokens first. */
/* Self-hosted fonts (no third-party requests). */
@font-face { font-family: 'Instrument Serif'; src: url(/fonts/instrument-serif-400.ttf) format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/instrument-sans.woff2) format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --bg: #EEEDE8;           /* page */
  --ink: #0A0A0A;          /* headline, paragraph, logo */
  --fill: #1155CC;         /* blob fill, pill, tag line, divider */
  --dot: #8EC5FF;          /* halftone dots, pill hover text */
  --white: #FFFFFF;        /* quote text, pill text */

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --gutter: max(24px, 2.5vw);
  --label-size: 13px;
  --label-track: 0.08em;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { overflow: hidden; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.page { position: relative; height: 100vh; height: 100dvh; min-height: 640px; overflow: hidden; background: var(--bg); }
.blob { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }

/* Header */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 28px var(--gutter); }
.brand { display: flex; align-items: center; gap: 28px; }
.logo { display: block; width: 104px; height: auto; }
.tagrow { display: flex; align-items: center; gap: 12px; }
.rule { width: 1.5px; height: 16px; background: var(--fill); }
.tag { margin: 0; color: var(--fill); font-size: var(--label-size); font-weight: 500; letter-spacing: var(--label-track); text-transform: uppercase; }

.pill { appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--fill); color: var(--white); font-family: var(--sans); font-size: var(--label-size); font-weight: 500; letter-spacing: var(--label-track); text-transform: uppercase; cursor: pointer; transition: color .2s ease; }
.pill:hover { color: var(--dot); }
.pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pill.is-shown { text-transform: none; letter-spacing: 0.01em; }
.pill-check { display: none; }
.pill.is-copied .pill-check { display: block; }

/* Headline (top left) and paragraph (bottom right). The headline's `top` is set by lobe.js on desktop
   (halfway between the header and the top of the small lobe). */
.headline { position: absolute; z-index: 2; left: var(--gutter); top: 300px; transform: translateY(-50%); margin: 0; max-width: 5.2em; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, min(7.4vw, 11.5vh), 136px); line-height: 0.94; letter-spacing: -0.015em; text-wrap: balance; }
.para { position: absolute; z-index: 2; right: var(--gutter); bottom: 40px; width: min(36vw, 520px); margin: 0; font-size: clamp(18px, min(1.45vw, 2.6vh), 22px); line-height: 1.5; text-wrap: balance; }

/* Quote inside the big lobe. left/top set by lobe.js; the canvas clears the dots behind it. */
.quote { position: absolute; z-index: 2; left: 0; top: 0; width: min(30vw, 440px); transform: translate(-50%, -50%); margin: 0; color: var(--white); display: flex; flex-direction: column; gap: 14px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: opacity .45s ease; }
.quote.is-fading { opacity: 0; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, min(1.9vw, 3.2vh), 30px); line-height: 1.22; text-wrap: balance; text-indent: -0.38em; /* hanging opening quote mark */ }
.quote figcaption { font-size: var(--label-size); font-weight: 500; letter-spacing: var(--label-track); text-transform: uppercase; }

/* Phones and portrait screens: same breakpoint as lobe.js portrait() (width < 760px or width/height < 0.75).
   Everything scales to the viewport height; the page never scrolls. */
@media (max-width: 759.98px), (max-aspect-ratio: 3/4) {
  .page { min-height: 0; }
  .top { padding: 16px; }
  .logo { width: 84px; }
  .tagrow { display: none; }
  .pill { height: 40px; padding: 0 16px; font-size: 11px; }
  .headline { left: 16px; top: calc(60px + clamp(10px, 2.2vh, 26px)); transform: none; font-size: min(17vw, 8.6vh); max-width: 5.3em; }
  .para { left: 16px; right: 16px; width: auto; bottom: clamp(14px, 2.6vh, 24px); font-size: clamp(14.3px, 2.25vh, 17.6px); text-wrap: pretty; }
  .quote { width: min(66vw, 270px); gap: 10px; text-align: right; }
  .quote blockquote { text-indent: 0; text-wrap: balance; font-size: clamp(15px, 2.3vh, 19px); }
  .quote.is-long blockquote { font-size: clamp(13px, 1.95vh, 16px); }
  .quote figcaption { font-size: 11px; }
}

/* 404 page */
.nf { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); gap: 20px; }
.nf h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 9vw, 120px); line-height: 0.96; letter-spacing: -0.015em; }
.nf p { margin: 0; font-size: 18px; line-height: 1.5; max-width: 32em; }
.nf .pill { align-self: flex-start; text-decoration: none; margin-top: 8px; }
