:root {
  color-scheme: light;
  --canvas: #f4f0e8;
  --surface: #fcfaf5;
  --ink: #26221d;
  --muted: #78705f;
  --line: #ddd3c2;
  --accent: #68594a;
  --accent-ink: #fdfbf7;
  --soft: #ece2d2;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #121110;
  --surface: #191816;
  --ink: #ede5d6;
  --muted: #a39786;
  --line: #2d2a26;
  --accent: #cbb48d;
  --accent-ink: #18140f;
  --soft: #211e1a;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button { font: inherit; }

.shell { width: min(100% - 2.5rem, 960px); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0 4.5rem;
}

.brand { color: inherit; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.07em; text-decoration: none; }

.theme-toggle {
  display: inline-flex; gap: .45rem; align-items: center; padding: .42rem .7rem;
  color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}

.theme-toggle:hover { background: var(--soft); }

.intro { max-width: 680px; }
.eyebrow { margin: 0 0 .7rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 1.2rem; font-size: clamp(2.35rem, 6vw, 4.4rem); font-weight: 500; letter-spacing: -.065em; line-height: .99; }
h2 { margin-bottom: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.035em; }
.lede { max-width: 565px; margin-bottom: 3.2rem; color: var(--muted); font-size: 1.05rem; }

.drop-card { padding: clamp(1.35rem, 4vw, 2.2rem); background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; }
.card-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.status-pill { padding: .25rem .55rem; color: var(--muted); background: var(--soft); border-radius: 999px; font-size: .76rem; }
.empty-message { margin: 2.2rem 0 1.4rem; color: var(--muted); }
.drop-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.button { padding: .7rem 1rem; border: 1px solid transparent; border-radius: .36rem; cursor: pointer; font-weight: 600; }
.button--primary { color: var(--accent-ink); background: var(--accent); }
.button--secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button:hover { filter: brightness(.96); }
.button:focus-visible, .theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.supporting-text { margin: 1.5rem 0 0; color: var(--muted); font-size: .8rem; }

.how-it-works { padding: 4.5rem 0; }
.how-it-works h2 { margin-bottom: 1.25rem; }
ol { display: grid; gap: .85rem; padding: 0; margin: 0; list-style: none; color: var(--muted); }
ol span { display: inline-block; width: 2.2rem; color: var(--ink); font-size: .75rem; font-weight: 700; }
.site-footer { width: min(100% - 2.5rem, 960px); margin: 0 auto; padding: 1.2rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.is-hidden { display: none; }

.composer { margin: 1.6rem 0; }
.field-label { display: block; margin-bottom: .5rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.composer textarea {
  width: 100%; padding: .85rem; color: var(--ink); background: var(--canvas);
  border: 1px solid var(--line); border-radius: .5rem; font: inherit; resize: vertical;
}
.composer textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.composer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; margin-top: .75rem; }
.composer-row__left { display: flex; gap: .5rem; }
.composer-divider { display: flex; align-items: center; margin: 1.1rem 0; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.composer-divider::before, .composer-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.composer-divider span { padding: 0 .75rem; }
.form-message { min-height: 1.3rem; margin: .75rem 0 0; color: var(--muted); font-size: .85rem; }

@media (max-width: 560px) {
  .site-header { padding-bottom: 3.25rem; }
  .lede { font-size: 1rem; }
  .card-heading { flex-direction: column; }
}
