/* Curiosa Tools landing page.
   Palette: manila and copper. Type: Instrument Serif (display),
   Fira Sans (text), Fira Mono (small labels).
   Fonts are self-hosted from fonts/ (SIL Open Font License, Latin subset):
   the page makes no third-party requests. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-italic-latin.woff2") format("woff2");
}
/* Fira Sans and Fira Mono ship as static files, one per weight the page uses. */
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fira-sans-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fira-sans-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fira-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fira-mono-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fira-mono-700-latin.woff2") format("woff2");
}

:root {
  --bg: #F9F1E0;          /* manila */
  --sheet: #FFFBF2;       /* card on manila */
  --mist: #F0E6D2;
  --mist-2: #E4D6BC;
  --grid: #F0E7D6;         /* mat grid, every 20 px */
  --grid-major: #E8DCC4;   /* mat grid, every 100 px */
  --hair: #D5C09F;
  --ink: #241C14;
  --ink-2: #6B5B49;
  --dim: #C6B69B;
  --dim-ink: #948470;
  --copper: #B5653A;
  --copper-deep: #9A522B; /* copper for small text, for contrast */
  --copper-2: #D88F62;
  --glow: #F0C3A2;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Fira Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* One shared beat drives every animation on the page. */
  --beat: 4.2s;

  /* The cutting mat. Rulers and grid count CSS pixels (page units), never millimetres:
     x = 0 at the content column's left edge, y = 0 at the top of the page.
     js/rulers.js keeps --ox (the column's left edge, in page px) up to date. */
  --ruler: 18px;           /* ruler thickness; phones get thin tick strips */
  --ox: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--ruler) + 8px); }
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  /* The cutting mat: rulers on the top and left edges (js/rulers.js), and a whisper grid
     every 20 px with a heavier line every 100 px, lined up with the rulers' numbers. */
  padding-top: var(--ruler);
  padding-left: var(--ruler);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: var(--ox) 0;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 420px) { .wrap { padding: 0 16px; } }

/* Small mono label */
.k {
  font: 500 11.5px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink);
}
.wordmark { display: block; flex: none; }
.wordmark img { display: block; width: auto; height: 52px; }
.top nav { display: flex; gap: 22px; }
.top nav a {
  font: 500 12px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}
