/* InetKing — classroom apps. Dark-first, one stylesheet, no frameworks.
   Shares the palette of inetking.net so the two sites read as one family. */

:root {
  --ink: #0b1220;
  --surface: #111a2b;
  --surface-2: #162033;
  --line: #1e2a3f;
  --text: #e6edf7;
  --muted: #93a2b8;
  --amber: #f2a93b;
  --cyan: #3fb8d8;
  --green: #4ecb8d;
  --violet: #9a7cf7;
  --rose: #e8739b;
  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, #16243d 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #1a2030 0%, transparent 55%),
    var(--ink);
  color: var(--text);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img, svg { max-width: 100%; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--amber); color: #1a1205;
  padding: .5rem 1rem; border-radius: 0 0 8px 0; z-index: 50;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 760px; }

/* ---------------------------------------------------------------- header -- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 18, 32, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--amber), #c9762a);
  display: grid; place-items: center; color: #1a1205; font-size: 12px; font-weight: 800;
}
.nav { display: flex; gap: 1.15rem; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.nav a:hover { color: var(--text); }
.nav-out { color: var(--amber); }

/* ------------------------------------------------------------------ hero -- */
.hero { padding: 4rem 0 2.75rem; }
.hero h1 {
  margin: 0 0 1rem; max-width: 22ch;
  font-size: clamp(2.2rem, 5.4vw, 3.5rem); line-height: 1.05; letter-spacing: -.02em;
}
.eyebrow {
  margin: 0 0 .9rem; color: var(--amber);
  font: 600 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em; text-transform: uppercase;
}
.lede { max-width: 56ch; color: var(--muted); font-size: 1.08rem; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: .6rem 1.15rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--text);
  font: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: #33456a; background: var(--surface-2); }
.btn-primary { background: var(--amber); border-color: var(--amber); color: #1a1205; }
.btn-primary:hover { background: #ffbf5a; border-color: #ffbf5a; }
.btn:disabled { opacity: .5; cursor: default; }

/* --------------------------------------------------------------- sections -- */
.section { padding: 3rem 0; }
.section-alt { background: rgba(255, 255, 255, .025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.01em; }
.section-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.empty { color: var(--muted); }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ grid -- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card {
  display: block; padding: 1.25rem;
  background: linear-gradient(180deg, var(--surface), rgba(17, 26, 43, .75));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: #334d78; transform: translateY(-2px); }
.card h3 { margin: .5rem 0 .4rem; font-size: 1.1rem; }
.card p { margin: 0 0 .9rem; color: var(--muted); font-size: .92rem; }
.card-kicker { font: 600 .68rem/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.card-go { font-size: .85rem; color: var(--amber); }

/* ------------------------------------------------------------- requested -- */
.req-card { display: flex; flex-direction: column; }
.req-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.req-count { color: var(--muted); font-size: .78rem; }
.pill {
  display: inline-block; padding: .18rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid transparent;
}
.is-requested { background: rgba(63, 184, 216, .14); color: #7fd7ea; border-color: rgba(63, 184, 216, .3); }
.is-review { background: rgba(154, 124, 247, .14); color: #bda9ff; border-color: rgba(154, 124, 247, .3); }
.is-building { background: rgba(242, 169, 59, .14); color: #ffc971; border-color: rgba(242, 169, 59, .3); }
.is-live { background: rgba(78, 203, 141, .14); color: #86e6b8; border-color: rgba(78, 203, 141, .3); }
.is-declined { background: rgba(147, 162, 184, .12); color: var(--muted); }
.text-link { margin-top: auto; font-size: .88rem; color: var(--amber); }

/* ------------------------------------------------------------------ form -- */
.request-card {
  padding: 1.6rem;
  background: rgba(17, 26, 43, .7);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.request-card h2 { margin: 0 0 .4rem; font-size: 1.5rem; }
.request-card .sub { margin: 0 0 1.3rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: .9rem; }
.field > span { display: block; margin-bottom: .35rem; font-size: .82rem; color: var(--muted); }
.field em { font-style: normal; opacity: .65; }
.field input, .field select, .field textarea {
  width: 100%; padding: .62rem .75rem;
  background: #0c1424; color: var(--text);
  border: 1px solid #24334c; border-radius: 10px;
  font: inherit; font-size: .95rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(242, 169, 59, .5); outline-offset: 1px; border-color: var(--amber);
}
.hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.fine { margin: .9rem 0 0; color: var(--muted); font-size: .78rem; }
.alert {
  margin: 0 0 1rem; padding: .75rem 1rem;
  border: 1px solid rgba(232, 115, 155, .4); border-radius: 10px;
  background: rgba(232, 115, 155, .1); color: #ffc0d2;
}
.alert p { margin: .2rem 0; }

/* -------------------------------------------------------------- duplicate -- */
.original {
  margin: 0 0 1.3rem; padding: 1.1rem;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line); border-radius: 12px;
}
.original h3 { margin: .55rem 0 .35rem; }
.original p { margin: 0; color: var(--muted); }
.choice-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.choice-row form { margin: 0; }

/* ---------------------------------------------------------------- thanks -- */
.thanks-card { text-align: center; padding: 2rem 1.5rem; }
.thanks-card .cta-row { justify-content: center; }

/* ------------------------------------------------------------------- 404 -- */
.notfound { padding: 5rem 0 6rem; }
.countdown { color: var(--muted); }

/* ----------------------------------------------------------------- footer -- */
.site-foot { border-top: 1px solid var(--line); padding: 1.6rem 0 2rem; margin-top: 2rem; }
.foot-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-copy { margin: 0; color: var(--muted); font-size: .9rem; }
.foot-copy a { color: var(--amber); }
.foot-note { margin: 0; color: var(--muted); font-size: .8rem; }

/* ------------------------------------------------------------- app shell -- */
.app { padding: 2.5rem 0 4rem; }
.app h1 { margin: 0 0 .35rem; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.app .lede { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
