/* Shell styling. Accent locked 2026-09-15 (teal); neutral tokens are
   provisional stand-ins for the paper-muted base.css until it lands. */

:root[data-theme="light"] {
  --paper: #faf7f2;
  --ink: #1f1b16;
  --hairline: #e4ddd2;
  --accent: #3f7d74;
  --accent-cta: #1d8577;
  --field: #ffffff;
  --radius: 10px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #1d1914;
  --ink: #ece7de;
  --hairline: #3a332b;
  --accent: #7fb8ad;
  --accent-cta: #1d8577;
  --field: #211b16;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.brand { font-weight: 700; font-size: 1.25rem; }
.tag { margin: 0; color: var(--accent); }
#theme_toggle {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
}
#theme_toggle .icon { width: 16px; height: 16px; }
/* Show the mode you switch to: moon in light, sun in dark. */
:root[data-theme="light"] #theme_toggle .icon-sun { display: none; }
:root[data-theme="dark"] #theme_toggle .icon-moon { display: none; }

form {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem;
}

label { font-size: 0.875rem; font-weight: 600; }

textarea, input, select {
  font: inherit;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
}

#secondary { display: grid; gap: 0.5rem; }

button {
  font: inherit;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

button#submit, button#add_secondary[type="submit"] { background: var(--accent-cta); color: #fff; }
button.ghost { background: transparent; color: var(--accent); border-color: var(--hairline); }

#result {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.note { color: var(--accent); }
