:root {
  --paper: #f2ede3;
  --paper-2: #e8e1d3;
  --ink: #141311;
  --ink-2: #2a2825;
  --muted: #6b655c;
  --orange: #ff5a1f;
  --orange-ink: #c63d0a;
  --yellow: #ffc61a;
  --line: rgba(20, 19, 17, 0.14);
  --radius: 14px;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  color: var(--ink);
  font: 400 17px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.kicker { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--orange-ink); margin-bottom: 1rem; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 46ch; color: var(--ink-2); }
.hl { background: var(--orange); color: var(--paper); padding: 0 0.12em; box-decoration-break: clone; }
em { font-style: italic; font-weight: 400; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--orange); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.7em 1.3em; font: 800 1rem/1 var(--display);
  text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-lg { font-size: 1.1rem; padding: 0.9em 1.6em; }
.btn-sm { font-size: 0.9rem; padding: 0.55em 1em; box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost { background: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--paper); border-color: var(--paper); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: 4px 4px 0 var(--orange); }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--orange); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.35rem; letter-spacing: -0.03em; }
.mark { width: 34px; height: 34px; color: var(--orange); }
.logo:hover .mark { animation: spin 1.2s ease-in-out; }
@keyframes spin { to { transform: rotate(360deg); } }
.menu { display: flex; align-items: center; gap: 22px; }
.menu > a:not(.btn), .for-menu summary { text-decoration: none; font-weight: 600; cursor: pointer; }
.menu > a[aria-current="page"] { border-bottom: 2px solid var(--orange); }
.for-menu { position: relative; }
.for-menu summary { list-style: none; }
.for-menu summary::-webkit-details-marker { display: none; }
.for-menu summary::after { content: " ▾"; }
.for-list {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 210px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink); padding: 8px; display: grid;
}
.for-list a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.for-list a:hover { background: var(--yellow); }
.menu-btn { display: none; font: 800 0.95rem var(--display); background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: 8px 16px 18px; display: none;
  }
  .menu.open { display: flex; }
  .menu > a:not(.btn), .for-menu summary { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .for-list { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .menu .btn { margin-top: 14px; justify-content: center; }
}

/* layout */
.section, .page-head { padding: clamp(56px, 8vw, 110px) max(16px, calc((100% - var(--wrap)) / 2)); }
.page-head { padding-bottom: 20px; }
.page-head h1 { max-width: 18ch; font-size: clamp(2.3rem, 6vw, 4.6rem); }
.section-head { margin-bottom: 40px; max-width: 760px; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 20px; max-width: none; flex-wrap: wrap; }
.section-head.split h2 { margin: 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .kicker { color: var(--orange); }
.section-dark .muted { color: #a8a196; }
.section-paper2 { background: var(--paper-2); border-block: 2px solid var(--ink); }
.grid-2, .grid-3 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: clamp(48px, 7vw, 100px) max(16px, calc((100% - var(--wrap)) / 2)) clamp(56px, 7vw, 90px);
}
.hero h1 { margin-bottom: 0.35em; }
.hero .lede { margin-bottom: 1.6em; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); margin-right: 6px; animation: pulse 1.6s infinite; vertical-align: 1px; }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* the conveyor */
.line {
  position: relative; height: 360px;
  border: 2px solid var(--ink); border-radius: 22px;
  background: var(--ink); overflow: hidden;
  box-shadow: 8px 8px 0 var(--orange);
}
.belt {
  position: absolute; left: 0; right: 0; bottom: 70px; height: 26px;
  background: repeating-linear-gradient(90deg, #3a3733 0 18px, #23211e 18px 36px);
  border-block: 3px solid #55504a;
  animation: belt 0.9s linear infinite;
}
@keyframes belt { to { background-position: 36px 0; } }
.crates {
  position: absolute; bottom: 99px; left: 0; display: flex; gap: 46px;
  animation: crates 16s linear infinite; white-space: nowrap;
}
@keyframes crates { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.crate {
  font: 600 0.72rem var(--mono); letter-spacing: 0.1em;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink); padding: 26px 16px; border-radius: 6px;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.08);
}
.crate:nth-child(3n) { background: var(--paper); }
.crate:nth-child(4n) { background: var(--orange); }
.press {
  position: absolute; top: 0; left: 50%; width: 120px; margin-left: -60px; height: 150px;
  background: linear-gradient(#55504a, #3a3733); border: 2px solid #6d675f; border-top: 0;
  border-radius: 0 0 10px 10px;
  display: grid; place-items: end center; padding-bottom: 12px;
  animation: press 2s cubic-bezier(.7,0,.3,1) infinite;
}
.press span { font: 900 1rem var(--display); color: var(--orange); letter-spacing: 0.2em; }
.press::before {
  content: ""; position: absolute; top: 18px; left: 10px; right: 10px; height: 10px;
  background: repeating-linear-gradient(45deg, var(--yellow) 0 10px, var(--ink) 10px 20px);
}
@keyframes press { 0%, 55%, 100% { transform: translateY(-40px); } 70%, 78% { transform: translateY(8px); } }

/* ticker */
.ticker { background: var(--orange); border-block: 2px solid var(--ink); overflow: hidden; }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 14px 0; font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; animation: crates 30s linear infinite; }
.sep { opacity: 0.6; }

/* stats & cards */
.stat { border-top: 3px solid var(--ink); padding-top: 18px; }
.stat-n { display: block; font-weight: 900; font-size: clamp(2.6rem, 5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; color: var(--orange-ink); }
.card {
  position: relative; display: block; text-decoration: none;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 26px; box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
a.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--orange); }
.card-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.tag { display: inline-block; font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 10px; }
.status { font-size: 0.75rem; color: var(--orange-ink); text-transform: uppercase; letter-spacing: 0.1em; }
.status::before { content: "● "; }
.hack-card h3 { font-size: 2rem; }
.meta { font-size: 0.8rem; color: var(--muted); margin: 0; }
.arrow { position: absolute; right: 24px; bottom: 20px; font-size: 1.5rem; font-weight: 900; transition: transform 0.15s; }
a.card:hover .arrow { transform: translateX(5px); color: var(--orange-ink); }
.card.mini { padding: 20px 20px 44px; }
.card.mini p { margin: 12px 0 0; }
.point .st-n { margin-bottom: 14px; }

/* tabs */
.tabs { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.tablist { display: flex; flex-direction: column; gap: 6px; }
.tablist button {
  text-align: left; font: 800 1.1rem var(--display); color: var(--paper);
  background: none; border: 2px solid transparent; border-radius: 10px;
  padding: 12px 16px; cursor: pointer; transition: background 0.15s;
}
.tablist button:hover { background: var(--ink-2); }
.tablist button[aria-selected="true"] { background: var(--orange); color: var(--ink); border-color: var(--paper); }
.panels h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 22ch; }
[role="tabpanel"] { animation: rise 0.35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; background: var(--orange); border: 2px solid currentColor; transform: rotate(45deg); }
@media (max-width: 860px) {
  .tabs { grid-template-columns: 1fr; gap: 24px; }
  .tablist { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .tablist button { white-space: nowrap; font-size: 0.95rem; padding: 10px 14px; }
}

/* stations */
.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.station { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 30px 0; border-top: 2px solid var(--ink); }
.station:last-child { border-bottom: 2px solid var(--ink); }
.station h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.2em; }
.st-line { font-weight: 800; color: var(--orange-ink); font-size: 1.15rem; }
.station p:last-child { max-width: 62ch; margin: 0; }
.st-n { display: inline-block; font-size: 0.85rem; font-weight: 600; background: var(--ink); color: var(--paper); border-radius: 6px; padding: 4px 8px; height: fit-content; }
.stations.compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; margin-bottom: 40px; }
.stations.compact li { display: grid; gap: 8px; align-content: start; border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; background: var(--paper); position: relative; }
.stations.compact li strong { font-size: 1.3rem; }
.stations.compact li span:last-child { color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
.stations.compact .st-n { width: fit-content; }

/* dials */
.dial { border: 2px solid var(--paper); border-radius: var(--radius); padding: 28px; }
.dial h3 { color: var(--orange); font-size: 1.7rem; }

/* bounties */
.bounties { display: grid; gap: 16px; }
.bounty {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: 5px 5px 0 var(--ink);
}
.bounty h3 { margin-bottom: 0.3em; }
.bounty p { margin-bottom: 0.4em; }
.bounty-reward {
  font-weight: 900; font-size: 2.4rem; letter-spacing: -0.04em; text-align: center;
  background: var(--yellow); border: 2px dashed var(--ink); border-radius: 10px; padding: 12px 6px;
  transform: rotate(-3deg);
}
@media (max-width: 600px) { .bounty { grid-template-columns: 1fr; gap: 14px; } .bounty-reward { width: fit-content; padding: 8px 18px; } }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  display: inline-flex; gap: 8px; align-items: center;
  border: 2px solid currentColor; border-radius: 999px; padding: 10px 18px;
  font-weight: 700; text-decoration: none; cursor: pointer; background: none; color: inherit; font-family: var(--display); font-size: 1rem;
  transition: background 0.12s, color 0.12s;
}
.chip:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"]::after { content: "✓"; }