.top nav a:hover { color: var(--copper-deep); }
.top nav .num { color: var(--copper-deep); }
@media (max-width: 480px) {
  .top nav { gap: 14px; }
  .top nav .num { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
  font: 500 12.5px/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
a.btn:hover { background: var(--mist); }
.btn.solid { background: var(--ink); color: var(--bg); }
a.btn.solid:hover { background: #41362A; }
.btn.copper { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn:disabled { cursor: not-allowed; opacity: .4; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 24px 40px;
  padding: 36px 0 52px;
  border-bottom: 1px solid var(--ink);
}
.hero-field { order: 2; position: relative; }
.hero-copy { order: 1; }
#field { display: block; width: 100%; max-width: 600px; height: auto; margin: 0 auto; overflow: visible; }
.formula {
  font: 400 11.5px/1.55 var(--mono);
  color: var(--ink-2);
  max-width: 46em;
  margin: 10px auto 0;
  text-align: center;
}
.hero h1 {
  font: 400 clamp(52px, 5.6vw, 84px)/.98 var(--serif);
  letter-spacing: -.02em;
  margin: 14px 0 14px;
}
.hero h1 i { color: var(--copper); }
.subline {
  font: italic 400 clamp(22px, 2.3vw, 30px)/1.2 var(--serif);
  color: var(--ink-2);
  margin: 0 0 22px;
}
.lede { font-size: 17.5px; color: var(--ink-2); max-width: 31em; margin: 0 0 28px; }
.spec-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 34px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--hair);
}
.spec-line dt { font: 500 20px/1.3 var(--sans); }
.spec-line dd { margin: 0; font: 12px/1.4 var(--mono); color: var(--ink-2); }
.spec-line dd br { display: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 20px 0 44px; text-align: center; }
  .hero-field { order: 1; }
  .hero-copy { order: 2; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero .ctas { justify-content: center; }
  .spec-line { justify-content: center; }
}
@media (max-width: 480px) {
  .spec-line { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 18px; }
  .spec-line dt { font-size: 18px; }
  .spec-line dd { font-size: 11px; }
  .spec-line dd br { display: inline; }
  .lede { font-size: 16.5px; }
}
@media (max-width: 960px) and (min-width: 600px) {
  #field { max-width: 520px; }
}

/* Hero field (SVG) */
.cell-label { font: 700 18px var(--mono); letter-spacing: .1em; }
.cell-label.dim { fill: #92826E; font-size: 15px; font-weight: 500; }
.cell-label.future { fill: #AA9A82; font-size: 13px; font-weight: 500; }
.nucleus-name { font: 400 20px var(--serif); fill: #F6D3B8; }
.nucleus-sub { font: 500 10px var(--mono); letter-spacing: .24em; fill: #F6D3B8; }

/* The beat: the core swells, the seeds brighten outward from it,
   then the Shapes cell lights and the thread flows to it. */
.core-glow { transform-origin: 0 0; animation: core var(--beat) ease-in-out infinite; }
.seed {
  opacity: .28;
  animation: breathe var(--beat) ease-in-out infinite;
  animation-delay: calc(var(--k, 0) * var(--beat) * .6);
}
.lit { animation: lit var(--beat) ease-in-out infinite; animation-delay: calc(var(--beat) * .42); }
.thread { stroke-dasharray: 2 6; animation: flow var(--beat) linear infinite; }
.is-paused * { animation-play-state: paused !important; }
@keyframes core { 0%, 100% { transform: scale(.9); opacity: .6; } 30% { transform: scale(1.06); opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: .28; } 38% { opacity: 1; } }
@keyframes lit { 0%, 100% { stroke-opacity: .35; } 50% { stroke-opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -48; } }

/* Sections, drawing-sheet style */
.sheet-section { padding: 64px 0; border-bottom: 1px solid var(--ink); }
.sh { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; margin-bottom: 32px; }
.sh .k { padding-top: 14px; color: var(--copper-deep); }
.sh h2 {
  font: 400 clamp(36px, 4.6vw, 58px)/1.02 var(--serif);
  letter-spacing: -.015em;
  margin: 0;
}
.sh p:not(.k) { color: var(--ink-2); margin: 12px 0 0; max-width: 38em; }
@media (max-width: 780px) {
  .sheet-section { padding: 48px 0; }
  .sh { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 24px; }
  .sh .k { padding-top: 0; }
}

/* Products: spec-sheet rows */
.row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 300px;
  border: 1px solid var(--ink);
  background: var(--sheet);
  margin-bottom: 18px;
}
.row > * { padding: 22px; min-width: 0; }
.row > * + * { border-left: 1px solid var(--hair); }
.row h3 { font: 400 34px/1.05 var(--serif); letter-spacing: -.01em; margin: 14px 0 6px; }
.row-text { color: var(--ink-2); font-size: 15px; margin: 14px 0 0; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid var(--copper);
  color: var(--copper-deep);
  font: 500 11px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--copper);
  animation: lit-dot var(--beat) ease-in-out infinite;
  animation-delay: calc(var(--beat) * .42);
}
@keyframes lit-dot { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.status.dim { border-color: var(--dim); border-style: dashed; color: var(--ink-2); }
.status.dim::before { background: var(--dim); animation: none; }

.grid14 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: -6px; }
.grid14 figure {
  margin: 0;
  padding: 6px 2px 8px;
  border-right: 1px dashed var(--mist-2);
  border-bottom: 1px dashed var(--mist-2);
  text-align: center;
}
.grid14 img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.grid14 figcaption {
  font: 400 10px/1.3 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.grid-note { font: 400 11px/1.5 var(--mono); color: var(--ink-2); margin: 16px 0 0; }

table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 7px 0; border-bottom: 1px dashed var(--hair); vertical-align: top; text-align: left; }
th {
  font: 400 11.5px/1.6 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-2);
  width: 44%;
  padding-right: 10px;
}

.row.dim {
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(36, 28, 20, .035) 7px 8px), var(--sheet);
  border: 1px dashed var(--dim);
  color: var(--ink-2);
}
.row.dim > * + * { border-left: 1px dashed var(--mist-2); }
.row.dim h3 { color: #92826E; }
.row.dim .row-text { margin: 0; }
.row.dim .row-spec { align-self: center; }

@media (max-width: 1040px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row > * + * { border-left: 0; border-top: 1px solid var(--hair); }
  .row.dim > * + * { border-left: 0; border-top: 1px dashed var(--mist-2); }
}
@media (max-width: 640px) {
  .grid14 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .row > * { padding: 18px; }
}

/* Proof */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  border: 1px solid var(--ink);
  background: var(--sheet);
}
.proof-cell { margin: 0; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.proof-cell + .proof-cell { border-left: 1px solid var(--hair); }
.proof-cell svg { display: block; width: 100%; height: auto; }
.callout text { font: 500 13px var(--mono); fill: var(--copper-deep); }
.dim-text text { font: 400 7.5px var(--mono); fill: var(--ink-2); }
.cap { font: 400 12px/1.55 var(--mono); color: var(--ink-2); margin-top: 14px; }

.measures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--ink);
  border-top: 0;
  background: var(--sheet);
}
.measures div { padding: 14px 18px; min-width: 0; }
.measures div + div { border-left: 1px solid var(--hair); }
.measures dt { font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.measures dd { margin: 4px 0 0; font: 500 15px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.measures div:last-child dd { color: var(--copper-deep); }
.measures-note { font: 400 11.5px/1.5 var(--mono); color: var(--ink-2); margin: 12px 0 0; }

@media (max-width: 860px) {
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof-cell + .proof-cell { border-left: 0; border-top: 1px solid var(--hair); }
  .measures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .measures div:nth-child(3) { border-left: 0; }
  .measures div:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 420px) {
  .proof-cell { padding: 16px; }
  .measures div { padding: 12px 14px; }
  .measures dd { font-size: 13.5px; }
}

/* Try the engine: the free generator (js/generator.js) */
.rig {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border: 1px solid var(--ink);
  background: var(--sheet);
}
.view {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  background:
    linear-gradient(var(--mist) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, var(--mist) 1px, transparent 1px) 0 0 / 16px 16px,
    #fff;
}
.view img { width: 80%; max-width: 430px; height: auto; }
.view.is-live img { display: none; }
.view canvas {
  position: absolute;
  left: 0; top: 36px;
  width: 100%;
  height: calc(100% - 72px);
  cursor: grab;
  touch-action: none;
}
.view canvas:active { cursor: grabbing; }
.view.is-stale canvas, .is-building .view canvas { opacity: .3; }
.view-top { position: absolute; left: 14px; top: 12px; }
/* Over the view while a long build runs: about how long it takes (the status line says it too). */
.view-busy {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--sheet);
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--copper-deep);
  white-space: nowrap;
}
.view-busy[hidden] { display: none; }
.view-bottom { position: absolute; left: 14px; bottom: 12px; }
/* The view's own switches (view only: the file never changes). */
.view-tools { position: absolute; right: 12px; bottom: 8px; display: flex; align-items: center; gap: 6px; }
.view-tools[hidden] { display: none; }
.view-tools .k { margin: 0 2px 0 0; }
.view-tools button, .switch {
  font: 500 10.5px/1.2 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 8px;
  border: 1px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
  cursor: pointer;
}
.view-tools button[aria-pressed="true"], .switch[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.controls { padding: 24px; border-left: 1px solid var(--hair); min-width: 0; }
.controls > .k { margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ink); margin: 0 0 24px; }
.seg button {
  font: 500 12px/1.2 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px 4px;
  border: 0;
  border-left: 1px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
}
.seg button:disabled { cursor: not-allowed; }
.seg button.locked { color: var(--ink-2); font-weight: 400; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.param { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 14px; margin-bottom: 20px; }
.param .k { grid-column: 1 / -1; }
.param .seg { grid-column: 1 / -1; margin: 0; }
.param[hidden] { display: none; }
.param-note { grid-column: 1 / -1; margin: 0; font: 400 11px/1.45 var(--mono); color: var(--ink-2); }
.param-switch { align-items: start; }
.param-switch .switch { grid-column: 1 / -1; justify-self: start; }
/* A slider drawn as a ruler: ticks, a copper fill up to the value (--fill) and a copper pointer. */
.ruler {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(var(--copper), var(--copper)) left bottom / var(--fill, 0%) 3px no-repeat,
    repeating-linear-gradient(90deg, var(--hair) 0 1px, transparent 1px 10%) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--hair) 0 1px, transparent 1px 2%) bottom / 100% 4px no-repeat;
  cursor: pointer;
}
.ruler::-webkit-slider-runnable-track { height: 22px; background: none; }
.ruler::-moz-range-track { height: 22px; background: none; }
.ruler::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px; height: 9px;
  margin-top: 13px;
  border: 0;
  background: var(--copper);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.ruler::-moz-range-thumb {
  width: 12px; height: 9px;
  border: 0;
  border-radius: 0;
  background: var(--copper);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateY(6px);
}
.step { display: flex; border: 1px solid var(--ink); background: var(--sheet); }
.step input, .step span { font: 500 14px/1.4 var(--mono); padding: 6px 10px; }
.step input {
  width: 7.5ch;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.step span { border-left: 1px solid var(--ink); }
.readout { margin-bottom: 14px; }
.gen-status { font: 400 11.5px/1.5 var(--mono); color: var(--ink-2); margin: 0 0 16px; min-height: 1.5em; }
.is-building .gen-status { color: var(--copper-deep); }
.rig-note { font: 400 11.5px/1.5 var(--mono); color: var(--ink-2); margin: 14px 0 0; }
.gen-tip { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--hair); background: var(--bg); }
.gen-tip[hidden] { display: none; }
.gen-tip .k { margin: 0 0 6px; color: var(--copper-deep); }
.gen-tip p:last-child { margin: 0; font-size: 13.5px; line-height: 1.5; }
.readout td { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

@media (max-width: 880px) {
  .rig { grid-template-columns: minmax(0, 1fr); }
  .controls { border-left: 0; border-top: 1px solid var(--hair); }
  .view { min-height: 280px; }
}
@media (max-width: 600px) {
  /* The view's switches get their own line above the caption. */
  .view { padding-bottom: 72px; }
  .view canvas { height: calc(100% - 100px); }
  .view-tools { left: 14px; right: auto; bottom: 36px; }
}
@media (max-width: 420px) {
  .controls { padding: 18px; }
  .seg button { font-size: 10.5px; letter-spacing: 0; }
}

/* Footer: title block */
.title-block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink);
  border-top: 0;
  background: var(--sheet);
  margin-bottom: 40px;
  font-size: 13.5px;
}
.title-block div { padding: 14px 16px; min-width: 0; }
.title-block div + div { border-left: 1px solid var(--hair); }
.title-block .k { display: block; margin-bottom: 2px; }
@media (max-width: 780px) {
  .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-block div:nth-child(3) { border-left: 0; }
  .title-block div:nth-child(n+3) { border-top: 1px solid var(--hair); }
}

