/* draftwright.io's landing page: the AI app's colours and fonts (packages/frontend/src/styles/global.css).
   One screen on a laptop (1280 × 800): header, headline beside the drawing, the two ways in, notes. */
@font-face {
  font-family: 'IBM Plex Sans Condensed';
  src: url('/fonts/IBMPlexSansCondensed-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --surface-0: #11121d;
  --surface-1: #151622;
  --surface-2: #1b1c2b;
  --line: #2a2c3d;
  --line-strong: #41445d;
  --text-strong: #f5f5f8;
  --text: #dedee7;
  --text-muted: #a8a8b9;
  --text-subtle: #77798d;
  --ink: #8ba4ff;
  --prose: 'IBM Plex Sans Condensed', 'Arial Narrow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text);
  font-family: var(--prose);
  overflow-x: hidden;
}

.site-header, .hero, .choices, .notes, .site-footer {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-strong);
  text-decoration: none;
  font: 600 18px var(--mono);
}
.site-brand img { width: 30px; height: 30px; }

.beta-badge {
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface-2);
  font: 500 11px/1.3 var(--mono);
  white-space: nowrap;
}

.site-header nav a {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text-strong);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.hero {
  padding-block: clamp(14px, 3vh, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ink);
  font: 12px var(--mono);
  letter-spacing: .14em;
}

h1 {
  margin: 0;
  max-width: 560px;
  color: var(--text-strong);
  font-size: clamp(30px, min(3.8vw, 6.4vh), 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.lede {
  margin: clamp(10px, 2vh, 18px) 0 0;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.5;
}

/* The bracket's STEP model, then the drawing Draftwright made of it, at one height. */
.proof {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  --proof-height: min(29vh, 320px);
}
.proof-step { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.proof figcaption { color: var(--text-subtle); font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.proof-arrow { color: var(--ink); font: 28px var(--mono); padding-bottom: 22px; }
.proof .model { display: block; width: auto; max-width: 100%; height: var(--proof-height); }
.proof-sheet { padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-1); }
.proof .sheet { display: block; width: auto; max-width: 100%; height: calc(var(--proof-height) - 18px); border-radius: 3px; }

.choices {
  padding-block: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choices article {
  padding: clamp(14px, 2.2vh, 20px) 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "eyebrow eyebrow" "title action" "text action";
  column-gap: 20px;
  align-items: start;
  align-content: start;
}
.choices .eyebrow { grid-area: eyebrow; margin-bottom: 8px; }
.choices .deprecated .eyebrow { color: var(--text-subtle); }
.choices h2 { grid-area: title; margin: 0; color: var(--text-strong); font-size: 22px; font-weight: 600; }
.choices p:not(.eyebrow) { grid-area: text; margin: 8px 0 0; color: var(--text-muted); font-size: 15px; line-height: 1.5; }
.choices .primary, .choices .secondary { grid-area: action; align-self: center; }

.primary, .secondary {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.primary { border: 1px solid var(--ink); background: var(--ink); color: #0e1020; }
.secondary { border: 1px solid var(--line-strong); color: var(--text-strong); }

.notes {
  padding-block: clamp(12px, 2vh, 18px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
}
.notes h2 { margin: 0; color: var(--text-strong); font-size: 17px; font-weight: 600; }
.notes p:not(.eyebrow) { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.draft-note { display: flex; gap: 14px; }
.draft-note > span { flex: 0 0 3px; border-radius: 2px; background: var(--ink); }
.beta-note .eyebrow { margin-bottom: 6px; }
.beta-note a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }

.site-footer {
  padding-block: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--text-subtle);
  font: 12px var(--mono);
}
.site-footer a { margin-left: 18px; color: var(--text-subtle); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .proof { --proof-height: auto; }
  .proof-step:first-child { flex: 0 0 34%; }
  .proof-step:last-child { flex: 1 1 0; }
  .proof .model, .proof .sheet { width: 100%; height: auto; }
  .choices, .notes { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .beta-badge { display: none; }
  .choices article { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "text" "action"; }
  .choices .primary, .choices .secondary { justify-self: start; margin-top: 16px; }
}
