/* Everydom placeholder — single-page feeler.
 *
 * Palette and type come from the committed Everydom design system
 * (src/styles/theme.css `html:root`, Pipeline Peeps, user decision
 * 2026-09-12). Values are duplicated rather than imported so this page can be
 * deployed as a standalone static bundle with no build step and no framework
 * runtime. When the design system changes, update both.
 *
 * Craft floor: body/placeholder ≥4.5:1, large text ≥3:1, one authored motion
 * moment, real states (hover/disabled/loading/error/success), themed browser
 * surfaces (selection, caret, focus ring).
 */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/outfit-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/outfit-600.ttf') format('truetype');
}

:root {
  --ink: #1a2322;
  --body: #1a2322;
  --muted: #516763;
  --accent: #c2350a;
  --accent-hover: #a52d09;
  --surface: #ecf4f2;
  --border: #78918d;
  --hairline: #e0e6e5;
  --focus: #fd4c17;
  --radius: 10px;
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Exponential ease-out; the page's single authored motion. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: #fff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

/* Browser surfaces belong to the palette. */
::selection { background: var(--surface); color: var(--ink); }
input { caret-color: var(--accent); }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }
/* On the ink surface the accent is unreadable (2.3:1); the skip link is a
   control, so it keeps the foreground colour and marks hover by underline. */
.skip:hover,
.skip:focus { color: #fff; text-decoration: underline; }

/* ---------------------------------------------------------------- layout */

main, .masthead, .footer {
  margin: 0 auto;
  max-width: 720px;
  padding-left: 24px;
  padding-right: 24px;
}

.masthead {
  padding-top: 40px;
  padding-bottom: 8px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark img { display: block; }

.lead {
  padding-top: 56px;
  /* The details block opens with its own border; keep the join tight so the
     rule reads as a section break rather than a gap. */
  padding-bottom: 52px;
}

/* ------------------------------------------------------------- the copy */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

h1 {
  margin: 0 0 24px;
  max-width: 20ch;
  color: var(--ink);
  font-size: clamp(32px, 7vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 44px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

/* ------------------------------------------------------------- the form */

.form { max-width: 460px; }

/* No capture path yet: the form is present but inert and explained, so it
   reads as "not open" rather than "broken". */
.form[data-inert='true'] input[type='email'],
.form[data-inert='true'] .submit {
  opacity: 0.55;
}

.field { display: block; margin-bottom: 12px; }

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

input[type='email'] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus. */
  line-height: 1.4;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
input[type='email']:hover { border-color: var(--muted); }
input[type='email']:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(194 53 10 / 14%);
}
input[type='email']::placeholder { color: var(--muted); opacity: 1; }

.submit {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms var(--ease), transform 140ms var(--ease);
}
.submit:hover { background: var(--accent-hover); }
.submit:active { transform: translateY(1px); }
.submit[disabled] { background: var(--muted); cursor: not-allowed; transform: none; }

.submit-busy { display: none; }
.submit[data-busy='true'] .submit-label { display: none; }
.submit[data-busy='true'] .submit-busy { display: inline; }

.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.note[data-state='error'] { color: #a31414; }
.note[data-state='success'] { color: #1c5d3f; }

/* Success replaces the form with a confirmed state rather than a toast. */
.form[data-done='true'] .field,
.form[data-done='true'] .submit { display: none; }
.form[data-done='true'] .note {
  margin-top: 0;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

/* ---------------------------------------------------------- the details */

.details {
  padding-bottom: 64px;
  border-top: 1px solid var(--hairline);
  padding-top: 56px;
}

.facts {
  margin: 0;
  display: grid;
  gap: 36px;
}

.fact dt {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fact dd {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* -------------------------------------------------------------- footer */

.footer {
  padding-top: 28px;
  padding-bottom: 56px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}
.footer p { margin: 0 0 6px; }
.footer-fine { color: var(--muted); }

/* ------------------------------------------------------- one reveal pass */

/* A single authored entrance for the page, on an already-visible default:
   without JS or with reduced motion, content is simply present. */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 620ms var(--ease) forwards;
}
.reveal:nth-child(2) { animation-delay: 70ms; }
.reveal:nth-child(3) { animation-delay: 140ms; }
.reveal:nth-child(4) { animation-delay: 210ms; }

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  * { transition-duration: 1ms !important; }
}

/* ---------------------------------------------------------- wider screens */

@media (min-width: 720px) {
  .masthead { padding-top: 56px; max-width: 780px; }
  main, .footer { max-width: 780px; }
  .lead { padding-top: 72px; padding-bottom: 88px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
  .facts .fact:nth-child(odd) { padding-right: 8px; }
}
