/* hiring.roomrr.com: careers and hackathons. Dark by default, like roomrr.com. */
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-extrabold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --ink: #f6f3ef;
  --body: #c9c3ba;
  --soft: #9d978e;
  --bg: #0f0e0c;
  --card: #181613;
  --raise: #201d19;
  --field: #201d19;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --peach: #1f1711;
  --accent: #fc8a2a;
  --accent-ink: #ffb26b;
  --brand: linear-gradient(135deg, #e84b19, #fc9b04);
  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, .12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, .12);
  --bad: #f87171;
  --bad-bg: rgba(248, 113, 113, .12);
  --shadow: 0 12px 34px rgba(0, 0, 0, .5);
  --radius: 18px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #191919;
  --body: #3f4557;
  --soft: #626878;
  --bg: #ffffff;
  --card: #ffffff;
  --raise: #fdf6f1;
  --field: #ffffff;
  --line: #efe4d9;
  --line-strong: #e2d3c4;
  --peach: #fdf3ea;
  --accent: #e2591b;
  --accent-ink: #c2410c;
  --ok: #047857;
  --ok-bg: #e7f8f0;
  --warn: #b45309;
  --warn-bg: #fff6e0;
  --bad: #b91c1c;
  --bad-bg: #fdecec;
  --shadow: 0 10px 30px rgba(52, 28, 10, .1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 16px/1.6 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
a { color: var(--accent-ink); }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-word { display: inline-flex; align-items: center; font-weight: 800; font-size: 22px; letter-spacing: -.04em; }
.brand-word img { height: 14px; width: auto; margin: 2px 1px 0 2px; }
.brand-tag { font-size: 13px; font-weight: 700; color: var(--soft); padding-left: 10px; border-left: 1px solid var(--line-strong); }
.top nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.top nav a { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.top nav a:hover { color: var(--ink); background: var(--raise); }
.theme { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
:root[data-theme="light"] .theme .moon, :root:not([data-theme="light"]) .theme .sun { display: none; }
@media (max-width: 640px) {
  .brand-tag { display: none; }
  .top nav a.hide-sm { display: none; }
}

/* ── Buttons, pills ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .15s ease, opacity .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(232, 75, 25, .28); }
.btn-ghost { background: var(--raise); color: var(--ink); border: 1px solid var(--line); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--raise); color: var(--body); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.pill.hot { background: rgba(252, 138, 42, .14); color: var(--accent-ink); border-color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok .dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(252, 138, 42, .22), transparent 70%); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; letter-spacing: -.045em; max-width: 14ch; }
.hero h1 em { font-style: normal; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); max-width: 56ch; margin: 22px 0 32px; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.035em; }
.section-head p { margin: 8px 0 0; color: var(--soft); max-width: 60ch; }
.count { font-size: 14px; font-weight: 700; color: var(--soft); }

/* Filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--body); padding: 7px 14px; border-radius: 99px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Job rows */
.jobs { display: grid; gap: 12px; }
.job { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease; }
.job:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.job h3 { font-size: 19px; font-weight: 800; }
.job p { margin: 6px 0 0; font-size: 14.5px; color: var(--soft); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13.5px; color: var(--body); font-weight: 600; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; fill: none; stroke: var(--soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--raise); border: 1px solid var(--line); color: var(--ink); flex: none; }
.arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.job:hover .arrow { background: var(--brand); color: #fff; border-color: transparent; }

/* Hackathon cards */
.hacks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.hack { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.hack::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand); opacity: .9; }
.hack:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.hack h3 { font-size: 21px; font-weight: 800; }
.hack p { margin: 0; color: var(--soft); font-size: 14.5px; }
.prize { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--peach); color: var(--ink); font-weight: 700; font-size: 14px; }
.prize svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hack .meta { margin-top: auto; }

/* Empty, loading, error */
.state { padding: 36px 28px; border-radius: var(--radius); background: var(--card); border: 1px dashed var(--line-strong); text-align: center; color: var(--soft); }
.state h3 { font-size: 18px; margin-bottom: 6px; }
.state p { margin: 0 auto; max-width: 52ch; }
.skeleton { height: 92px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card), var(--raise), var(--card)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14.5px; color: var(--soft); }

/* ── Detail pages ─────────────────────────────────────────────────────── */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--soft); text-decoration: none; margin: 28px 0 18px; }
.back:hover { color: var(--ink); }
.detail-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.detail-head h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.04em; }
.detail-head .lead { font-size: 18px; margin: 14px 0 0; max-width: 62ch; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding-bottom: 80px; }
.layout aside { position: sticky; top: 88px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } .layout aside { position: static; } }
.facts { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }

