/* riser.upstep.house. One stylesheet, no scripts.
   Fonts: Archivo (display) and IBM Plex Sans / Mono, both SIL Open Font License, served from here. */

@font-face { font-family: 'Archivo'; font-weight: 900; font-style: normal; font-display: swap; src: url('fonts/archivo-900.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/archivo-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/plexsans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/plexsans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/plexmono-500.woff2') format('woff2'); }

/* Every text/background pair below was checked for WCAG AA (4.5:1) on 2026-11-08, light and
   dark. If you change a colour, check the pairs again. */
:root {
  --paper: #f1f3ee;
  --card: #ffffff;
  --ink: #182420;
  --ink-soft: #445048;
  --line: #c7cfc4;
  --herb: #2f6e56;
  --herb-soft: #deebe4;
  --marigold: #915818;
  --marigold-soft: #f3e2c9;
  --ticket: #fffdf6;
  --step-1: #deebe4; --step-2: #c5ddd1; --step-3: #a9cdbb; --step-4: #8cbca5; --step-5: #2f6e56;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111a16; --card: #18231e; --ink: #e7eee8; --ink-soft: #a7b6ad; --line: #34433c;
    --herb: #74c2a2; --herb-soft: #1c332a; --marigold: #e8a956; --marigold-soft: #3a2c16; --ticket: #1d2823;
    --step-1: #1c332a; --step-2: #22402f; --step-3: #295039; --step-4: #326346; --step-5: #74c2a2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111a16; --card: #18231e; --ink: #e7eee8; --ink-soft: #a7b6ad; --line: #34433c;
  --herb: #74c2a2; --herb-soft: #1c332a; --marigold: #e8a956; --marigold-soft: #3a2c16; --ticket: #1d2823;
  --step-1: #1c332a; --step-2: #22402f; --step-3: #295039; --step-4: #326346; --step-5: #74c2a2;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--herb); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif; line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0 0 14px; max-width: 62ch; }
code { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.9em; background: var(--herb-soft); color: var(--ink); padding: 1px 6px; border-radius: 3px; white-space: nowrap; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 4px; }
.skip:focus { top: 8px; }

/* ---------- top bar ---------- */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.brand b { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.brand small { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-soft); }
.top nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 719px) { .top nav { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 48px 0 24px; }
.hero .wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: end; } .hero { padding: 72px 0 40px; } }
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--marigold); margin: 0 0 14px; }
.hero h1 { font-weight: 900; font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--herb); }
.lede { font-size: 19px; color: var(--ink-soft); }
.stamp {
  display: inline-block; margin: 6px 0 22px; padding: 6px 12px; transform: rotate(-1.5deg);
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--marigold); border: 2px solid var(--marigold); border-radius: 3px; background: var(--marigold-soft);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: 6px; font-weight: 600; text-decoration: none; border: 2px solid var(--ink);
}
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--herb); border-color: var(--herb); color: var(--paper); text-decoration: none; }
.btn.line { color: var(--ink); }
.btn.line:hover { background: var(--card); }

/* the day, as steps */
.day { margin: 0; }
.day svg { display: block; width: 100%; }
.day figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.day .s1 { fill: var(--step-1); } .day .s2 { fill: var(--step-2); } .day .s3 { fill: var(--step-3); }
.day .s4 { fill: var(--step-4); } .day .s5 { fill: var(--step-5); }
.day .edge { fill: none; stroke: var(--ink); stroke-width: 2; }
.day .t { font-family: 'IBM Plex Mono', monospace; font-size: 15px; fill: var(--ink); }
.day .t.light { fill: var(--paper); }
.day .w { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 20px; fill: var(--ink); }
.day .w.light { fill: var(--paper); }
.day .rise { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; transform-box: fill-box; transform-origin: bottom; }
.day .rise:nth-of-type(2) { animation-delay: .08s; } .day .rise:nth-of-type(3) { animation-delay: .16s; }
.day .rise:nth-of-type(4) { animation-delay: .24s; } .day .rise:nth-of-type(5) { animation-delay: .32s; }
@keyframes rise { from { transform: scaleY(0.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- sections ---------- */
section { padding: 48px 0; border-top: 1px solid var(--line); }
section h2 { font-weight: 900; font-size: clamp(28px, 4.6vw, 40px); letter-spacing: -0.01em; margin-bottom: 12px; }
.intro { color: var(--ink-soft); margin-bottom: 28px; }

/* what it does: order tickets */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.ticket {
  position: relative; background: var(--ticket); border: 1px solid var(--line); border-radius: 4px; padding: 18px 18px 20px;
  /* torn bottom edge, like a kitchen order slip */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 5px at 8px 8px, #000 98%, #0000) bottom / 16px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 5px at 8px 8px, #000 98%, #0000) bottom / 16px 8px repeat-x;
  padding-bottom: 28px;
}
.ticket .no { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-soft); display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 12px; }
.ticket h3 { font-size: 20px; margin-bottom: 8px; }
.ticket p { font-size: 16px; margin: 0; color: var(--ink); }
.ticket .needs { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.note { margin-top: 22px; font-size: 16px; color: var(--ink-soft); }

/* who / different */
.cols { display: grid; gap: 28px; }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 0 0 12px 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 3px; background: var(--herb-soft); border: 2px solid var(--herb); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 10px; border: solid var(--herb); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.own { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0; padding: 0; list-style: none; }
.own li { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--herb); border-radius: 4px; padding: 14px 16px; }
.own b { display: block; font-family: 'Archivo', sans-serif; font-size: 18px; margin-bottom: 4px; }

/* setup: a staircase of steps */
.stairs { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.stairs li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 16px 16px 16px 64px; position: relative; }
.stairs li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: 'Archivo', sans-serif; font-weight: 900; }
.stairs b { display: block; font-size: 18px; }
.stairs span { color: var(--ink-soft); font-size: 16px; }
@media (min-width: 820px) {
  .stairs li:nth-child(2) { margin-left: 6%; } .stairs li:nth-child(3) { margin-left: 12%; }
  .stairs li:nth-child(4) { margin-left: 18%; } .stairs li:nth-child(5) { margin-left: 24%; } .stairs li:nth-child(6) { margin-left: 30%; }
}

/* status + contact */
.status { background: var(--marigold-soft); border: 2px solid var(--marigold); border-radius: 6px; padding: 20px; }
.status h2 { color: var(--ink); }
.contact .mail { display: inline-block; padding: 6px 0; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(26px, 6vw, 44px); word-break: break-word; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-soft); font-size: 15px; }
footer a { display: inline-block; padding: 12px 0; }
footer .wrap { align-items: center;  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; gap: 16px; padding: 48px 0; }
.lost h1 { font-weight: 900; font-size: clamp(34px, 7vw, 56px); }
