/* ============================================================
   SwiftLife — the placeholder's look (index.php and contact.php)
   Warm paper with a faint drafting-dot grid, the SL mark drawn as
   a measured drawing, a monospaced dateline, Emilia's line on a
   small console, and the actions as tiles. Its own dark palette.
   Delete with the rest of placeholder/ when the new site is up.
   ============================================================ */

:root {
  --bg: #fffdf8; --card: #ffffff; --cream: #fffbf2;
  --ink: #1d1b18; --ink-2: #5b554c; --ink-3: #6f685d;
  --rule: #ebe4d8; --rule-2: #dcd3c3;
  --link: #0b62b8; --link-2: #084a8c;
  --warm: #8a4a1c; --warm-2: #6e3a15; --on-warm: #ffffff;
  --mark: #6d6e70;
  --dot: rgba(29, 27, 24, .11);
  --line: rgba(11, 98, 184, .48); --line-soft: rgba(11, 98, 184, .22); --note: #0b62b8;
  --glow: transparent;
  --console: #fffbf2; --console-ink: #3b362f; --caret: #0b62b8; --phosphor: none;
  --led-ring: rgba(11, 98, 184, .14);
  --pay-tint: rgba(11, 98, 184, .08); --con-tint: rgba(138, 74, 28, .09);
  --mail: #2c6e5a; --mail-2: #1f5242; --mail-tint: rgba(44, 110, 90, .09);
  --time: #6a4c93; --time-2: #4f3772; --time-tint: rgba(106, 76, 147, .09);
  --alert: #a3271c; --alert-2: #7c1b12; --alert-tint: rgba(163, 39, 28, .08);
  --screen: #0b6f80; --screen-2: #085462; --screen-tint: rgba(11, 111, 128, .09);
  --fan: #a8246b; --fan-2: #7f1a50; --fan-tint: rgba(168, 36, 107, .08);
  --sky-night: rgba(60, 80, 170, .10); --sky-dawn: rgba(255, 140, 120, .22); --sky-day: rgba(255, 214, 140, .22);
  --sky-golden: rgba(255, 160, 70, .28); --sky-dusk: rgba(140, 90, 200, .18);
  --shadow: 0 1px 0 rgba(29, 27, 24, .03), 0 14px 32px -22px rgba(29, 27, 24, .35);
  --shadow-up: 0 1px 0 rgba(29, 27, 24, .03), 0 24px 40px -24px rgba(29, 27, 24, .45);
  --backdrop: rgba(29, 27, 24, .42);
  --focus: #0b62b8;
  --on-link: #ffffff;
  --err-bg: #fff3ef; --err-line: #f0c4b8; --err-ink: #8a2e17;
  --select: rgba(11, 98, 184, .18);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
/* Dark: the system's choice unless the visitor picked light with the
   toggle (data-theme on <html>, set by the script in the head), or the
   visitor's own pick of dark. The two blocks hold the same values. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12110f; --card: #1a1815; --cream: #0c0b0a;
    --ink: #f4eee4; --ink-2: #c9c0b2; --ink-3: #a59c8e;
    --rule: #2a2621; --rule-2: #3b352e;
    --link: #8cc2ff; --link-2: #b8d9ff;
    --warm: #f2a65a; --warm-2: #f7c08a; --on-warm: #1a1208;
    --mark: #d6d0c5;
    --dot: rgba(255, 232, 200, .075);
    --line: rgba(242, 166, 90, .58); --line-soft: rgba(242, 166, 90, .2); --note: #f2b277;
    --glow: rgba(242, 166, 90, .12);
    --console: #0b0a09; --console-ink: #f4c58f; --caret: #f2a65a; --phosphor: 0 0 14px rgba(242, 166, 90, .3);
    --led-ring: rgba(242, 166, 90, .18);
    --pay-tint: rgba(140, 194, 255, .1); --con-tint: rgba(242, 166, 90, .12);
    --mail: #86cfb4; --mail-2: #aee0cc; --mail-tint: rgba(134, 207, 180, .11);
    --time: #c3b1ee; --time-2: #dccffa; --time-tint: rgba(195, 177, 238, .11);
    --alert: #ff9e8a; --alert-2: #ffc4b8; --alert-tint: rgba(255, 158, 138, .11);
    --screen: #7fd3e0; --screen-2: #aee6ee; --screen-tint: rgba(127, 211, 224, .11);
    --fan: #f5a3cf; --fan-2: #fac6e1; --fan-tint: rgba(245, 163, 207, .11);
    --sky-night: rgba(110, 140, 255, .09); --sky-dawn: rgba(255, 140, 120, .12); --sky-day: rgba(255, 220, 160, .08);
    --sky-golden: rgba(255, 160, 70, .14); --sky-dusk: rgba(170, 120, 255, .12);
    --shadow: inset 0 1px 0 rgba(255, 240, 220, .04), 0 18px 40px -24px rgba(0, 0, 0, .85);
    --shadow-up: inset 0 1px 0 rgba(255, 240, 220, .06), 0 26px 46px -24px rgba(0, 0, 0, .95);
    --backdrop: rgba(6, 5, 4, .66);
    --focus: #f2b277;
    --on-link: #0b1726;
    --err-bg: #2a1410; --err-line: #5a2a1e; --err-ink: #ffb4a0;
    --select: rgba(242, 166, 90, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12110f; --card: #1a1815; --cream: #0c0b0a;
    --ink: #f4eee4; --ink-2: #c9c0b2; --ink-3: #a59c8e;
    --rule: #2a2621; --rule-2: #3b352e;
    --link: #8cc2ff; --link-2: #b8d9ff;
    --warm: #f2a65a; --warm-2: #f7c08a; --on-warm: #1a1208;
    --mark: #d6d0c5;
    --dot: rgba(255, 232, 200, .075);
    --line: rgba(242, 166, 90, .58); --line-soft: rgba(242, 166, 90, .2); --note: #f2b277;
    --glow: rgba(242, 166, 90, .12);
    --console: #0b0a09; --console-ink: #f4c58f; --caret: #f2a65a; --phosphor: 0 0 14px rgba(242, 166, 90, .3);
    --led-ring: rgba(242, 166, 90, .18);
    --pay-tint: rgba(140, 194, 255, .1); --con-tint: rgba(242, 166, 90, .12);
    --mail: #86cfb4; --mail-2: #aee0cc; --mail-tint: rgba(134, 207, 180, .11);
    --time: #c3b1ee; --time-2: #dccffa; --time-tint: rgba(195, 177, 238, .11);
    --alert: #ff9e8a; --alert-2: #ffc4b8; --alert-tint: rgba(255, 158, 138, .11);
    --screen: #7fd3e0; --screen-2: #aee6ee; --screen-tint: rgba(127, 211, 224, .11);
    --fan: #f5a3cf; --fan-2: #fac6e1; --fan-tint: rgba(245, 163, 207, .11);
    --sky-night: rgba(110, 140, 255, .09); --sky-dawn: rgba(255, 140, 120, .12); --sky-day: rgba(255, 220, 160, .08);
    --sky-golden: rgba(255, 160, 70, .14); --sky-dusk: rgba(170, 120, 255, .12);
    --shadow: inset 0 1px 0 rgba(255, 240, 220, .04), 0 18px 40px -24px rgba(0, 0, 0, .85);
    --shadow-up: inset 0 1px 0 rgba(255, 240, 220, .06), 0 26px 46px -24px rgba(0, 0, 0, .95);
    --backdrop: rgba(6, 5, 4, .66);
    --focus: #f2b277;
    --on-link: #0b1726;
    --err-bg: #2a1410; --err-line: #5a2a1e; --err-ink: #ffb4a0;
    --select: rgba(242, 166, 90, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--select); }

/* The drafting table: a faint dot grid, strongest behind the drawing. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.5px);
  background-size: 22px 22px; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 66% 40%, #000 25%, transparent 88%);
  mask-image: radial-gradient(ellipse 90% 80% at 66% 40%, #000 25%, transparent 88%);
}

.sheet {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  max-width: 1240px; margin: 0 auto;
  padding: 20px 16px 36px;
}
/* Crop marks at the sheet's corners. */
.sheet::before {
  --c: var(--rule-2);
  content: ""; position: absolute; inset: 14px; pointer-events: none; display: none;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 16px 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px 16px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 16px 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 16px,
    linear-gradient(var(--c), var(--c)) 0 100% / 16px 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px 16px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 16px 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 16px;
  background-repeat: no-repeat;
}

.reg {
  font-family: var(--sans); font-size: .5em; font-weight: 500; font-style: normal;
  line-height: 0; vertical-align: baseline; position: relative; top: -.78em;
  margin-left: .04em; letter-spacing: 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---- top line ---- */
/* Phone: the mark and the toggle on one row, the date under them.
   Wider: mark ... date, toggle. */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px; margin-right: auto;
  font: 650 1.1875rem/1 var(--sans); letter-spacing: -.012em; color: var(--ink);
}
.top .status { order: 3; flex-basis: 100%; }
.theme { order: 2; }
@media (min-width: 560px) {
  .top .status { order: 1; flex-basis: auto; }
}

/* ---- light / dark toggle ---- */
.theme {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; margin: -6px 0; padding: 0;
  border: 1px solid var(--rule); border-radius: 50%;
  background: var(--card); color: var(--ink-2); box-shadow: var(--shadow);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, border-color .2s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.theme[hidden] { display: none; }
.theme:hover { color: var(--ink); border-color: var(--rule-2); }
.theme svg { width: 20px; height: 20px; }
.theme .i-sun, .theme[aria-pressed="true"] .i-moon { display: none; }
.theme[aria-pressed="true"] .i-sun { display: block; color: var(--warm); }
@media (prefers-reduced-motion: no-preference) {
  .theme:hover { transform: rotate(-14deg); }
  .theme:active { transform: rotate(-14deg) scale(.92); }
}
.brand svg { width: 37px; height: 22px; flex: none; color: var(--mark); }
.status {
  margin: 0; display: inline-flex; align-items: center; gap: .6em;
  font: 500 .75rem/1.3 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3);
}
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--caret); box-shadow: 0 0 0 3px var(--led-ring); }
.status .sep { opacity: .55; }

