
@font-face {
  font-family: 'Redacted';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/Redacted/Redacted-Regular.woff2') format('woff2');
}

/**
 * Shared skeleton tokens for the landing page blocks.
 *
 * Every block concatenates this with its own `style.css` into
 * `makeElement({ style })` — via `./skeleton.ts`, which also prepends the
 * Redacted @font-face — so a block carries everything `[skeleton]` needs and
 * nothing has to be linked globally for the mode to work.
 *
 * The values are the wireframe's grey ramp expressed against `--text` /
 * `--background` rather than the flat hexes it was drawn with, so a skeleton
 * follows the site into dark mode instead of staying a light-mode artifact.
 */
:root {
  /* Redacted has no italic or bold cut — the fallback keeps metrics sane if the
     woff2 is missing, in which case a skeleton degrades to plain grey text. */
  --landing-skeleton-font: 'Redacted', var(--font-primary, sans-serif);

  --landing-skeleton-heading: color-mix(in srgb, var(--background), var(--text) 70%);
  --landing-skeleton-copy: color-mix(in srgb, var(--background), var(--text) 30%);
  --landing-skeleton-kicker: color-mix(in srgb, var(--background), var(--text) 24%);
  --landing-skeleton-media: color-mix(in srgb, var(--background), var(--text) 38%);
  --landing-skeleton-rule: color-mix(in srgb, var(--background), var(--text) 12%);
  --landing-skeleton-surface: color-mix(in srgb, var(--background), var(--text) 2%);
}

/**
 * The page's one real conversation: a section head, four fields on a panel, and
 * the ask.
 *
 * Labels are drawn rather than hidden behind placeholders — the newsletter has
 * one field and can get away with a placeholder standing in for its name, and a
 * four-field form cannot: a placeholder disappears the moment you type, which is
 * exactly when someone checking their answer needs to know which box they are
 * in. They are set in the same tracked mono as every other label on the page.
 */
landing-inquiry {
  --inquiry-muted: color-mix(in srgb, var(--background), var(--text) 65%);
  --inquiry-wipe: 340ms cubic-bezier(0.45, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vh, 44px);
  width: 100%;
  padding: clamp(56px, 8vh, 104px) 28px 0;
  box-sizing: border-box;
  /* The header sits outside the scroller so it cannot overlap the target, but a
     section that lands hard against the top edge reads as a jump rather than as
     an arrival. */
  scroll-margin-top: 24px;
}

@media (max-width: 640px) {
  landing-inquiry {
    padding: 40px 20px 0;
  }
}

landing-inquiry [content] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 60ch;
}

landing-inquiry [kicker] {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text2);
}

landing-inquiry [headline] {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.625rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.038em;
  text-wrap: balance;
  color: var(--text);
}

landing-inquiry [content] [copy] {
  margin: 0;
  max-width: 58ch;
  font-size: 0.96875rem;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--inquiry-muted);
}

landing-inquiry [inquire] {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 760px;
  border: 1px solid var(--light);
  background: var(--light0);
  padding: clamp(20px, 3vw, 28px);
  box-sizing: border-box;
}

/* Name and email share a row on anything wider than a phone; the organisation
   and the message are `[wide]` and always take the full width. */
landing-inquiry [fields] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

landing-inquiry [field] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

landing-inquiry [field][wide] {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  landing-inquiry [fields] {
    grid-template-columns: minmax(0, 1fr);
  }
}

landing-inquiry label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
}

landing-inquiry :is(input, textarea) {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--light);
  background: var(--background);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

landing-inquiry textarea {
  resize: vertical;
  min-height: 120px;
}

landing-inquiry :is(input, textarea):focus-visible {
  outline: 1px solid var(--text);
  outline-offset: -1px;
  border-color: var(--text);
}

