/* id8Labs editorial system: print on warm paper. Light only, sharp corners, flat. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("fonts/archivo-narrow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fafaf7;
  --paper-shadow: #f2f0e8;
  --ink: #0b0b0b;
  --body: #2a2a2a;
  --muted: #5a5a5a;
  --hair: #d6d3c9;
  --hair-hard: #b4afa0;
  --orange: #ff6b35;
  --orange-text: #c8451a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --narrow: "Archivo Narrow", "Archivo", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; border-radius: 0; }
html { background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--body);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.bar { border-bottom: 1px solid var(--hair); }
.bar-inner, main, .foot-inner { width: 100%; max-width: 760px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.lockup { display: block; height: 36px; width: auto; }

.kicker, label, button {
  font: 600 13px/1.2 var(--narrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.bar .kicker { margin: 0; color: var(--muted); text-align: right; }

main { flex: 1; padding-top: 72px; padding-bottom: 72px; }
main > div { max-width: 600px; }

h1 {
  margin: 0 0 20px;
  color: var(--ink);
  font: 400 clamp(40px, 8vw, 60px)/1.05 var(--serif);
  letter-spacing: -0.02em;
}
h1 em { color: var(--orange); font-style: italic; }

p { margin: 0 0 14px; }
.lede { color: var(--ink); font-size: 19px; line-height: 1.55; }
.es { color: var(--muted); font-size: 16px; }
.rule { height: 2px; margin: 0 0 28px; border: 0; background: var(--ink); }
.label { margin-bottom: 20px; color: var(--ink); font: 400 24px/1.3 var(--serif); overflow-wrap: anywhere; }

label { display: block; margin: 28px 0 10px; color: var(--ink); }

button {
  min-height: 52px;
  margin-top: 16px;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
button:hover:not([disabled]) { background: var(--orange); border-color: var(--orange); color: var(--ink); }
button:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
button[disabled] { background: var(--paper-shadow); border-color: var(--hair-hard); color: var(--muted); cursor: default; }

pre {
  margin: 0 0 8px;
  padding: 20px;
  border: 1px solid var(--hair);
  background: var(--paper-shadow);
  color: var(--ink);
  font: 400 15px/1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--hair-hard);
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.6 var(--mono);
  resize: vertical;
}

.after { margin-top: 28px; color: var(--muted); font-size: 15px; }

.foot { border-top: 1px solid var(--hair); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 28px; }
.foot p { margin: 0; max-width: 460px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.signature { display: block; flex: none; height: 52px; width: auto; }

[hidden] { display: none !important; }

/* The iris: the lab's eye, very large, set behind the page and running off the right edge. */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  right: calc(50% - 980px);
  width: 1040px;
  height: 1040px;
  transform: translateY(-50%);
  background: url("brand/glyph-iris.svg") center / contain no-repeat;
  opacity: 0.16; /* 0.5 made the text hard to read where the two cross; 0.16 keeps small text at AA */
  pointer-events: none;
}
.bar, main, .foot { position: relative; }
@media (max-width: 1100px) {
  body::before { right: -300px; width: 760px; height: 760px; opacity: 0.12; }
}
@media (max-width: 520px) {
  body::before { top: auto; right: -170px; bottom: -130px; width: 460px; height: 460px; transform: none; }
}

@media (max-width: 520px) {
  main { padding-top: 44px; padding-bottom: 44px; }
  .bar .kicker { letter-spacing: 0.16em; font-size: 12px; }
  .lockup { height: 30px; }
  button { width: 100%; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

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

input[type="password"] { display: block; width: 100%; padding: 14px 16px; border: 1px solid var(--hair-hard); background: #fff; color: var(--ink); font: 400 16px/1.6 var(--mono); }
input[type="password"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
button.quiet { margin-left: 8px; background: transparent; color: var(--ink); }
#problem { color: var(--orange-text); }
@media (max-width: 520px) { button.quiet { margin-left: 0; } }