/* ---- stage ---- */
.stage {
  flex: 1; display: grid; grid-template-areas: "art" "copy" "more";
  align-content: center; gap: 18px; padding: 22px 0 4px;
}
.copy { grid-area: copy; min-width: 0; container-type: inline-size; }
.art { grid-area: art; position: relative; isolation: isolate; margin: 0; width: 100%; }
.art::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.plan { display: block; width: 100%; height: auto; --sw: 1.5; }

.title {
  margin: 0;
  font-family: var(--serif); font-weight: 360;
  font-size: clamp(2.375rem, 1.5rem + 3.2vw, 4rem);
  line-height: 1.03; letter-spacing: -.028em;
  text-wrap: balance;
}
@supports (font-size: 1cqi) { .title { font-size: clamp(2.375rem, 12cqi, 4.25rem); } }
.title em { font-style: italic; font-weight: 340; color: var(--warm); }

.lede { margin: 18px 0 0; max-width: 36ch; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); }

/* Emilia, on the console */
.emilia {
  margin: 24px 0 0; max-width: 32rem;
  display: flex; align-items: baseline; gap: .7em;
  padding: 13px 18px 13px 15px;
  border: 1px solid var(--rule); border-radius: 12px;
  background: var(--console); color: var(--console-ink);
  font: 400 .9375rem/1.6 var(--mono);
  text-shadow: var(--phosphor);
}
.prompt { flex: none; color: var(--caret); font-weight: 500; }
.line { min-width: 0; overflow-wrap: anywhere; }
.sig { white-space: nowrap; font-family: var(--serif); font-size: 1.0625rem; color: var(--ink-2); text-shadow: none; transition: opacity .7s ease; }
.sig em { font-style: italic; }
.will-type .say, .will-type .sig { opacity: 0; animation: show 0s 4s forwards; }
.typing .sig { opacity: 0; }
.typed .sig { opacity: 1; }
.shown { border-right: .55em solid var(--caret); margin-right: -.55em; }
.rest { color: transparent; text-shadow: none; }
.typed .shown { animation: blink 1s step-end 2.5 forwards; }