/* "Get notified": the optional launch list (js/notify.js, functions/api/notify.js) */
.notify-form { max-width: 560px; margin-left: 220px; }
.notify-form .k { display: block; margin-bottom: 8px; }
.notify-row { display: flex; border: 1px solid var(--ink); background: var(--sheet); }
.notify-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 16px/1.2 var(--sans);
}
.notify-row .btn { border: 0; border-left: 1px solid var(--ink); flex: none; cursor: pointer; }
.notify-consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.notify-consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--copper); }
/* The trap field people never see; bots fill it in. */
.notify-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notify-status { font: 400 12px/1.55 var(--mono); color: var(--ink-2); margin: 12px 0 0; min-height: 1.55em; overflow-wrap: anywhere; }
.notify-form.is-done .notify-fields { display: none; }
.notify-form.is-done .notify-status { margin: 0; color: var(--ink); }
@media (max-width: 780px) {
  .notify-form { margin-left: 0; }
}
@media (max-width: 420px) {
  .notify-row { flex-direction: column; }
  .notify-row .btn { border-left: 0; border-top: 1px solid var(--ink); justify-content: center; }
}

/* The privacy page, and the small pages the site's functions answer with */
.privacy-body { max-width: 40em; margin-left: 220px; }
.privacy-body h3 { font: 400 26px/1.2 var(--serif); margin: 32px 0 8px; }
.privacy-body h3:first-child { margin-top: 0; }
.privacy-body p { color: var(--ink-2); margin: 0 0 12px; }
.reply > * { max-width: 40em; }
.reply h1 { font: 400 clamp(36px, 5vw, 52px)/1.05 var(--serif); margin: 0 0 16px; }
.reply p { color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 780px) {
  .privacy-body { margin-left: 0; }
}

