/* Nirogi Machines site styles. One reading column; oxblood is the only accent. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
/* Layout: one reading column, like a lab's notebook index. Statement, figure, dated entries. No ornament beyond the mark. */
:root {
  --bg: #ffffff;
  --fg: #1d1f26;
  --muted: #62646d;
  --line: #e4e6ea;
  --accent: #8c2f39;
  --trace: rgba(29, 31, 38, 0.14);
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --col: 680px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131418; --fg: #e9e9e6; --muted: #9b9da6; --line: #2a2c33; --accent: #e3848d; --trace: rgba(233, 233, 230, 0.13);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { margin: 0; }

.col {
  max-width: calc(var(--col) + 2 * 24px); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* Header */
header .col { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 28px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; min-height: 44px; }
.brand:hover { color: var(--fg); }
.brand svg { width: 26px; height: 26px; flex: none; }
nav.primary { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; }
nav.primary a { text-decoration: none; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
nav.primary a:hover { color: var(--fg); }
nav.primary a[aria-current="page"] { color: var(--fg); }

main { padding-block: 72px 96px; min-height: 60vh; }
.view { display: grid; gap: 56px; }
[hidden] { display: none !important; }

/* Statement */
.statement { display: grid; gap: 20px; }
.statement p.big { font-size: clamp(21px, 2.6vw, 25px); line-height: 1.45; letter-spacing: -0.01em; font-weight: 400; text-wrap: pretty; }
.statement p.cta { font-size: 17px; color: var(--muted); }
.statement p.cta a { color: var(--fg); }
.statement p.cta a:hover { color: var(--accent); }

/* Figure */
figure.plate { margin: 0; display: grid; gap: 10px; }
.plate-box {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%;
  padding: 0; margin: 0; border: 0; background: transparent; cursor: crosshair; color: inherit; font: inherit;
}
.plate-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
figcaption { font-size: 14px; color: var(--muted); }

/* Entries */
.section-title { font-size: 15px; font-weight: 500; color: var(--muted); margin: 0 0 4px; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; }
.entries li { border-top: 1px solid var(--line); }
.entries li:last-child { border-bottom: 1px solid var(--line); }
.entry { display: grid; gap: 4px; padding-block: 22px; text-decoration: none; }
.entry:hover { color: inherit; }
.entry:hover .t { color: var(--accent); }
.entry .d { font-size: 14px; color: var(--muted); }
.entry .t { font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.entry .b { color: var(--muted); font-size: 16px; }
.ph { color: var(--muted); }
.area { display: grid; gap: 14px; }
.area .section-title { font-size: 21px; font-weight: 500; color: var(--fg); letter-spacing: -0.01em; margin: 0; }
.area-intro { color: var(--muted); max-width: 36em; }
.area .entries { margin-top: 6px; }
.more { justify-self: start; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }

/* Page heads */
h1 { font-size: clamp(28px, 3.6vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 0; text-wrap: balance; }
.prose { display: grid; gap: 18px; }
.prose p { color: var(--fg); }
.prose p.m { color: var(--muted); }
.mail { font-size: clamp(24px, 3.4vw, 32px); font-weight: 500; letter-spacing: -0.01em; user-select: all; word-break: break-all; }
.copy { justify-self: start; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: inherit; font-size: 15px; cursor: pointer; }
.copy:hover { border-color: var(--fg); }
.note { font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* Footer */
footer .col { padding-block: 0 48px; font-size: 14px; color: var(--muted); }
footer .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 28px; border-top: 1px solid var(--line); }
footer .col > * { min-width: 0; }

/* Entry with an action on the right */
.entries li.with-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.entries li.with-action .entry { flex: 1 1 320px; min-width: 0; }
.wl-btn {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; margin-bottom: 22px;
  border: 1px solid var(--fg); background: var(--fg); color: var(--bg); text-decoration: none; font-size: 15px; font-weight: 500;
}
@media (min-width: 640px) { .wl-btn { margin-bottom: 0; } }
.wl-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Waitlist form */
.field[hidden] { display: none !important; }
.waitlist { display: grid; gap: 22px; padding: 28px 0 0; }
.waitlist h1 { margin: 0; }
.view.tight { gap: 24px; }
.waitlist .intro { color: var(--muted); }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-size: 15px; font-weight: 500; padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input[type="email"], .field input[type="text"] {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 0;
}
.field input[type="email"]:focus, .field input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); cursor: pointer; font-size: 15px;
}
.choices label:has(input:checked) { border-color: var(--fg); }
.choices input { accent-color: var(--accent); margin: 0; }
.submit {
  justify-self: center; min-width: min(100%, 240px); justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.submit:hover { background: var(--accent); border-color: var(--accent); }
.submit:disabled { opacity: .6; cursor: progress; }
.form-msg { font-size: 15px; min-height: 1.5em; text-align: center; }
.form-msg.err { color: var(--accent); }
.done { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--fg); }
.done strong { font-weight: 500; font-size: 19px; }
.done span { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Spam trap: hidden from people, filled in by bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