/* Rendered Markdown */
.prose { font-size: 16.5px; line-height: 1.75; color: var(--body); }
.prose h2, .prose h3 { margin: 1.8em 0 .6em; font-size: 22px; font-weight: 800; }
.prose h4 { margin: 1.4em 0 .5em; font-size: 18px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--raise); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.panel { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.panel > p.sub { margin: 0 0 22px; color: var(--soft); font-size: 14.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field .opt { font-weight: 600; color: var(--soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--field); color: var(--ink);
  font: inherit; font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(252, 138, 42, .2); }
.field.has-error input, .field.has-error textarea { border-color: var(--bad); }
.field .err { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--bad); }
.field.has-error .err { display: block; }
.field .hint { margin-top: 6px; font-size: 12.5px; color: var(--soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--raise); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop strong { display: block; color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
.drop span { font-size: 12.5px; color: var(--soft); }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent-ink); cursor: pointer; margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--body); margin: 6px 0 20px; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: #e8591b; flex: none; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; margin-bottom: 18px; }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.done { text-align: center; padding: 12px 0; }
.done .tick { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.done .tick svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { margin-bottom: 8px; }
.done p { margin: 0 0 6px; color: var(--soft); }

/* ── Hackathon workspace ──────────────────────────────────────────────── */
.workbar { position: sticky; top: 64px; z-index: 10; margin: 0 calc(var(--gut) * -1) 24px; padding: 12px var(--gut); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.timer { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; color: var(--ink); }
.timer svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.timer.low { color: var(--warn); }
.timer.out { color: var(--bad); }
.timer small { font-size: 13px; font-weight: 600; color: var(--soft); }
.saved { font-size: 13.5px; font-weight: 600; color: var(--soft); }
.saved.err { color: var(--bad); }
.workbar .btn { margin-left: auto; }
.progress-line { height: 4px; border-radius: 4px; background: var(--raise); overflow: hidden; flex-basis: 100%; }
.progress-line i { display: block; height: 100%; background: var(--brand); transition: width .3s ease; }
.q { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin-bottom: 16px; }
.q.missing { border-color: var(--bad); }
.q-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.q-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--peach); color: var(--accent-ink); font-weight: 800; font-size: 14px; }
.q h3 { font-size: 18px; font-weight: 800; }
.q .q-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.q .prose { font-size: 15px; margin: 0 0 14px 46px; }
.q .answer { margin-left: 46px; }
@media (max-width: 640px) { .q .prose, .q .answer { margin-left: 0; } }
.q textarea { width: 100%; min-height: 180px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.6; resize: vertical; }
.q textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(252, 138, 42, .2); }
.q textarea[readonly] { opacity: .75; }
.q-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--soft); }
.upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); }
.upload .name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.upload .bar { flex-basis: 100%; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.upload .bar i { display: block; height: 100%; width: 0; background: var(--brand); }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px; border-radius: var(--radius); background: var(--peach); margin-bottom: 80px; }
.submit-row p { margin: 0; color: var(--body); font-size: 14.5px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--body); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* A consent checkbox inside a .field: a row, not a block label */
.field label.check { display: flex; font-weight: 500; font-size: 13.5px; color: var(--body); margin-bottom: 0; }
.panel.done { padding: 36px 28px; }