/* ---- actions ---- */
.actions { margin: 26px 0 0; display: grid; gap: 12px; max-width: 36rem; }
.tile {
  --accent: var(--link); --accent-2: var(--link-2); --tint: var(--pay-tint);
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px;
  min-height: 76px; padding: 14px 16px;
  background: var(--card); color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s ease, box-shadow .25s ease;
}
.tile.connect { --accent: var(--warm); --accent-2: var(--warm-2); --tint: var(--con-tint); }
.tile.contact { --accent: var(--mail); --accent-2: var(--mail-2); --tint: var(--mail-tint); }
.tile.scams { --accent: var(--alert); --accent-2: var(--alert-2); --tint: var(--alert-tint); }
.tile.clock { --accent: var(--time); --accent-2: var(--time-2); --tint: var(--time-tint); }
/* The boxes in the band under the drawing (.more). "Need a label?" keeps the blue. */
.tile.invite { --accent: var(--time); --accent-2: var(--time-2); --tint: var(--time-tint); }
.tile.tvs { --accent: var(--screen); --accent-2: var(--screen-2); --tint: var(--screen-tint); }
.tile.trivia { --accent: var(--warm); --accent-2: var(--warm-2); --tint: var(--con-tint); }
.tile.perks { --accent: var(--mail); --accent-2: var(--mail-2); --tint: var(--mail-tint); }
.tile.follow { --accent: var(--fan); --accent-2: var(--fan-2); --tint: var(--fan-tint); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.ico svg { width: 24px; height: 24px; }
.t-title { display: block; font: 600 1.0625rem/1.25 var(--sans); letter-spacing: -.005em; color: var(--accent); transition: color .2s ease; }
.t-note { display: block; margin-top: 3px; font-size: .8125rem; line-height: 1.4; color: var(--ink-2); }
.go { width: 20px; height: 20px; color: var(--ink-3); transition: transform .25s cubic-bezier(.2, .7, .2, 1), color .2s ease; }
.tile:hover { border-color: var(--accent); box-shadow: var(--shadow-up); transform: translateY(-2px); }
.tile:hover .t-title { color: var(--accent-2); }
.tile:hover .go { color: var(--accent); transform: translateX(3px); }
.tile[target="_blank"]:hover .go { transform: translate(2px, -2px); }
.tile:active { transform: translateY(0); }
.tile:focus-visible { outline-offset: 3px; }

/* A box that isn't open yet (.soon): not a link, drawn in dashes like
   a construction line, with "Soon" where the arrow would be. To open
   one, make it an <a href> with a .go arrow and take .soon off. */
.tile.soon {
  --accent: var(--ink-2); --accent-2: var(--ink-2); --tint: transparent;
  background: transparent; border-style: dashed; border-color: var(--rule-2); box-shadow: none; cursor: default;
}
.tile.soon:hover, .tile.soon:active { border-color: var(--rule-2); box-shadow: none; transform: none; }
.tile.soon .ico { border: 1px dashed var(--rule-2); }
.tile.soon .t-note { color: var(--ink-3); }
.t-soon {
  padding: 6px 9px; border: 1px solid var(--rule-2); border-radius: 999px; white-space: nowrap;
  font: 500 .6875rem/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3);
}

