/* getdaily — the shell's one stylesheet. Colours are tokens, redefined for dark. */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1d1c1a;
  --muted: #6b6861;
  --border: #e4e1da;
  --accent: #1d1c1a;
  --accent-text: #ffffff;
  --focus: #2f6fdf;
  --error: #b42318;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surface: #1d1c1a;
    --text: #edebe6;
    --muted: #a19d94;
    --border: #34322e;
    --accent: #edebe6;
    --accent-text: #141413;
    --focus: #7aa7ff;
    --error: #f97066;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; }

.masthead { border-bottom: 1px solid var(--border); background: var(--surface); }
.masthead-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--bg); font-weight: 600; }

.page { max-width: 880px; margin: 0 auto; padding: 40px 16px 64px; }
.page.narrow { max-width: 440px; }

h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 17px; margin: 0 0 8px; }
.lede { font-size: 17px; margin: 0 0 24px; }
.muted { color: var(--muted); }

.stack { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.label { font-weight: 600; font-size: 14px; }
input[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); margin: 0; font-size: 14px; }

.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius);
  padding: 10px 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }

.card, .empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 16px;
}
.card p, .empty p { margin: 0 0 12px; }
.card p:last-child, .empty p:last-child { margin: 0; }
.empty { color: var(--muted); }

fieldset { border: 1px solid var(--border); border-radius: var(--radius); }
fieldset label { display: inline-block; padding: 8px; }
iframe { width: 100%; min-height: 560px; border: 1px solid var(--border); background: white; }

/* Shared controls and long content must remain usable at phone widths and zoom. */
main, section, aside, form, .field { min-width: 0; }
body { overflow-wrap: anywhere; }
input:not([type="hidden"]):not([type="checkbox"]), select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--muted); border-radius: var(--radius);
  padding: 10px 12px; max-width: 100%;
}
input[type="email"], .field input, .field select { width: 100%; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; vertical-align: middle; }
button:not(.button) { font: inherit; padding: 10px 18px; cursor: pointer; }
form { margin-bottom: 16px; }
fieldset { margin: 0; padding: 12px; }
legend, label { font-weight: 600; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
dd { margin: 0 0 12px; }
dt { font-weight: 600; }
iframe { border-radius: var(--radius); }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.landing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.landing h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -.04em; }
.benefits { padding-left: 20px; margin-bottom: 28px; }
.benefits li { margin-bottom: 8px; }
.sample { margin-top: 12px; }
.sample ol { padding-left: 24px; }
.sample li { padding: 16px 0; border-top: 1px solid var(--border); }
h3 { font-size: 17px; line-height: 1.4; margin: 0 0 8px; }
.history-list { list-style: none; padding: 0; }
.history-list li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.history-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 600px) {
  .landing { grid-template-columns: 1fr; gap: 16px; }
  .page { padding-top: 28px; }
  .masthead-inner { gap: 8px; }
  .nav { width: 100%; }
  .nav a { padding: 10px; }
  .card, .empty { padding: 16px; }
  .button { max-width: 100%; }
}
