/* Learn Awesome workshop style, matched to the Escape the Clock funnel. */
:root {
  --ink: #0e1a36;
  --navy: #0e1a36;
  --navy-2: #1a2a50;
  --paper: #fbf8f1;
  --paper-2: #efeadc;
  --sun: #ffd24a;
  --blue: #2456e6;
  --rose: #ff5c5c;
  --grass: #66d173;
  --muted: #55607a;
  --display: 'Poppins', 'Futura', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter Tight', -apple-system, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--blue); }
.hidden { display: none !important; }
.dots { background-image: radial-gradient(rgba(14, 26, 54, 0.07) 1.1px, transparent 1.4px); background-size: 24px 24px; }
.dots-l { background-image: radial-gradient(rgba(251, 248, 241, 0.07) 1.1px, transparent 1.4px); background-size: 24px 24px; }

/* top bar */
.bar { background: var(--navy); border-bottom: 3px solid var(--ink); }
.bar-in { max-width: 980px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.badge {
  font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--ink);
  background: var(--sun); border-radius: 6px; padding: 3px 10px; transform: rotate(-2deg); white-space: nowrap;
}

/* navy hero */
.hero { background: var(--navy); color: var(--paper); padding: 32px 0 44px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 28px; padding-bottom: 64px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--sun); padding: 5px 12px; border-radius: 6px; transform: rotate(-1.5deg);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grass); border: 2px solid var(--ink); }
.dot.off { background: var(--rose); }
h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(32px, 7vw, 52px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 18px 0 10px;
}
.hl { background: var(--sun); color: var(--ink); padding: 0 0.14em; border-radius: 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { margin: 0 0 26px; font-size: 18px; opacity: 0.85; }

/* cards + forms */
.card {
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink);
}
.hero .card { border-color: var(--paper); box-shadow: 7px 7px 0 var(--blue); }
.ask { padding: 18px; }
.ask textarea {
  width: 100%; min-height: 100px; resize: vertical; border: 0; outline: 0; background: transparent;
  font-size: 19px; line-height: 1.45; font-weight: 600;
}
.ask textarea::placeholder { color: #8a90a0; }
.ask-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 2px dashed #cfc8b6; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper); }
.seg button { border: 0; background: transparent; padding: 8px 14px; font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.field {
  width: 100%; border: 2px solid var(--ink); border-radius: 12px; padding: 11px 13px; background: #fff; font-weight: 500;
}
.field:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.ask:focus-within { box-shadow: 7px 7px 0 var(--sun); }
.name-row { flex: 1 1 200px; }
.count { font-size: 13px; color: var(--muted); margin-left: auto; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  font-family: var(--display); font-weight: 800; font-size: 16px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; padding: 9px 18px;
  box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--sun); }
.btn.blue { background: var(--blue); color: var(--paper); }
.btn.good { background: var(--grass); }
.btn.small { min-height: 38px; padding: 6px 13px; font-size: 14px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); border-radius: 10px; }
.btn.small:hover { box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { box-shadow: none; border-color: transparent; background: transparent; }
.btn.ghost:hover { transform: none; border-color: var(--ink); }
.btn.danger { color: #c62828; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.notice { padding: 13px 16px; border-radius: 12px; font-weight: 600; margin-top: 16px; border: 2px solid var(--ink); }
.notice.ok { background: var(--grass); color: var(--ink); }
.notice.err { background: var(--rose); color: var(--ink); }
.notice.closed { background: var(--sun); color: var(--ink); }

/* tabs */
.tabs { display: flex; gap: 8px; margin: 0 0 18px; overflow-x: auto; padding: 2px 4px 6px 2px; }
.tabs button {
  border: 2px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 7px 15px;
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--sun); }
.tabs .n { margin-left: 6px; font-size: 12px; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 0 7px; }
.tabs .n:empty { display: none; }

/* question list */
.list { display: grid; gap: 16px; }
.q { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; box-shadow: 5px 5px 0 var(--ink); }
.q.mine { box-shadow: 5px 5px 0 var(--blue); }
.q.spot { background: var(--sun); box-shadow: 6px 6px 0 var(--ink); transform: rotate(-0.6deg); }
.vote {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-width: 58px; height: 66px; border-radius: 12px; border: 2px solid var(--ink); background: #fff;
  font-family: var(--display); font-weight: 800; font-size: 18px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.vote:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.vote svg { width: 20px; height: 20px; }
.vote[aria-pressed='true'] { background: var(--blue); color: var(--paper); }
.q-text { font-size: 17px; font-weight: 700; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.35; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-family: var(--display); font-size: 12px; font-weight: 700; border: 2px solid var(--ink); color: var(--ink); }
.tag.answered { background: var(--grass); }
.tag.mine { background: var(--blue); color: var(--paper); }
.tag.live { background: var(--rose); }
.tag.hidden { background: var(--paper-2); }
.answer { margin-top: 12px; padding: 12px 14px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 12px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer b { display: block; font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); margin-bottom: 2px; }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; font-weight: 600; border: 2px dashed #cfc8b6; border-radius: 18px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 40px; font-weight: 600; }

@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.q.new { animation: pop 0.35s ease-out; }
@media (prefers-reduced-motion: reduce) { .q.new { animation: none; } .btn, .vote { transition: none; } }