/**
 * The subscribe opt-in: a checkbox, not a second submit.
 *
 * It is one intent — "get in touch, and keep me posted" — so it belongs to this
 * form's own send rather than to a button of its own that would leave someone
 * wondering which of the two actually sent their message. The page reads it on
 * submit and enrolls them alongside; see `LandingView/logic.ts`.
 *
 * Drawn rather than left to the platform, so it matches the hairlines around it:
 * a square that fills with ink and takes a mark when checked.
 */
landing-inquiry [check] label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--inquiry-muted);
  cursor: pointer;
}

landing-inquiry [check] input {
  appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid var(--light2);
  background: var(--background);
  cursor: pointer;
  transition: background 160ms linear, border-color 160ms linear;
}

landing-inquiry [check] input:checked {
  background: var(--text);
  border-color: var(--text);
}

/* The tick, drawn from the box's own corner so it scales with it. */
landing-inquiry [check] input:checked::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  margin: 1px auto 0;
  border: solid var(--background);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

landing-inquiry [check] label:hover input {
  border-color: var(--text);
}

landing-inquiry [actions] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

/* The hero's wipe — see the note in `HeroCentered/style.css`. */
landing-inquiry button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--text);
  background: var(--text);
  padding: 13px 23px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--background);
  cursor: pointer;
  transition: color 180ms linear;
}

landing-inquiry button::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--background);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--inquiry-wipe);
}

landing-inquiry button:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

landing-inquiry button:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  landing-inquiry button::after {
    transition: none;
  }
}

landing-inquiry [fine-print] {
  margin: 0;
  flex: 1 1 22ch;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--text2);
}

/* Written by the block on submit, and by the page on a failure — see
   `LandingView/logic.ts`, which owns the error case. */
landing-inquiry [status] {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text);
}

landing-inquiry :is([kicker], [headline], [copy], [fine-print], [status]):empty {
  display: none;
}

/* ---------------- SKELETON ---------------- */

landing-inquiry[skeleton],
landing-inquiry[skeleton] * {
  font-family: var(--landing-skeleton-font);
  font-weight: 400;
  letter-spacing: normal;
}

landing-inquiry[skeleton] {
  background: var(--landing-skeleton-surface);
  pointer-events: none;
  user-select: none;
}

landing-inquiry[skeleton] :is([kicker], [headline], [copy], [fine-print]):empty {
  display: revert;
}

landing-inquiry[skeleton] [inquire] {
  background: transparent;
  border-color: var(--landing-skeleton-rule);
}

/* An empty field already is the wireframe's shape, so it needs no filler — only
   the browser's disabled tint taking off, which would otherwise read as a state
   rather than as a blank. */
landing-inquiry[skeleton] :is(input, textarea) {
  border-color: var(--landing-skeleton-rule);
  background: var(--background);
  opacity: 1;
}

landing-inquiry[skeleton] button {
  background: var(--landing-skeleton-heading);
  color: var(--background);
  opacity: 1;
}

/* No hover in a still picture. */
landing-inquiry[skeleton] button::after {
  display: none;
}

landing-inquiry[skeleton] label {
  color: var(--landing-skeleton-kicker);
}

landing-inquiry[skeleton] [kicker] {
  color: var(--landing-skeleton-kicker);
}

landing-inquiry[skeleton] [kicker]:empty::before {
  content: 'Contact';
}

landing-inquiry[skeleton] [headline] {
  color: var(--landing-skeleton-heading);
}

landing-inquiry[skeleton] [headline]:empty::before {
  content: 'Tell us what you are building';
}

landing-inquiry[skeleton] [content] [copy] {
  color: var(--landing-skeleton-copy);
}

landing-inquiry[skeleton] [content] [copy]:empty::before {
  content: 'One line about who reads this and how long an answer takes.';
}

landing-inquiry[skeleton] [fine-print] {
  color: var(--landing-skeleton-kicker);
}

landing-inquiry[skeleton] [fine-print]:empty::before {
  content: 'Your details stay in this deployment.';
}
