/* Premagentic placeholder page. Static, no build step, every asset in this
   folder. Derived from the look and feel of dottxt.ai (studied 2026-09-22):
   a white panel framed on a gray page, near-black text, one accent, a sans
   for text, a mono for labels and code, a pixel face for the display lines,
   numbered sections, hard offset shadows, dense and text-driven. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("fonts/PixelifySans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --page: #efefef;
  --panel: #f2f2f2;
  --fg: #000000;
  --muted: #5c5c5c;
  --rule: #000000;
  --rule-soft: #c9c9c9;
  --shadow: #939393;
  --accent: #0062db; /* the logo's blue, darkened one step so white text on it and it on white both pass 4.5:1 */
  --accent-ink: #ffffff;
  --sans: "Geist", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", Consolas, "Courier New", monospace;
  --pixel: "Pixelify Sans", "Geist", sans-serif;
  --frame: 1rem;
  --gutter: 1.25rem;
  --measure: 60rem;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font: 400 1rem/1.5 var(--sans);
  padding: var(--frame);
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); }
.nav li a:hover, .foot a:hover, .nav li a:focus-visible, .foot a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
p { margin: 0 0 1rem; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
code, pre, kbd { font-family: var(--mono); }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; }

.frame {
  background: var(--bg);
  border: 1px solid var(--rule);
  min-height: calc(100vh - 2 * var(--frame));
  display: flex;
  flex-direction: column;
}
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Small mono labels: the section numbers, footer headings, the legal row. */
.label {
  font: 500 0.75rem/1rem var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.num {
  display: inline-block;
  min-width: 1.6rem;
  padding: 0.15rem 0.35rem;
  margin-right: 0.5rem;
  background: var(--panel);
  text-align: center;
}
.key {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  line-height: 1rem;
  text-align: center;
  font: 500 0.625rem/1rem var(--mono);
  background: var(--accent);
  color: var(--accent-ink);
  vertical-align: -0.1rem;
}

/* Nav: the mark in a black square flush with the frame's corner, the
   wordmark, one mono link, and a mono text call to action on the right. */
.nav { border-bottom: 1px solid var(--rule); }
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3rem;
  max-width: none;
  padding-left: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font: 600 0.95rem/1 var(--sans);
  letter-spacing: -0.01em;
}
.brand:hover, .brand:focus-visible { color: var(--fg); }
.markbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--fg);
  border-right: 1px solid var(--rule);
}
.markbox .mark { width: 1.75rem; height: auto; filter: invert(1); }
.foot .mark { width: 1.5rem; height: auto; }
.nav ul { display: flex; gap: 1.25rem; margin-left: auto; }
.nav li a, .nav .cta {
  display: inline-flex;
  align-items: center;
  font: 500 0.8125rem/1rem var(--mono);
}
.nav li .key { order: -1; margin-right: 0.5rem; }
.nav .cta { margin-right: var(--gutter); }
.nav .cta .key { margin-left: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule);
  background: var(--fg);
  color: var(--bg);
  font: 500 0.8125rem/1rem var(--mono);
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: var(--accent-ink); }

/* Sections */
section { border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  padding: 2.5rem 0 1.5rem;
  color: var(--muted);
}
.section-body { padding-bottom: 3.5rem; }
.lede {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 36rem;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.sub {
  color: var(--muted);
  max-width: 40rem;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
}

/* Hero: the display line across the full width, then the copy beside the note card. */
.hero .section-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  grid-template-areas:
    "display display"
    "copy note";
  gap: 1.5rem 2.5rem;
  align-items: start;
}
.hero .section-body > * { min-width: 0; }
.display {
  font: 700 clamp(2.5rem, 7.8vw, 7rem)/0.9 var(--pixel);
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  overflow-wrap: normal;
}
.display span { display: block; }
.display span + span { padding-left: 0.9em; }
.display.small { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.hero .display { grid-area: display; }
.hero .copy { grid-area: copy; }
.hero .note { grid-area: note; }
.hero .lede { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.3rem); }
.hero .sub { max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Terminal window, and the note card */
.window {
  border: 1px solid var(--rule);
  background: var(--bg);
  box-shadow: 6px 6px 0 0 var(--shadow);
  margin: 1.75rem 0 0;
}
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 1.5rem;
  padding: 0 0.5rem;
  border-bottom: 1px solid var(--rule);
  background:
    repeating-linear-gradient(to bottom, transparent 0 3px, var(--rule) 3px 4px, transparent 4px 7px) center / 100% 11px no-repeat;
}
.titlebar span {
  background: var(--bg);
  padding: 0 0.4rem;
  font: 500 0.6875rem/1rem var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.window pre {
  margin: 0;
  padding: 1rem 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
.window pre .c { color: var(--muted); }
.window pre .p { color: var(--accent); }
.note {
  border: 1px solid var(--rule);
  box-shadow: 6px 6px 0 0 var(--shadow);
  padding: 1rem 1rem 0.75rem;
  font: 400 0.8125rem/1.5 var(--mono);
}
.note .logo { width: 7.5rem; height: auto; margin: 0 auto 1rem; }
.note .label { display: block; color: var(--muted); margin-bottom: 0.5rem; }
.note p { margin: 0 0 0.75rem; }
.note p:last-child { margin: 0; }

/* The brief: four labeled rows, then a strip of facts */
.rows { border-top: 1px solid var(--rule-soft); }
.row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.row p { margin: 0; color: var(--muted); max-width: 38rem; }
.row .label { color: var(--fg); padding-top: 0.3rem; }
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--muted);
}
.strip li { padding: 0.35rem 0.9rem; border: 1px solid var(--rule-soft); }

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  background: var(--panel);
}
.foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr 1fr;
  gap: 2rem;
  padding: 2rem var(--gutter);
  max-width: var(--measure);
  margin: 0 auto;
}
.foot h3 { margin: 0 0 0.75rem; color: var(--muted); }
.foot ul { display: grid; gap: 0.4rem; font-size: 0.9375rem; }
.foot .brand { margin-bottom: 0.75rem; }
.foot p { color: var(--muted); font-size: 0.875rem; max-width: 20rem; }
.legal {
  border-top: 1px solid var(--rule-soft);
  padding: 0.75rem var(--gutter);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  max-width: var(--measure);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .hero .section-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "display" "copy" "note";
  }
  .hero .note { max-width: 24rem; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --frame: 6px; --gutter: 1rem; }
  .nav .wrap { gap: 0.75rem; }
  .nav ul { display: none; }
  .display span + span { padding-left: 0.3em; }
  .window pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.75rem; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .strip li { flex: 1 1 auto; text-align: center; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .window, .note { box-shadow: 4px 4px 0 0 var(--shadow); }
}
@media print {
  body { background: var(--bg); padding: 0; }
  .btn, .markbox, .key { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .window pre { white-space: pre-wrap; }
}