/* Rulers, drawn by js/rulers.js on two canvases fixed to the top and left edges.
   The paint is read from these properties. */
.mat-rulers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  --r-bg: var(--sheet);
  --r-edge: #DCC9AA;
  --r-tick: #AC9C84;
  --r-num: var(--dim-ink);
  --r-mark: rgba(181, 101, 58, .6);
  --r-band: rgba(181, 101, 58, .055);
  --r-line: 1.5;
  --r-chip-bg: rgba(181, 101, 58, .14);
  --r-chip-fg: var(--copper-deep);
}
.mat-rulers canvas { position: absolute; display: block; }
.mat-rulers .r-top { left: var(--ruler); top: 0; width: calc(100% - var(--ruler)); height: var(--ruler); }
.mat-rulers .r-left { left: 0; top: var(--ruler); width: var(--ruler); height: calc(100% - var(--ruler)); }
.mat-rulers .r-corner {
  position: absolute;
  left: 0; top: 0;
  width: var(--ruler); height: var(--ruler);
  display: grid;
  place-items: center;
  font: 500 7.5px/1 var(--mono);
  letter-spacing: .02em;
  text-transform: uppercase;
  background: var(--r-bg);
  color: var(--r-num);
  box-shadow: inset -1px -1px 0 var(--r-edge);
}
/* Phones: the rulers shrink to thin tick strips with no numbers; the left strip sits in the gutter. */
@media (max-width: 600px) {
  :root { --ruler: 8px; }
  body { padding-left: 0; }
  .mat-rulers .r-corner { font-size: 0; }
}