/* ---- more boxes: a band under the drawing, the sheet's full width
   on a wide screen. Other sites first, then what isn't open yet. ---- */
.more { grid-area: more; min-width: 0; max-width: 36rem; }
.more-h {
  display: flex; align-items: center; gap: 14px; margin: 10px 0 14px;
  font: 500 .75rem/1.3 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3);
}
.more-h::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.more-grid { display: grid; gap: 12px; }

/* ---- alive (home page): the sky, the pulse line, sleep ----
   ph_sky() and ph_pulse() print them; pulse.js keeps them true. */
@property --sky-c { syntax: "<color>"; inherits: false; initial-value: transparent; }
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  --sky-x: 50%; --sky-y: -25%; --sky-c: var(--sky-day);
  background: radial-gradient(ellipse 85% 75% at var(--sky-x) var(--sky-y), var(--sky-c), transparent 72%);
}
.sky[data-sky="night"] { --sky-c: var(--sky-night); }
.sky[data-sky="dawn"] { --sky-c: var(--sky-dawn); }
.sky[data-sky="golden"] { --sky-c: var(--sky-golden); }
.sky[data-sky="dusk"] { --sky-c: var(--sky-dusk); }
.pulse {
  list-style: none; margin: 14px 0 0; padding: 0; max-width: 36rem;
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  font: 500 .6875rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.pulse li { display: inline-flex; align-items: center; gap: .6em; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }
.pulse li[hidden] { display: none; }
.pulse .heart { color: var(--alert); }
.sl-asleep .pulse .led { background: var(--ink-3); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .sky { transition: --sky-c 6s ease, --sky-x 6s ease; }
  html:not(.sl-asleep) .pulse .led { animation: ping 2.4s ease-out infinite; }
  .sl-asleep .plan { animation: breathe 7s ease-in-out infinite; }
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--led-ring), 0 0 0 0 var(--line-soft); } 70% { box-shadow: 0 0 0 3px var(--led-ring), 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 3px var(--led-ring), 0 0 0 9px transparent; } }
@keyframes breathe { 50% { opacity: .5; } }
/* Its birthday (Jan 19, ph_age()): the pill and the drawing in the warm ink. */
.pulse.bday .p-age { border-color: var(--warm); color: var(--warm); background: var(--con-tint); }
.pulse .p-age .reg { top: -.5em; }
body:has(.pulse.bday) .ink > * { fill: var(--warm); stroke: var(--warm); }
@media (prefers-reduced-motion: no-preference) {
  body:has(.pulse.bday) .plan { animation: bday 2.6s ease-in-out infinite; }
}
@keyframes bday { 50% { transform: translateY(-6px) rotate(-1deg); } }

