/* blairkittredge.com - a simple page: the series, the notebook it is named after, book 1, the sign-up.
   Dark, as the thrillers' pages are (Mr. D., 14 Nov 2026): a county road at night, bone lettering, the yellow of its centre line.
   claycorliss.com uses this same sheet with other colours: change both, or neither. */

@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* tokens:start */
:root {
  --ground: #0e0d0c;
  --panel: #1c1a17;
  --panel-up: #2a2722;
  --ink: #ece6d8;
  --muted: #b3ab9b;
  --signal: #f6cf1a;
  --signal-up: #ffe45c;
  --on-signal: #141200;
  --sheet: #ece6d8;
  --on-sheet: #16130f;
  --field: #ece6d8;
  --on-field: #16130f;
}
/* tokens:end */

:root {
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --step-name: clamp(4rem, 1rem + 11vw, 11rem);
  --edge: clamp(1.125rem, 3vw, 3rem);
  --gap: clamp(5.5rem, 11vw, 10rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-size: var(--step-body); line-height: 1.55; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
h1, h2, p, table { margin: 0; }
a { color: inherit; text-underline-offset: 0.22em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--on-signal); }

h1, h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0; line-height: 0.95; }
h1 { font-size: var(--step-name); }
h2 { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }

.skip { position: absolute; left: var(--edge); top: -5rem; z-index: 30; padding: 0.75rem 1rem; background: var(--signal); color: var(--on-signal); font-weight: 600; }
.skip:focus { top: 0.5rem; }

.bar { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; padding: 0 var(--edge); }
.mark { margin-right: auto; font-family: var(--display); font-weight: 600; font-size: var(--step-lead); text-transform: uppercase; text-decoration: none; white-space: nowrap; line-height: 1; }
.button { display: inline-block; padding: 0.75rem 1.15rem; background: var(--signal); color: var(--on-signal); font-weight: 700; font-size: 1rem; line-height: 1.25; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease), background-color 160ms var(--ease); }
.button:hover { background: var(--signal-up); transform: translateY(-2px); }
.button:active { transform: translateY(1px); }

main > section { padding: 0 var(--edge); }
main > section + section { margin-top: var(--gap); }

/* the first screen: the name very large, what it is, and the thing the name comes from beside it */
.first { min-height: calc(100svh - 4.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--edge); align-items: end; padding-bottom: 3.5rem; }
.first-say { grid-column: 1 / span 7; }
.first-say .lead { margin-top: 2rem; max-width: 30ch; }
.first-say form { margin-top: 2.25rem; }
@media (min-width: 900px) { .first-say form { max-width: 34rem; } }
.first-say .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.quiet { font-weight: 600; color: var(--muted); }
.first-side { grid-column: 8 / span 5; }
.first-tall { align-self: stretch; display: flex; align-items: flex-end; margin-top: 2rem; }

/* the sheet: a page of the notebook, or a screen */
.sheet { background: var(--sheet); color: var(--on-sheet); padding: clamp(1.5rem, 3vw, 2.5rem); }
.sheet-say { font-size: var(--step-body); line-height: 1.5; }
.sheet-big { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.5rem, 0.9rem + 1.6vw, 2.25rem); line-height: 1.12; }
.entries { width: 100%; border-collapse: collapse; margin-top: 1.75rem; font-size: var(--step-lead); font-weight: 600; line-height: 1.25; }
.entries th, .entries td { padding: 0.7rem 0; text-align: left; vertical-align: top; border-top: 3px solid currentColor; }
.entries th { font-weight: 600; padding-right: 1rem; }
.entries td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet-foot { margin-top: 1.25rem; font-size: var(--step-small); font-weight: 600; }

/* a heading on the left, its text on the right */
.pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--edge); row-gap: 1.75rem; align-items: start; }
.pair h2 { grid-column: 1 / span 5; }
.pair-text { grid-column: 7 / span 6; }
.pair-text p + p { margin-top: 1.1rem; }
.pair-text .lead { margin-bottom: 1.5rem; }

/* the sign-up: a field of the signal colour's ground, floor to ceiling */
.close { background: var(--panel); padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
label { display: block; font-size: var(--step-small); font-weight: 600; margin-bottom: 0.5rem; }
.field { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }
input[type="email"] { width: 100%; min-height: 3.5rem; padding: 0 1rem; border: 0; background: var(--field); color: var(--on-field); font: 400 var(--step-body)/1.2 var(--text); }
form button { appearance: none; border: 0; cursor: pointer; min-height: 3.5rem; padding: 0 1.4rem; background: var(--signal); color: var(--on-signal); font: 700 var(--step-body)/1.2 var(--text); white-space: nowrap; transition: transform 160ms var(--ease), background-color 160ms var(--ease); }
form button:hover { background: var(--signal-up); transform: translateY(-2px); }
form button:active { transform: translateY(1px); }
.trap { position: absolute; left: -200vw; top: 0; }
.consent { margin-top: 1.25rem; font-size: var(--step-small); line-height: 1.5; color: var(--muted); }
.consent a { color: var(--ink); }

/* the foot: the name once more at full width, then one line */
.foot { padding: var(--gap) var(--edge) 1.9rem; }
.foot-name { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(3rem, 12.4vw, 13rem); line-height: 0.9; white-space: nowrap; margin: 0 0 2.5rem; }
.foot-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: baseline; font-size: var(--step-small); line-height: 1.5; }
.foot-what { color: var(--muted); max-width: 46ch; margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot-links a { font-weight: 600; }

/* the plain pages */
.plain { padding: 3rem var(--edge) var(--gap); max-width: 54rem; }
.plain h1 { font-size: var(--step-head); margin-bottom: 1.75rem; }
.plain-body h2 { font-family: var(--text); text-transform: none; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 2.5rem 0 0.75rem; }
.plain-body p + p, .plain-body ul + p, .plain-body p + ul { margin-top: 1rem; }
.plain-body ul { margin: 0; padding-left: 1.25rem; }
.plain-body li + li { margin-top: 0.5rem; }
.plain-body a { font-weight: 600; }
mark.gap { background: var(--signal); color: var(--on-signal); padding: 0 0.25em; }

/* entrances; without the script nothing is hidden */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .in .reveal { opacity: 1; transform: none; }
.js .in .reveal:nth-child(2) { transition-delay: 80ms; }
.js .in .reveal:nth-child(3) { transition-delay: 160ms; }
.js .in .reveal:nth-child(4) { transition-delay: 240ms; }

@media (max-width: 899px) {
  .first { display: block; min-height: 0; padding-top: 2.5rem; padding-bottom: 0; }
  .first-side { margin-top: 3rem; }
  .pair { display: block; }
  .pair h2 { margin-bottom: 1.5rem; }
  .field { grid-template-columns: 1fr; }
  .bar .button { display: none; }
  .foot-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .button, form button { transition: none; }
}