/* Crop marks: short hairlines just outside each framed block's corners. */
.row, .proof, .measures, .rig, .title-block { position: relative; }
.row::after, .rig::after, .proof::after, .measures::after, .title-block::after {
  content: "";
  position: absolute;
  inset: -12px;
  pointer-events: none;
  --l: 7px;
  background:
    linear-gradient(var(--dim-ink), var(--dim-ink)) left 0 top 11px / var(--l) 1px no-repeat,
    linear-gradient(var(--dim-ink), var(--dim-ink)) left 11px top 0 / 1px var(--l) no-repeat,
    linear-gradient(var(--dim-ink), var(--dim-ink)) right 0 top 11px / var(--l) 1px no-repeat,
    linear-gradient(var(--dim-ink), var(--dim-ink)) right 11px top 0 / 1px var(--l) no-repeat,
    linear-gradient(var(--dim-ink), var(--dim-ink)) left 0 bottom 11px / var(--l) 1px no-repeat,
    linear-gradient(var(--dim-ink), var(--dim-ink)) left 11px bottom 0 / 1px var(--l) no-repeat,
    linear-gradient(var(--dim-ink), var(--dim-ink)) right 0 bottom 11px / var(--l) 1px no-repeat,
    linear-gradient(var(--dim-ink), var(--dim-ink)) right 11px bottom 0 / 1px var(--l) no-repeat;
}
/* The proof figure and its measures read as one block: marks on its outer corners only. */
.proof::after { inset: -12px -12px 0; background-size: var(--l) 1px, 1px var(--l), var(--l) 1px, 1px var(--l), 0 0, 0 0, 0 0, 0 0; }
.measures::after { inset: 0 -12px -12px; background-size: 0 0, 0 0, 0 0, 0 0, var(--l) 1px, 1px var(--l), var(--l) 1px, 1px var(--l); }
/* The footer hangs off the last section's rule: marks on its bottom corners only. */
.title-block::after { inset: 0 -12px -12px; background-size: 0 0, 0 0, 0 0, 0 0, var(--l) 1px, 1px var(--l), var(--l) 1px, 1px var(--l); }

/* Heading dimension lines: the real rendered width of the heading's longest line,
   in page px, drawn like the flat pattern's dimension lines. js/rulers.js measures it. */
.dimline {
  display: block;
  position: relative;
  height: 13px;
  margin: 0 0 8px;
  color: var(--dim-ink);
  pointer-events: none;
}
.dimline::before {          /* the line, with end ticks */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 6px;
  height: 7px;
  margin-top: -3px;
  background:
    linear-gradient(currentColor, currentColor) left 0 top 0 / 1px 7px no-repeat,
    linear-gradient(currentColor, currentColor) right 0 top 0 / 1px 7px no-repeat,
    linear-gradient(currentColor, currentColor) left 0 top 3px / 100% 1px no-repeat;
  opacity: .7;
}
.dimline b {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  padding: 0 6px;
  font: 500 10px/13px var(--mono);
  letter-spacing: .04em;
  color: var(--ink-2);
  background: var(--bg);
  white-space: nowrap;
}
.dimline b::after { content: " px"; color: var(--dim-ink); }

/* Motion off for visitors who ask for it. The seeds stay fully drawn. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .seed { opacity: .85; }
  .mat-rulers * { transition: none !important; }
}
