/* Threnne Studio. Colors and type from the Studio mockups. */
:root {
  --ink: #111111;
  --muted: #6A4B58;
  --rose: #C2335F;
  --rose-bar: #D1396A;
  --blush: #FAF6F8;
  --line: #EBDDE2;
  --chip: #F4EEF1;
  --alert: #FFE8EA;
  --lime: #C8F560;
  --focus: #2F5FD0;
  --sans: Outfit, 'Avenir Next', Arial, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --brand: 'Hanken Grotesk', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
a { color: var(--ink); }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.serif { font-family: var(--serif); font-weight: 400; }
h1.serif { font-size: 48px; line-height: 1.08; margin: 8px 0 6px; }
.serif em, h1 em { font-family: var(--serif); font-style: italic; color: var(--rose); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); margin: 0; }
.lede { margin: 0; font-size: 19px; color: var(--muted); max-width: 640px; }
.section-gap { margin-top: 36px; margin-bottom: 12px; }

/* brand */
.brand { display: flex; align-items: baseline; gap: 8px; }
.wordmark { font-family: var(--brand); font-weight: 600; font-size: 24px; letter-spacing: -0.015em; }
.by { font-size: 13px; color: var(--muted); }
.threnne { font-family: var(--brand); font-weight: 600; color: var(--rose); }
.brand-lg .wordmark { font-size: 30px; }

/* buttons and fields */
button { font: inherit; cursor: pointer; }
.btn-dark { background: var(--ink); color: #fff; border: 0; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 17px; box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 24px 48px -28px rgba(17,17,17,.32); }
.btn-dark:disabled { opacity: .5; cursor: default; }
.btn-link { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); padding: 10px 14px; border-radius: 999px; font-size: 15px; }
.pill-btn[aria-pressed="true"] { background: var(--rose-bar); border-color: var(--rose-bar); color: #fff; }
.pill-btn.listening { background: var(--ink); border-color: var(--ink); color: #fff; }
label { font-size: 15px; font-weight: 600; }
input, textarea { font: inherit; font-size: 17px; color: var(--ink); width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fff; }
textarea { resize: vertical; min-height: 96px; }
.code-input { font-family: var(--mono); font-size: 26px; letter-spacing: .2em; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.msg { min-height: 1.2em; margin: 6px 0 0; font-size: 15px; }
.msg.error { color: #B3261E; }

/* sign in */
.signin { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: var(--blush); padding: 24px; }
.signin-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px 28px; box-shadow: 0 24px 48px -32px rgba(17,17,17,.25); }
.signin-card h1.serif { font-size: 40px; margin: 18px 0 22px; }

/* app shell */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.side { flex: 0 0 240px; background: var(--blush); border-right: 1px solid var(--line); padding: 28px 18px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; height: 100dvh; }
.side .brand { padding: 0 10px 24px; }
.side a { text-decoration: none; padding: 11px 12px; border-radius: 12px; }
.side a.active { background: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--rose-bar), 0 1px 0 rgba(17,17,17,.04); }
.side-label { margin-top: 26px; padding: 0 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.side-soon { padding: 8px 12px; color: var(--muted); font-size: 15px; }
.side-foot { margin-top: auto; padding: 0 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
main { flex: 1; min-width: 0; padding: 40px 48px 60px; }
.view { max-width: 900px; }
.phone-brand { display: none; }

/* spotlight */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.group { border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 1px 0 rgba(17,17,17,.04); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.group-title { font-size: 17px; font-weight: 600; }
.count { font-size: 22px; font-weight: 600; }
.note { margin-top: 24px; border-radius: 28px; padding: 18px 20px; background: var(--alert); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; }
.note a { font-weight: 600; }

/* requests */
.req-form { margin-top: 28px; border: 1px solid var(--line); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.req-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.req-tools { display: flex; gap: 8px; }
.req-list { display: flex; flex-direction: column; gap: 10px; }
.req-item { border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.req-text { font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.req-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.status { font-size: 13px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; background: var(--chip); }
.status.urgent { background: var(--rose-bar); color: #fff; }
.status.fixed { background: var(--lime); }
.empty { color: var(--muted); font-size: 15px; padding: 8px 0; }

/* phone tab bar */
.tabbar { display: none; }

@media (max-width: 760px) {
  .side { display: none; }
  main { padding: 18px 20px calc(96px + env(safe-area-inset-bottom)); }
  .phone-brand { display: flex; margin-bottom: 14px; }
  .phone-brand .wordmark { font-size: 20px; }
  .phone-brand .by { font-size: 12px; }
  h1.serif { font-size: 34px; }
  .lede { font-size: 16px; }
  .groups { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .group { padding: 16px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 8px calc(12px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; text-align: center; text-decoration: none; font-size: 14px; padding: 10px 0; color: var(--muted); }
  .tabbar a.active { color: var(--ink); font-weight: 700; }
  .req-form { padding: 16px; }
}