/* ---- the drawing ---- */
.guides path { fill: none; stroke: var(--line-soft); stroke-width: var(--sw); }
.guides .dash { stroke-dasharray: 2 5; }
.guides .axis { stroke-dasharray: 14 4 2 4; }
.con path { fill: none; stroke: var(--line); stroke-width: var(--sw); }
.dims path { fill: none; stroke: var(--line); stroke-width: var(--sw); }
.dims text { font: 500 11px/1 var(--mono); letter-spacing: .04em; fill: var(--note); }
.ink > * { fill: var(--mark); stroke: var(--mark); stroke-width: 1; }
.ctr { fill: none; stroke: var(--bg); stroke-width: 1.5; }
.dims { display: none; }

/* ---- the drawing, live under the pointer (placeholder.js) ----
   Hovering (or a finger on it) turns on .live: a CAD crosshair follows
   the pointer with its X/Y from the mark's top-left corner, snapping to
   the arc centres and the dots; what it snaps to lights up; grips show
   at the centres; the construction lines run dashed; the sheet tilts a
   little toward the pointer. A click or tap draws it all again. */
.art { cursor: crosshair; touch-action: pan-y; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.plan { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.art.live .plan { transition-duration: .15s; }
.grips rect { fill: var(--bg); stroke: var(--note); stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .25s ease; }
.art.live .grips rect { opacity: 1; }
.cad { opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.art.live .cad { opacity: 1; }
.cad line { stroke: var(--note); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; opacity: .75; }
.cad-snap { fill: none; stroke: var(--warm); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .15s ease; }
.cad.snapped .cad-snap { opacity: 1; }
.cad-read {
  font: 500 11px/1 var(--mono); letter-spacing: .04em; fill: var(--note);
  paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round;
}
.cad.snapped .cad-read { fill: var(--warm); }
.con path { transition: stroke .2s ease, stroke-width .2s ease; }
.con path.hot { stroke: var(--warm); stroke-width: 2.25; }
.ink circle { transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ink circle.hot { transform: scale(1.2); }
@media (max-width: 599px) {
  .cad-read { font-size: 17px; stroke-width: 5px; }
}

/* ---- leaving notice ---- */
.leave {
  width: min(27rem, calc(100vw - 32px)); max-width: none; padding: 0;
  border: 1px solid var(--rule); border-radius: 16px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
}
.leave::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.leave-in { padding: 24px 22px 20px; }
.leave h2 { margin: 0 0 10px; font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.015em; }
.leave p { margin: 0 0 22px; line-height: 1.55; color: var(--ink-2); }
.leave strong { color: var(--ink); font-weight: 600; }
.leave-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.btn {
  min-height: 44px; padding: 0 18px; border-radius: 11px; cursor: pointer;
  font: 600 .9375rem/1 var(--sans);
  border: 1px solid var(--rule-2); background: transparent; color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--cream); }
.btn-go { background: var(--warm); border-color: var(--warm); color: var(--on-warm); }
.btn-go:hover { background: var(--warm-2); border-color: var(--warm-2); }

/* ---- larger screens ---- */
@media (min-width: 560px) {
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: start; row-gap: 22px; min-height: 152px; padding: 18px; }
  .ico { grid-column: 1; grid-row: 1; }
  .go { grid-column: 2; grid-row: 1; margin-top: 2px; }
  .txt { grid-column: 1 / -1; grid-row: 2; align-self: end; }
  .t-soon { grid-column: 2; grid-row: 1; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  /* Contact, the scam search, then the clock, each run the full width under the two, on one line. */
  .tile.contact, .tile.scams, .tile.clock { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: none; align-items: center; row-gap: 0; min-height: 0; padding: 14px 18px; }
  .tile.contact .ico, .tile.contact .go, .tile.contact .txt,
  .tile.scams .ico, .tile.scams .go, .tile.scams .txt,
  .tile.clock .ico, .tile.clock .go, .tile.clock .txt { grid-column: auto; grid-row: auto; align-self: center; margin-top: 0; }
}
@media (min-width: 600px) {
  .dims { display: inline; }
  .plan { --sw: 1; }
}
@media (min-width: 640px) {
  .sheet { padding: 36px 44px 48px; }
  .sheet::before { display: block; }
  .stage { gap: 26px; padding-top: 36px; }
  .art { max-width: 520px; }
}
@media (min-width: 960px) {
  .stage { grid-template-areas: "copy art" "more more"; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 48px 72px; padding: 24px 0 16px; }
  .more { max-width: none; }
  .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .art { max-width: 600px; justify-self: end; }
  .lede { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .sheet { padding: 44px 64px 56px; }
}

/* ---- motion, only when welcome ---- */
@keyframes show { to { opacity: 1; } }
@keyframes blink { 50% { border-right-color: transparent; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ink { to { fill-opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
  .guides { animation: fade 1s ease .05s both; }
  .con path { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: draw 1.5s cubic-bezier(.55, .1, .25, 1) var(--d, 0s) forwards; }
  .con .tick { stroke-dasharray: none; stroke-dashoffset: 0; animation: fade .6s ease .7s both; }
  .ink > * {
    stroke-dasharray: var(--l); stroke-dashoffset: var(--l); fill-opacity: 0;
    animation: draw 1.3s cubic-bezier(.55, .1, .25, 1) .55s forwards, ink .8s ease 1.55s forwards;
  }
  .ctr { animation: fade .6s ease 2s both; }
  .dims { animation: fade .9s ease 1.7s both; }
  .leave[open] { animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
  .leave[open]::backdrop { animation: fade .22s ease; }
  /* Live: the construction lines run, CAD-style "selected". The draw
     animation stays first in the list, so it is not started again. */
  .art.live .con path:not(.tick) {
    stroke-dasharray: 7 6;
    animation: draw 1.5s cubic-bezier(.55, .1, .25, 1) var(--d, 0s) forwards, march 1.3s linear infinite;
  }
}
@keyframes march { to { stroke-dashoffset: -26; } }

/* ---- the mark at the top is a link home ---- */
a.brand { text-decoration: none; border-radius: 6px; }
a.brand:hover span { color: var(--link); }

/* ---- contact page ---- */
.stage-contact { display: block; padding: 28px 0 8px; }
.panel {
  max-width: 34rem; margin: 0 auto; padding: 24px 18px 22px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow);
}
.panel .title { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); }
.panel .lede { margin-top: 12px; font-size: 1rem; }
.panel a { color: var(--link); }
.panel a:hover { color: var(--link-2); }
.form { margin-top: 22px; }
.form label { display: block; margin: 16px 0 6px; font: 600 .8125rem/1.3 var(--sans); color: var(--ink-2); }
.form label:first-child { margin-top: 0; }
.opt { font-weight: 400; color: var(--ink-3); }
.form input, .form textarea {
  display: block; width: 100%; margin: 0; padding: 11px 12px;
  border: 1px solid var(--rule-2); border-radius: 10px;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--focus); outline: 3px solid var(--line-soft); outline-offset: 0; }
/* The field only bots fill in. Off-screen rather than display:none,
   which some bots know to skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send {
  display: block; width: 100%; min-height: 48px; margin-top: 20px; padding: 0 18px;
  border: 1px solid var(--link); border-radius: 11px;
  background: var(--link); color: var(--on-link);
  font: 600 1rem/1 var(--sans); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.send:hover { background: var(--link-2); border-color: var(--link-2); }
.send:disabled { opacity: .7; cursor: default; }
.error {
  margin: 18px 0 0; padding: 11px 14px;
  border: 1px solid var(--err-line); border-radius: 10px;
  background: var(--err-bg); color: var(--err-ink); font-size: .9375rem;
}
.back { margin: 18px 0 0; }
@media (min-width: 640px) {
  .stage-contact { padding-top: 40px; }
  .panel { padding: 34px 34px 30px; }
}

/* ---- the foot of every page (ph_bottom): copyright and trademark
   on the left, the three legal pages on the right ---- */
.ph-foot {
  margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px;
  font: 500 .75rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.ph-foot p { margin: 0; text-transform: none; letter-spacing: .02em; line-height: 1.55; }
.ph-own p:first-child { color: var(--ink-2); }
.ph-foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.ph-foot a { display: inline-block; padding: 7px 0; color: var(--ink-2); text-decoration: none; }
.ph-foot a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.ph-foot a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--warm); text-underline-offset: 3px; }
@media (max-width: 559px) {
  .ph-foot { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---- the legal pages: privacy.php, terms.php, cookies.php ---- */
.stage-doc { display: block; padding: 28px 0 8px; }
.doc { max-width: 46rem; margin: 0 auto; }
.doc-head .title { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.doc-meta {
  margin: 16px 0 0;
  font: 500 .75rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.doc-head .lede { max-width: 40rem; }
.doc p, .doc li { line-height: 1.68; color: var(--ink-2); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.3em; }
.doc li + li { margin-top: 7px; }
.doc li > ul { margin: 7px 0 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--link); text-underline-offset: 2px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--link-2); }
.doc code {
  font: 500 .84em/1 var(--mono); color: var(--ink);
  padding: .14em .4em; border: 1px solid var(--rule); border-radius: 6px; background: var(--cream);
  overflow-wrap: anywhere;
}

/* The short version, in a card. */
.tldr {
  margin: 30px 0 0; padding: 20px 20px 8px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow);
}
.doc .tldr h2, .doc .toc h2 {
  margin: 0 0 12px;
  font: 600 .75rem/1.3 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--warm);
}
.tldr ul { padding-left: 1.15em; }
.tldr li { color: var(--ink); }

/* On this page. */
.toc { margin: 30px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.toc ol { columns: 2 15rem; column-gap: 32px; margin: 0 0 14px; padding-left: 1.5em; font-size: .9375rem; }
.toc li { break-inside: avoid; margin: 0 0 6px; }
.toc li + li { margin-top: 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.doc section { margin-top: 42px; scroll-margin-top: 24px; }
.doc h2 {
  margin: 0 0 14px;
  font: 400 1.625rem/1.2 var(--serif); letter-spacing: -.015em; color: var(--ink);
  text-wrap: balance;
}
.doc h2 .n { font: 500 .8125rem/1 var(--mono); letter-spacing: .06em; color: var(--warm); margin-right: .6em; vertical-align: .3em; }
.doc h3 { margin: 26px 0 8px; font: 600 1.0625rem/1.35 var(--sans); color: var(--ink); scroll-margin-top: 24px; }

/* Tables (the cookie list). Wide ones scroll inside their frame,
   never the page. */
.table-wrap {
  margin: 8px 0 20px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--card);
}
.doc table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: .875rem; }
.doc th, .doc td { padding: 11px 13px; text-align: left; vertical-align: top; line-height: 1.5; border-bottom: 1px solid var(--rule); }
.doc td { color: var(--ink-2); }
.doc th {
  font: 600 .6875rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  background: var(--cream); white-space: nowrap;
}
.doc tbody tr:last-child td { border-bottom: 0; }
.doc td:first-child { white-space: nowrap; }

/* On a phone, each row becomes a card: the first cell (the name) on
   top, every other cell under its column's heading (data-label). */
@media (max-width: 639px) {
  .table-wrap { overflow: visible; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: auto; min-width: 0; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .doc tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  .doc tbody tr:last-child { border-bottom: 0; }
  .doc td { padding: 0; border: 0; }
  .doc td:first-child { white-space: normal; color: var(--ink); font-weight: 600; }
  .doc td[data-label]:not(:first-child)::before {
    content: attr(data-label); display: block; margin: 10px 0 2px;
    font: 600 .6875rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  }
}

/* A clause the law wants easy to notice (warranty disclaimers and the
   limits of liability). */
.doc .conspicuous {
  padding: 12px 16px; border-left: 3px solid var(--warm); border-radius: 0 10px 10px 0;
  background: var(--cream); color: var(--ink); font-weight: 500;
}
.doc .note { font-size: .9375rem; color: var(--ink-3); }

.doc-end { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.doc-end p { font-size: .9375rem; }

@media (min-width: 640px) {
  .stage-doc { padding-top: 44px; }
  .tldr { padding: 24px 26px 10px; }
}

/* Printed, a legal page is plain ink on paper. */
@media print {
  body::before, .sheet::before, .theme, .ph-foot nav, .leave { display: none !important; }
  body { background: #fff; color: #000; }
  .sheet { padding: 0; min-height: 0; }
  .doc { max-width: none; }
  .doc p, .doc li, .doc td { color: #000; }
  .tldr, .table-wrap { box-shadow: none; }
  .rise { animation: none !important; }
  .doc a { color: #000; }
}
