/* earful.dfive.us — the dfive.us look: bone paper, ink, brass for labels,
   Cormorant for headings, the system sans for everything you read in a list.
   One light theme, like Split and Schedule.

   Two columns on a laptop: finding things on the left, the watch on the
   right (what is on its way, what you follow, what is already on it). One
   column on a phone, where Earful is for searching and sending — the copy to
   the watch happens on the Mac. */

@font-face {
  font-family: "Dfive Cormorant";
  src: url("/cormorant-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper:    #f5f2ec;
  --paper-2:  #efeae1;
  --card:     #fffdf9;
  --ink:      #15181c;
  --ink-soft: #565d64;
  --ink-mute: #8b9199;
  --accent:   #927545;   /* brass — labels and quiet links, never a surface */
  --rule:     #cdc6b8;
  --rule-2:   #e3ded3;
  --good:     #3f6b4f;
  --bad:      #8c3a34;
  --radius:   12px;
  --sans:     -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --serif:    "Dfive Cormorant", Cormorant, Georgia, "Times New Roman", serif;
  --shadow:   0 1px 2px rgba(21, 24, 28, .04), 0 8px 22px rgba(21, 24, 28, .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* The platform sign-in card sits on the same bone paper, full width. */
body.signing-in #app { padding: 0; max-width: none; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1 { font-family: var(--serif); font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; }
code { font: 13px ui-monospace, "SF Mono", Menlo, monospace; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.dim { color: var(--ink-mute); font-weight: 400; letter-spacing: 0; text-transform: none; }
.bad { color: var(--bad) !important; }

/* ── the bar across the top ─────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--rule-2);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.brand-name span { color: var(--ink-mute); font-weight: 500; }
.spacer { flex: 1; }
.watch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--rule-2);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-mute); }
.pill.on i { background: var(--good); box-shadow: 0 0 0 3px rgba(63, 107, 79, .15); }
.pill.off { color: var(--ink-soft); font-weight: 500; }

/* ── layout ─────────────────────────────────────────────────────────────── */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 40px);
  max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 32px) 64px;
}
@media (max-width: 860px) { .layout { grid-template-columns: minmax(0, 1fr); } }

.tabs { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; margin-bottom: 14px; }
.tabs button {
  border: 0; background: transparent; border-radius: 999px; padding: 7px 18px;
  font-weight: 600; font-size: 14px; color: var(--ink-soft); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

.search input {
  width: 100%; height: 48px; padding: 0 16px; font-size: 17px;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card);
  outline: none; box-shadow: var(--shadow);
}
.search input:focus { border-color: var(--accent); }
.results { margin-top: 18px; }

.intro { padding: 18px 2px; max-width: 620px; }
.intro p { color: var(--ink-soft); margin: 10px 0 0; }
.intro .rows { margin-top: 18px; }
.quiet { color: var(--ink-soft); margin: 14px 2px; }
.note { font-size: 13.5px; color: var(--ink-soft); background: var(--paper-2); border-radius: 10px; padding: 10px 12px; margin: 16px 0 0; }

.eyebrow {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin: 22px 0 8px;
}
.side section:first-child .eyebrow { margin-top: 4px; }
.side section + section .eyebrow { margin-top: 26px; }

/* ── rows: every list in the app ────────────────────────────────────────── */
.rows { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--rule-2); min-height: 52px; }
.row:first-child { border-top: 0; }
.row.link { cursor: pointer; }
.row.link:hover { background: #fbf8f2; }
.rows.big .row { padding: 12px 14px; }
.row .empty, .rows .empty { padding: 14px; color: var(--ink-mute); font-size: 13.5px; list-style: none; }
.grow { flex: 1; min-width: 0; }
.title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.meta { color: var(--ink-mute); font-size: 13px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .title { font-size: 14px; -webkit-line-clamp: 1; }
.chev { color: var(--ink-mute); font-size: 22px; padding: 0 4px; }

.art { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--paper-2); }
.art.sm { width: 36px; height: 36px; border-radius: 7px; }
.art.lg { width: 112px; height: 112px; border-radius: 14px; box-shadow: var(--shadow); }
.art.blank { background: var(--paper-2); }

.bar { height: 4px; background: var(--rule-2); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.bar div { height: 100%; background: var(--ink); transition: width .4s; }

.row.ready .meta { color: var(--accent); }
.row.copying .meta { color: var(--good); }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 0 16px; height: 36px; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; white-space: nowrap; flex: none;
}
.btn.small { height: 32px; padding: 0 14px; font-size: 13.5px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn:hover { filter: brightness(1.15); }
.btn.ghost:hover { background: var(--paper-2); filter: none; }
.btn:disabled { cursor: default; filter: none; }
.btn.done { background: transparent; color: var(--good); border-color: transparent; }
.x {
  border: 0; background: transparent; color: var(--ink-mute); font-size: 20px; line-height: 1;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; flex: none;
}
.x:hover { background: var(--paper-2); color: var(--bad); }
.who { font-size: 13px; color: var(--ink-mute); }
.intro .actions { display: flex; gap: 10px; margin-top: 16px; }
.intro .eyebrow { margin-top: 30px; }
#songs-results { margin-top: 10px; }
.back { border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 4px 0; margin-bottom: 10px; }
.linkish { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }

.showhead { display: flex; gap: 18px; align-items: center; margin: 4px 0 18px; }
.showhead h1 { font-size: 30px; }
.showhead .actions { display: flex; gap: 8px; margin-top: 10px; }

/* ── drop target and toast ──────────────────────────────────────────────── */
.drop {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: center;
  background: rgba(245, 242, 236, .86); pointer-events: none;
}
.drop div {
  font-family: var(--serif); font-size: 32px; padding: 40px 56px;
  border: 2px dashed var(--accent); border-radius: 22px; background: var(--card);
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow); max-width: calc(100vw - 32px);
}
