/* konradac.com — Konrad / Measured Life
   One stylesheet, no dependencies. Motif: paper, ink, and a yellow tape measure. */

/* ---------- tokens ---------- */
:root {
  --paper: #F5EFE2;
  --paper-2: #EBE3D1;
  --card: #FCF8EF;
  --ink: #1E1A15;
  --ink-2: #5A5146;
  --rule: rgba(30, 26, 21, .16);
  --edge: #1E1A15;
  --shadow: #1E1A15;
  --tape: #F4BC1C;
  --tape-deep: #D9A000;
  --tape-ink: #1E1A15;
  --red: #B5341A;
  --green: #1F6B4F;
  --lcd-bg: #0F1311;
  --lcd-well: #1A221D;
  --lcd-on: #BFE3C8;
  --lcd-off: rgba(191, 227, 200, .09);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Sitka Text", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --gut: clamp(20px, 4vw, 40px);
  --r: 14px;
  --u: clamp(58px, 11vw, 132px); /* one "follower" on the tape */
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #16130F;
  --paper-2: #1E1A14;
  --card: #231E17;
  --ink: #F1E9DA;
  --ink-2: #B5AA96;
  --rule: rgba(241, 233, 218, .16);
  --edge: #5A4F40;
  --shadow: #000;
  --tape-deep: #F4BC1C;
  --red: #FF8163;
  --green: #74D3A4;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --paper: #16130F;
    --paper-2: #1E1A14;
    --card: #231E17;
    --ink: #F1E9DA;
    --ink-2: #B5AA96;
    --rule: rgba(241, 233, 218, .16);
    --edge: #5A4F40;
    --shadow: #000;
    --tape-deep: #F4BC1C;
    --red: #FF8163;
    --green: #74D3A4;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: hidden;
  /* faint paper grain, drawn in CSS */
  background-image:
    radial-gradient(var(--rule) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: -11px -11px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--tape-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--tape); color: #1E1A15; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--tape); color: #1E1A15; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.eyebrow {
  font: 600 .74rem/1.3 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.eyebrow::before {
  content: ""; width: 34px; height: 9px; flex: none;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 6.5px);
  opacity: .7;
}
.note { font-family: var(--serif); font-style: italic; color: var(--ink-2); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1.5px solid var(--rule);
}
.head-row { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark { width: 40px; height: 40px; flex: none; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.brand-name { font: 700 1.25rem/1 var(--serif); letter-spacing: -.01em; display: grid; gap: 4px; }
.brand-sub { font: 600 .62rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.nav a { font-weight: 600; font-size: .96rem; text-decoration: none; padding: 8px 2px; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 7px;
  background: repeating-linear-gradient(90deg, var(--red) 0 1.5px, transparent 1.5px 6px);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.icon-btn {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--edge); border-radius: 50%;
  cursor: pointer; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.icon-btn:hover { transform: rotate(18deg); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .moon { display: none; }
html[data-theme="dark"] .icon-btn .sun { display: none; }
html[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .icon-btn .sun { display: none; }
  html:not([data-theme="light"]) .icon-btn .moon { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 14px 20px; border-radius: 999px;
  background: var(--tape); color: #1E1A15;
  border: 1.5px solid #1E1A15;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--edge); box-shadow: none; }
.btn.ghost:hover { background: var(--card); transform: none; }
.btn.small { padding: 9px 14px; font-size: .88rem; box-shadow: 2px 2px 0 var(--shadow); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.text-btn {
  font: 600 .78rem/1 var(--mono); letter-spacing: .06em; color: var(--ink-2);
  background: none; border: 0; border-bottom: 1.5px dashed var(--ink-2); padding: 4px 0; cursor: pointer;
}
.text-btn:hover { color: var(--ink); border-color: var(--red); }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(30px, 5vw, 56px); position: relative; }
.hero h1 {
  font-size: clamp(2.35rem, 6.5vw, 5.1rem);
  line-height: 1.02;
  margin: 18px 0 0;
  max-width: 17.5em;
}
.hl {
  background: none; color: #1E1A15; position: relative; white-space: nowrap; z-index: 0; padding: 0 .12em;
}
.hl::before {
  content: ""; position: absolute; inset: .12em -.04em .02em; z-index: -1;
  background: var(--tape); border-radius: .12em .3em .16em .26em;
  transform: rotate(-1.2deg); transform-origin: left center;

}
.hl { animation: swipe .6s .35s cubic-bezier(.6, 0, .2, 1) backwards; }
@keyframes swipe { from { clip-path: inset(-12% 100% -12% -6%); } to { clip-path: inset(-12% -6% -12% -6%); } }
.scratch { position: relative; white-space: nowrap; }
.scratch svg { position: absolute; left: -2%; bottom: -.2em; width: 104%; height: .34em; overflow: visible; }
.scratch path {
  fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 520; animation: draw 1s .9s ease-out backwards;
}
@keyframes draw { from { stroke-dashoffset: 520; } }

.hero-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(26px, 4vw, 44px);
}
.lede { font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.5; max-width: 33em; }
.lede strong { font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* the replaying to-do list */
.todo {
  position: relative;
  background: var(--card); border: 1.5px solid var(--edge); border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--shadow);
  transform: rotate(1.4deg);
  font: 500 .86rem/1.5 var(--mono);
  animation: settle .7s .2s cubic-bezier(.3, 1.5, .5, 1) backwards;
}
@keyframes settle { from { transform: rotate(-4deg) translateY(24px); opacity: 0; } }
.todo::before, .strip::before {
  /* a strip of yellow tape holding it to the page */
  content: ""; position: absolute; left: 50%; top: -13px; width: 96px; height: 24px; margin-left: -48px;
  background:
    repeating-linear-gradient(90deg, rgba(30, 26, 21, .75) 0 1.5px, transparent 1.5px 8px) 0 0 / 100% 7px no-repeat,
    var(--tape);
  transform: rotate(-3deg); opacity: .94;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%);
}
.todo-bar {
  display: flex; align-items: center; gap: 8px; padding: 16px 16px 10px;
  border-bottom: 1.5px dashed var(--rule); color: var(--ink-2); font-size: .74rem; letter-spacing: .08em;
}
.todo-bar b { color: var(--ink); font-weight: 700; margin-right: auto; }
.todo-body { padding: 14px 16px 6px; min-height: 15.4em; }
.todo-line { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; margin: 0 0 6px; }
.todo-line .box { color: var(--ink-2); white-space: pre; }
.todo-line .box.x { color: var(--green); font-weight: 700; }
.todo-line .box.w { color: var(--red); font-weight: 700; }
.todo-line .box.pop { animation: pop .35s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { from { transform: scale(1.9); } }
.todo-line .because { color: var(--ink-2); white-space: pre-wrap; }
.todo-line.aside { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--red); }
.todo-line.first.glow .txt { background: var(--tape); color: #1E1A15; padding: 1px 5px; margin-left: -5px; border-radius: 3px; }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--ink); vertical-align: -.16em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.todo-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 16px 14px;
  border-top: 1.5px dashed var(--rule); color: var(--ink-2); font-size: .72rem;
}
.todo-foot .text-btn { margin-left: auto; }
.k-x { color: var(--green); font-weight: 700; }
.k-w { color: var(--red); font-weight: 700; }

/* the tape measure */
.tape { margin-top: clamp(40px, 6vw, 72px); }
.tape-track { display: flex; align-items: center; height: 78px; }
.tape-case {
  position: relative; z-index: 2; flex: none; width: 78px; height: 78px;
  background: var(--tape); border: 2px solid #1E1A15; border-radius: 18px 18px 18px 26px;
  box-shadow: 4px 4px 0 var(--shadow);
  display: grid; place-items: center;
}
.tape-case::after { content: ""; position: absolute; right: -2px; bottom: 12px; width: 8px; height: 34px; background: #1E1A15; border-radius: 3px 0 0 3px; }
.tape-read {
  width: 44px; height: 44px; border-radius: 50%; background: #1E1A15; color: var(--tape);
  display: grid; place-items: center; font: 700 1.5rem/1 var(--mono);
  box-shadow: inset 0 0 0 4px #1E1A15, inset 0 0 0 5.5px rgba(244, 188, 28, .55);
}
.tape-blade {
  position: relative; flex: none; height: 40px; margin-top: 16px;
  width: calc(var(--u) * 3 + 10px);
  background:
    repeating-linear-gradient(90deg, var(--tape-ink) 0 2px, transparent 2px var(--u)) 0 0 / 100% 20px no-repeat,
    repeating-linear-gradient(90deg, var(--tape-ink) 0 1px, transparent 1px calc(var(--u) / 8)) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--tape-ink) 0 1px, transparent 1px calc(var(--u) / 2)) 0 0 / 100% 14px no-repeat,
    var(--tape);
  border-block: 2px solid #1E1A15;
  color: #1E1A15;
  animation: pull 1.5s .6s cubic-bezier(.2, .9, .25, 1.12) backwards;
}
@keyframes pull { from { width: 0; } }
.tape-nums { position: absolute; inset: 0; overflow: hidden; }
.tape-blade i {
  position: absolute; bottom: 1px; font: 700 .86rem/1 var(--mono); font-style: normal;
  transform: translateX(-130%);
}
.tape-blade i:nth-child(1) { left: calc(var(--u) * 1); }
.tape-blade i:nth-child(2) { left: calc(var(--u) * 2); }
.tape-blade i:nth-child(3) { left: calc(var(--u) * 3); color: var(--red); font-size: 1.05rem; color: #9C2A12; }
.tape-blade::after { /* the hook */
  content: ""; position: absolute; right: -8px; top: -9px; width: 8px; height: 54px;
  background: #1E1A15; border-radius: 2px; box-shadow: 0 0 0 1.5px var(--paper);
}
.tape-ghost {
  flex: 1; min-width: 0; height: 40px; margin: 16px 0 0 8px;
  border-block: 2px dashed var(--rule);
  background: repeating-linear-gradient(90deg, var(--rule) 0 2px, transparent 2px var(--u)) calc(var(--u) - 18px) 0 / 100% 14px no-repeat;
  mask-image: linear-gradient(90deg, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent);
}
.tape-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 16px; padding-left: 4px; }
.tape-cap .note { font-size: 1.12rem; color: var(--ink); }
.tape-cap .note b { font-style: normal; font-family: var(--mono); font-size: .92em; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(26px, 4vw, 44px); max-width: 46rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.section-head p { font-size: 1.1rem; color: var(--ink-2); margin: 0; }
.ruler { height: 16px; border-top: 1.5px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 80px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px) 0 0 / 100% 6px no-repeat;
  opacity: .5;
}

.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 6px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status.in-use { color: var(--green); }
.status.in-use::before { background: var(--green); }
.status.building { color: var(--ink); }
.status.building::before { background: var(--tape); box-shadow: 0 0 0 1.5px var(--tape-ink); animation: pulse 1.6s ease-in-out infinite; }
html[data-theme="dark"] .status.building::before { box-shadow: none; }
@keyframes pulse { 50% { transform: scale(.55); } }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3.4vw, 40px); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1.5px solid var(--edge); border-radius: var(--r);
  box-shadow: 5px 5px 0 var(--shadow);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s ease;
}
.card:nth-child(odd) { --tilt: -.7deg; }
.card:nth-child(even) { --tilt: .6deg; }
.card:hover, .card:focus-within { transform: rotate(var(--tilt)) translateY(-4px); box-shadow: 9px 10px 0 var(--shadow); }
.vig {
  position: relative; height: 170px; overflow: hidden;
  border-radius: calc(var(--r) - 2px) calc(var(--r) - 2px) 0 0;
  background: var(--paper-2); border-bottom: 1.5px solid var(--edge);
}
.vig svg { width: 100%; height: 100%; }
.card-body { padding: 22px 24px 24px; display: grid; gap: 12px; flex: 1; align-content: start; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card h3 { font-size: 1.55rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.why { font: italic 400 clamp(1.3rem, 2.3vw, 1.62rem)/1.22 var(--serif); margin: 0; }
.why::before { content: "\201C"; color: var(--red); margin-right: .04em; }
.why::after { content: "\201D"; color: var(--red); }
.what { color: var(--ink-2); margin: 0; font-size: .98rem; }
.more { font: 700 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; display: inline-flex; gap: 8px; }
.card:hover .more .arr { transform: translateX(4px); }
.more .arr { transition: transform .2s ease; color: var(--red); }

/* vignette: Career Surfer */
.v-surf { background: linear-gradient(var(--paper-2) 58%, color-mix(in srgb, var(--green) 16%, var(--paper-2)) 58%); }
.v-surf .wave { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; animation: slide 3.2s linear infinite; }
.v-surf .wave.b { stroke-width: 1.5; opacity: .45; animation-duration: 5s; animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-100px); } }
.v-surf .board { transform-origin: 200px 80px; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(5px) rotate(-7deg); } 50% { transform: translateY(-7px) rotate(5deg); } }
.v-surf .sun { fill: var(--tape); stroke: #1E1A15; stroke-width: 2; }

/* vignette: Rents Itself */
.v-chat { display: grid; align-content: center; gap: 9px; padding: 14px 22px; }
.bub { width: 58%; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--edge); background: var(--card); display: grid; gap: 6px; }
.bub i { display: block; height: 6px; border-radius: 3px; background: var(--ink-2); opacity: .5; }
.bub i:last-child { width: 62%; }
.bub.in { border-bottom-left-radius: 4px; animation: chat-in 7s ease infinite; }
.bub.out { justify-self: end; border-bottom-right-radius: 4px; background: var(--tape); border-color: #1E1A15; animation: chat-out 7s ease infinite; }
.bub.out i { background: #1E1A15; opacity: .6; }
.approve { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font: 700 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); position: relative; height: 22px; }
.approve .a1, .approve .a2 { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; white-space: nowrap; }
.approve .a1 { position: absolute; right: 0; background: var(--ink); color: var(--paper); opacity: 0; animation: chat-btn 7s ease infinite; }
.approve .a2 { animation: chat-ok 7s ease infinite; }
@keyframes chat-in { 0% { opacity: 0; transform: translateY(8px); } 6%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes chat-out {
  0%, 20% { opacity: 0; transform: translateY(8px); background: var(--card); border-style: dashed; }
  27%, 58% { opacity: 1; transform: none; background: var(--card); border-style: dashed; }
  64%, 94% { opacity: 1; background: var(--tape); border-style: solid; }
  100% { opacity: 0; }
}
@keyframes chat-btn { 0%, 30% { opacity: 0; transform: scale(.8); } 36%, 52% { opacity: 1; transform: scale(1); } 56% { opacity: 1; transform: scale(.88); } 62%, 100% { opacity: 0; transform: scale(1); } }
@keyframes chat-ok { 0%, 62% { opacity: 0; } 68%, 94% { opacity: 1; } 100% { opacity: 0; } }
.v-chat .bub.out i { transition: none; }

/* vignette: North County Pups */
.v-pups .paw { fill: var(--ink); animation: paw 4.8s linear infinite; }
.v-pups .paw:nth-of-type(1) { animation-delay: 0s; }
.v-pups .paw:nth-of-type(2) { animation-delay: .35s; }
.v-pups .paw:nth-of-type(3) { animation-delay: .7s; }
.v-pups .paw:nth-of-type(4) { animation-delay: 1.05s; }
.v-pups .paw:nth-of-type(5) { animation-delay: 1.4s; }
.v-pups .paw:nth-of-type(6) { animation-delay: 1.75s; }
.v-pups .paw:nth-of-type(7) { animation-delay: 2.1s; }
@keyframes paw { 0% { opacity: 0; } 4%, 60% { opacity: .85; } 78%, 100% { opacity: 0; } }
.v-pups .ball { transform: translateX(300px); animation: roll 4.8s linear infinite; }
.v-pups .ball-y { animation: bounce 1.2s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
@keyframes roll { from { transform: translateX(-60px); } to { transform: translateX(460px); } }
@keyframes bounce { from { transform: translateY(-44px); } to { transform: translateY(0); } }
.v-pups .ground { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .5; }

/* vignette: postedex (a nod to its dark LCD look) */
.v-lcd { background: var(--lcd-bg); display: grid; place-items: center; padding: 16px; }
.lcd {
  width: min(100%, 300px); background: var(--lcd-well); border-radius: 10px; padding: 12px 16px 10px;
  box-shadow: inset 0 0 0 1px rgba(191, 227, 200, .18), inset 0 6px 18px rgba(0, 0, 0, .5);
  color: var(--lcd-on); font: 600 .62rem/1 var(--mono); letter-spacing: .16em;
}
.lcd-row { display: flex; justify-content: space-between; align-items: center; }
.lcd-clock { height: 50px; margin: 9px 0 8px; }
.lcd-clock svg { height: 100%; width: auto; margin: 0 auto; }
.lcd-clock .seg { fill: var(--lcd-off); }
.lcd-clock .seg.on { fill: var(--lcd-on); }
.lcd-clock .colon { fill: var(--lcd-on); animation: blink 2s steps(1) infinite; }
.lcd-bars { display: flex; gap: 3px; }
.lcd-bars i { width: 5px; height: 9px; background: var(--lcd-on); opacity: .14; animation: bars 2.4s steps(1) infinite; }
.lcd-bars i:nth-child(2) { animation-delay: .3s; } .lcd-bars i:nth-child(3) { animation-delay: .6s; }
.lcd-bars i:nth-child(4) { animation-delay: .9s; } .lcd-bars i:nth-child(5) { animation-delay: 1.2s; }
@keyframes bars { 0%, 50% { opacity: 1; } 51%, 100% { opacity: .14; } }

/* ---------- project shelf (Astra's illustrated shelf, in Fable's paper, ink and tape) ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 28px); margin-top: 22px; }
.shelf-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1.5px solid var(--edge); border-radius: var(--r);
  box-shadow: 5px 5px 0 var(--shadow);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s ease;
}
.shelf-card:nth-child(odd) { --tilt: -.8deg; }
.shelf-card:nth-child(even) { --tilt: .7deg; }
.shelf-card:hover, .shelf-card:focus-within { transform: rotate(var(--tilt)) translateY(-4px); box-shadow: 9px 10px 0 var(--shadow); }
.shelf-card.strip::before { z-index: 3; width: 74px; margin-left: -37px; }
.shelf-art {
  position: relative; isolation: isolate; height: 150px; overflow: hidden;
  display: grid; place-items: center;
  border-radius: calc(var(--r) - 2px) calc(var(--r) - 2px) 0 0;
  background: var(--swatch); border-bottom: 1.5px solid var(--edge);
}
/* swatches are tints of Fable's green, tape yellow, red and the postedex LCD */
.art-wave { --swatch: #D4E7DA; }
.art-keys { --swatch: #F8E1A0; }
.art-dog  { --swatch: #F3D0C2; }
.art-disk { --swatch: #CFE6D5; }
.shelf-art::before { /* paper grain */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(30, 26, 21, .22) .7px, transparent .95px) 0 0 / 6px 6px;
}
.shelf-art::after { /* the ground line */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 13%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(30, 26, 21, .35) 0 6px, transparent 6px 11px);
  transform: rotate(-1.5deg);
}
.shelf-art img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 12px 16px 14px;
  transform-origin: 50% 85%;
  animation: shelf-rock 4.2s ease-in-out infinite;
}
.art-keys img { animation-name: shelf-jingle; animation-duration: 3.4s; }
.art-dog img { animation-name: shelf-sniff; animation-duration: 3.8s; }
.art-disk img { animation-name: shelf-save; animation-duration: 5s; }
@keyframes shelf-rock { 0%, 100% { transform: rotate(-2deg) translateY(1px); } 50% { transform: rotate(2.5deg) translateY(-4px); } }
@keyframes shelf-jingle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-5deg); } 82% { transform: rotate(4deg); } 88% { transform: rotate(-2deg); } }
@keyframes shelf-sniff { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(4px) rotate(1deg); } }
@keyframes shelf-save { 0%, 80%, 100% { transform: translateY(0); } 86% { transform: translateY(5px) scale(.97); } 92% { transform: translateY(-2px); } }
.shelf-card:hover .shelf-art img { animation-play-state: paused; }
.shelf-body { padding: 20px 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.shelf-card h3 { font-size: 1.42rem; }
.shelf-card h3 a { text-decoration: none; }
.shelf-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); z-index: 4; }
.shelf-card .why { font-size: clamp(1.08rem, 1.45vw, 1.24rem); }
.shelf-card .what { font-size: .94rem; }
.shelf-card .status { margin-top: auto; padding-top: 6px; }
.shelf-card:hover .more .arr { transform: translateX(4px); }
.shelf-foot { margin: clamp(26px, 4vw, 40px) 0 0; font: 700 .82rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.shelf-foot .arr { color: var(--red); }

/* ---------- videos ---------- */
.band { background: var(--paper-2); border-block: 1.5px solid var(--rule); }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.video { display: grid; gap: 12px; }
.frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1.5px solid var(--edge); border-radius: 12px; background: var(--card);
  box-shadow: 4px 4px 0 var(--shadow);
}
.frame::before { /* placeholder hatch, drifting */
  content: ""; position: absolute; inset: -40px;
  background: repeating-linear-gradient(-45deg, transparent 0 13px, var(--rule) 13px 14.5px);
  animation: hatch 2.6s linear infinite;
}
@keyframes hatch { to { transform: translateX(20.5px); } }
.frame .screen {
  position: absolute; inset: 11% 9% 20% 9%; border: 1.5px dashed var(--ink-2); border-radius: 6px;
  display: grid; place-items: center; background: color-mix(in srgb, var(--card) 80%, transparent);
  font: 700 clamp(.95rem, 1.5vw, 1.15rem)/1 var(--serif); font-style: italic;
}
.frame .face {
  position: absolute; left: 5%; bottom: 8%; width: 21%; aspect-ratio: 1; border-radius: 50%;
  background: var(--tape); border: 1.5px solid #1E1A15;
  animation: nod 3.4s ease-in-out infinite;
}
.frame .face::before, .frame .face::after { content: ""; position: absolute; top: 40%; width: 9%; height: 9%; border-radius: 50%; background: #1E1A15; }
.frame .face::before { left: 32%; } .frame .face::after { right: 32%; }
.frame .face span { position: absolute; left: 34%; right: 34%; top: 58%; height: 12%; border-bottom: 2px solid #1E1A15; border-radius: 0 0 50% 50%; }
.video:nth-child(2) .face { animation-delay: -1.1s; } .video:nth-child(3) .face { animation-delay: -2.2s; }
@keyframes nod { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg) translateY(-3%); } }
.video-meta { display: flex; justify-content: space-between; gap: 10px; font: 600 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(26px, 4vw, 40px); }
.follow .note { margin-right: 6px; font-size: 1.1rem; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 999px;
  border: 1.5px solid var(--edge); background: var(--card); text-decoration: none; font-weight: 700; font-size: .95rem;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s;
}
.chip:hover { transform: translateY(-3px) rotate(-2deg); background: var(--tape); color: #1E1A15; border-color: #1E1A15; }
.chip svg { width: 20px; height: 20px; }

/* ---------- build log signup: the page ends on a tape blade ---------- */
.signup { padding: clamp(40px, 7vw, 80px) 0; }
.blade {
  position: relative; background: var(--tape); color: #1E1A15;
  border: 2px solid #1E1A15; border-radius: 18px; box-shadow: 7px 7px 0 var(--shadow);
  padding: clamp(46px, 6vw, 64px) clamp(22px, 5vw, 60px) clamp(28px, 5vw, 52px);
  overflow: hidden;
}
.blade::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px;
  background:
    repeating-linear-gradient(90deg, #1E1A15 0 2px, transparent 2px 96px) 0 0 / 100% 22px no-repeat,
    repeating-linear-gradient(90deg, #1E1A15 0 1px, transparent 1px 12px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, #1E1A15 0 1px, transparent 1px 48px) 0 0 / 100% 15px no-repeat;
  animation: feed 9s linear infinite;
}
@keyframes feed { to { background-position: -96px 0, -96px 0, -96px 0; } }
.blade-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 60px); align-items: end; }
.blade h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.blade .eyebrow { color: #1E1A15; }
.blade .eyebrow::before { background: repeating-linear-gradient(90deg, #1E1A15 0 1.5px, transparent 1.5px 6.5px); }
.blade p { font-size: 1.1rem; margin: 14px 0 0; max-width: 28em; }
.form { display: grid; gap: 10px; }
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.soon {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px;
  background: #1E1A15; color: #F4BC1C; font: 700 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F4BC1C; animation: pulse 1.6s ease-in-out infinite; }
.form label { font: 700 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.field { display: flex; gap: 8px; background: #FFFDF6; border: 2px solid #1E1A15; border-radius: 999px; padding: 5px; }
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: #1E1A15;
  font: 500 1.05rem/1 var(--sans); padding: 10px 6px 10px 16px; border-radius: 999px;
}
.field input::placeholder { color: #6B6152; }
.field input:focus { outline: none; }
.field:focus-within { box-shadow: 0 0 0 3px #1E1A15; }
.field button {
  border: 0; cursor: pointer; background: #1E1A15; color: #F5EFE2; font: 700 .98rem/1 var(--sans);
  padding: 12px 18px; border-radius: 999px; white-space: nowrap; transition: transform .15s;
}
.field button:hover { transform: scale(1.04); }
.field button:focus-visible { outline-color: #B5341A; }
.consent { font-size: .86rem; line-height: 1.45; margin: 0 !important; max-width: none !important; }
.consent a { text-decoration-color: #1E1A15; }
.form-msg { font: 600 .84rem/1.4 var(--mono); min-height: 1.4em; margin: 0 !important; }
.form-msg:not(:empty) { background: #1E1A15; color: #F5EFE2; padding: 10px 14px; border-radius: 10px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1.5px solid var(--rule); padding: clamp(36px, 5vw, 56px) 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
.foot-grid h2 { font: 700 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid li a { text-decoration: none; font-weight: 600; }
.foot-grid li a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.foot-blurb { max-width: 24em; color: var(--ink-2); margin-top: 14px; }
.meter {
  margin-top: 34px; padding: 14px 16px; border: 1.5px dashed var(--edge); border-radius: 12px;
  font: 500 .8rem/1.6 var(--mono); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center;
}
.meter b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.meter .tag { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot-base { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: .86rem; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(40px, 7vw, 84px) 0 clamp(24px, 4vw, 44px); display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); max-width: 14em; }
.page-head .lede { color: var(--ink-2); }
.prose { max-width: 40rem; font-size: 1.12rem; }
.prose h2 { font-size: 1.6rem; margin: 2em 0 .5em; }
.prose p, .prose li { line-height: 1.65; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--red); }

.placeholder-tag, .ph {
  display: inline-block; font: 700 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); border: 1.5px dashed var(--red); border-radius: 6px; padding: 4px 7px; vertical-align: middle;
}

/* projects page */
.proj { padding: clamp(40px, 6vw, 72px) 0; border-top: 1.5px solid var(--rule); scroll-margin-top: 70px; }
.proj-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
.proj:nth-of-type(even) .proj-art { order: 2; }
.proj-art { position: relative; border: 1.5px solid var(--edge); border-radius: var(--r); box-shadow: 6px 6px 0 var(--shadow); background: var(--card); }
.proj:nth-of-type(odd) .proj-art { transform: rotate(-1deg); }
.proj:nth-of-type(even) .proj-art { transform: rotate(.9deg); }
.proj-art .vig { height: clamp(200px, 26vw, 280px); border-bottom: 0; border-radius: calc(var(--r) - 2px); }
.proj-copy { display: grid; gap: 16px; }
.proj-copy h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.proj-copy .why { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.proj-copy .what { font-size: 1.08rem; color: var(--ink); max-width: 30em; }
.proj-num { font: 700 .74rem/1 var(--mono); letter-spacing: .14em; color: var(--ink-2); }
.proj-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.shot {
  margin-top: 6px; border: 1.5px dashed var(--ink-2); border-radius: 10px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: .94rem;
}
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { font: 700 .78rem/1 var(--mono); letter-spacing: .06em; text-decoration: none; padding: 9px 12px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--card); }
.jump a:hover { background: var(--tape); color: #1E1A15; border-color: #1E1A15; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.portrait { position: relative; background: var(--card); border: 1.5px solid var(--edge); border-radius: var(--r); box-shadow: 6px 6px 0 var(--shadow); padding: 12px 12px 14px; transform: rotate(2deg); }
.portrait .frame { aspect-ratio: 4 / 5; box-shadow: none; }
.portrait .frame .screen { inset: 0; border: 0; background: transparent; align-content: end; padding-bottom: 9%; }
.portrait .frame .face { left: 29%; bottom: 34%; width: 42%; }
.portrait figcaption { font: italic 1rem/1.3 var(--serif); margin-top: 12px; text-align: center; color: var(--ink-2); }
.facts { margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid var(--edge); border-radius: var(--r); background: var(--card); overflow: hidden; }
.facts div { padding: 18px 20px; border-bottom: 1.5px dashed var(--rule); border-right: 1.5px dashed var(--rule); }
.facts dt { font: 700 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.facts dd { margin: 0; font: 700 1.3rem/1.2 var(--serif); }
.facts dd small { display: block; font: italic 400 .95rem/1.3 var(--serif); color: var(--ink-2); margin-top: 4px; }

/* now */
.now-list { list-style: none; margin: 0; padding: 0; position: relative; max-width: 46rem; }
.now-list::before { /* a ruler down the side */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16px;
  border-left: 1.5px solid var(--ink);
  background:
    repeating-linear-gradient(180deg, var(--ink) 0 1.5px, transparent 1.5px 60px) 0 0 / 14px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 1px, transparent 1px 10px) 0 0 / 6px 100% no-repeat;
  opacity: .5;
}
.now-item { position: relative; padding: 0 0 34px 44px; }
.now-item::before { content: ""; position: absolute; left: -6.5px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--tape); border: 1.5px solid #1E1A15; }
.now-item.sample::before { background: var(--paper); border-style: dashed; border-color: var(--red); }
.now-item time { font: 700 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.now-item h2 { font-size: 1.5rem; margin: 10px 0 6px; }
.now-item p { margin: 0; color: var(--ink-2); }
.now-item.sample h2, .now-item.sample p { color: var(--ink-2); font-style: italic; }
.stamp { display: inline-flex; gap: 10px; align-items: center; font: 700 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--card); width: fit-content; }
.stamp::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover, .js .card.reveal.in:focus-within { transform: rotate(var(--tilt)) translateY(-4px); transition-delay: 0s; }

/* ---------- motion off: everything rests in its finished state ---------- */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) *, html:not([data-motion="on"]) *::before, html:not([data-motion="on"]) *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
  html:not([data-motion="on"]) .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-row { grid-template-columns: 1fr; }
  .todo { max-width: 460px; margin-top: 10px; }
  .videos { grid-template-columns: 1fr 1fr; }
  .videos .video:nth-child(3) { display: none; }
  .blade-grid { grid-template-columns: 1fr; align-items: start; }
  .proj-grid, .about-grid { grid-template-columns: 1fr; }
  .proj:nth-of-type(even) .proj-art { order: 0; }
  .portrait { max-width: 300px; }
}
@media (max-width: 680px) {
  .shelf { grid-template-columns: 1fr; gap: 30px; }
  .shelf-art { height: 140px; }
  .head-row { flex-wrap: wrap; padding: 10px 0 0; row-gap: 2px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 6px; padding-bottom: 6px; }
  .nav a { font-size: .92rem; }
  .cards { grid-template-columns: 1fr; }
  .videos { grid-template-columns: 1fr; }
  .videos .video:nth-child(3) { display: grid; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; }
  .tape-case { width: 64px; height: 64px; border-radius: 15px 15px 15px 22px; }
  .tape-track { height: 64px; }
  .tape-read { width: 38px; height: 38px; font-size: 1.25rem; }
  .tape-blade, .tape-ghost { height: 34px; margin-top: 14px; }
  .tape-blade::after { height: 46px; top: -8px; }
  .tape-case::after { height: 28px; bottom: 9px; }
  .field { flex-direction: column; border-radius: 20px; padding: 6px; }
  .field input { padding: 12px 14px; }
  .field button { padding: 14px 18px; }
  .todo { font-size: .8rem; }
}