/* CTA band */
.cta-band { background: var(--orange); border-top: 2px solid var(--ink); }
.cta-inner { padding: clamp(56px, 8vw, 100px) 16px; text-align: center; }
.cta-inner h2 { max-width: 18ch; margin-inline: auto; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta-inner p { font-size: 1.2rem; margin-bottom: 1.6em; }
.hazard { height: 18px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px); border-bottom: 2px solid var(--ink); }

/* brief */
.brief-head .lede { max-width: 56ch; }
.brief-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.brief-meta span { border: 2px solid var(--ink); border-radius: 6px; padding: 4px 10px; font-size: 0.85rem; }
.brief-meta span:first-child { background: var(--orange); }
.brief { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding-top: 30px; }
.brief-main h2 { font-size: 2rem; margin-top: 0.6em; }
.brief-main p { max-width: 64ch; }
.brief-side { display: grid; gap: 20px; align-content: start; }
.brief-side .ticks { margin: 0; font-size: 0.95rem; }
@media (max-width: 900px) { .brief { grid-template-columns: 1fr; } }

/* form */
.intake { display: grid; gap: 34px; max-width: 900px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 900; font-size: 1.5rem; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; letter-spacing: -0.01em; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.role-opt { cursor: pointer; position: relative; }
.role-opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; }
.role-opt span {
  display: grid; gap: 4px; height: 100%;
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 18px; background: var(--paper);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.role-opt small { color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
.role-opt:hover span { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.role-opt input:checked + span { background: var(--orange); box-shadow: 4px 4px 0 var(--ink); }
.role-opt input:checked + span small { color: var(--ink); }
.role-opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.intake .chips { margin: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { display: grid; gap: 6px; font-weight: 700; }
.fields label small { font-weight: 400; color: var(--muted); }
.fields .full { grid-column: 1 / -1; }
input, textarea, select {
  font: 400 1rem var(--display); color: var(--ink);
  background: #fffdf8; border: 2px solid var(--ink); border-radius: 10px; padding: 12px 14px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; box-shadow: 4px 4px 0 var(--orange); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 700; }
.form-status.error { color: #b3261e; }
.done { text-align: center; padding: 40px 0; }
.done .lede { margin-inline: auto; }
.stamp {
  display: inline-block; font: 900 2.4rem var(--display); letter-spacing: 0.08em;
  color: var(--orange-ink); border: 5px solid var(--orange-ink); border-radius: 10px;
  padding: 8px 22px; transform: rotate(-6deg); margin-bottom: 30px;
  animation: stamp 0.45s cubic-bezier(.2,1.6,.4,1);
}
@keyframes stamp { from { transform: rotate(-6deg) scale(2.4); opacity: 0; } }

/* footer */
.footer { background: var(--ink); color: var(--paper); }
.footer .hazard { border-color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 56px max(16px, calc((100% - var(--wrap)) / 2)) 30px; }
.footer .muted { color: #a8a196; max-width: 32ch; margin-top: 14px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols div { display: grid; gap: 8px; align-content: start; }
.footer-cols h4 { font-size: 0.8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--orange); margin-bottom: 4px; }
.footer-cols a { text-decoration: none; color: #d8d1c4; }
.footer-cols a:hover { color: var(--orange); }
.footer-base { padding: 18px max(16px, calc((100% - var(--wrap)) / 2)); margin: 0; border-top: 1px solid #36332e; font-size: 0.8rem; color: #8d877d; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* admin */
.admin .table-wrap { overflow-x: auto; margin-top: 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fffdf8; }
.admin table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.admin th, .admin td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.admin #auth input, .admin select { width: auto; min-width: 220px; }
.admin-tools { margin-top: 20px; }

/* weekend shifts */
.shifts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.shift { padding: 28px 26px 30px; border-right: 2px dashed var(--ink); position: relative; min-width: 0; }
.shift:last-child { border-right: 0; background: var(--orange); }
.shift h3 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.3em; }
.shift p:last-child { margin: 0; }
.shift-day { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 14px; display: inline-block; background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: 6px; }
@media (max-width: 900px) { .shift { border-right: 0; border-bottom: 2px dashed var(--ink); } .shift:last-child { border-bottom: 0; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.15rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.3rem var(--mono); color: var(--orange-ink); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; max-width: 62ch; }

/* brief facts */
.facts { background: var(--yellow); }
.facts dl { margin: 0; display: grid; gap: 12px; }
.facts dt { font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.facts dd { margin: 2px 0 0; font-weight: 600; line-height: 1.4; }
