:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5f6c64;
  --paper: #f4f6ef;
  --card: #ffffff;
  --accent: #176b4d;
  --accent-dark: #0d4934;
  --line: #d9e0d8;
  --error: #9c2f2f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, #e3eee2, transparent 38rem), var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: var(--accent); }
.site-header, main, footer { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { display: flex; align-items: baseline; gap: 1rem; padding: 1.4rem 0; color: var(--muted); }
.brand { color: var(--ink); font-size: 1.35rem; font-weight: 800; text-decoration: none; }
main { min-height: calc(100vh - 12rem); padding: 3rem 0; }
.hero, .panel { max-width: 800px; margin: 0 auto; background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 5vw, 4rem); box-shadow: 0 18px 60px rgb(28 55 38 / 9%); }
h1 { max-width: 17ch; margin: .2rem 0 1rem; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; }
.panel h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: 1.05rem; }
.eyebrow { margin: 0; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted, small { color: var(--muted); }
form { margin-top: 2rem; }
label, legend { font-weight: 750; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: .7rem; margin-top: .5rem; }
input[type="text"] { width: 100%; margin-top: .45rem; padding: .9rem 1rem; border: 1px solid #aebbb1; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
input:focus { outline: 3px solid rgb(23 107 77 / 20%); border-color: var(--accent); }
button, .button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 10px; padding: .9rem 1.2rem; background: var(--accent); color: white; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: var(--accent-dark); }
.button.secondary { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 800px; margin: 1rem auto 0; }
.steps article { padding: 1rem; }
.steps strong { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #dceadf; color: var(--accent-dark); }
.steps h2 { margin-bottom: .2rem; }.steps p { margin-top: 0; color: var(--muted); font-size: .92rem; }
fieldset { margin: 1.5rem 0; padding: 0; border: 0; }
.feed-choice { display: flex; gap: .8rem; align-items: flex-start; margin-top: .7rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.feed-choice input { margin-top: .3rem; transform: scale(1.25); accent-color: var(--accent); }
.feed-choice span, .feed-choice small { display: block; overflow-wrap: anywhere; }
.empty-state { margin-top: 2rem; padding: 1.4rem; border-radius: 14px; background: #f0f4ee; }
.message { max-width: 800px; margin: 0 auto 1rem; padding: 1rem; border-radius: 10px; background: white; border: 1px solid var(--line); }
.message.error { border-color: #e7b6b6; color: var(--error); }
.feed-url { margin: 1.2rem 0; padding: 1rem; border-radius: 10px; background: #edf3ed; overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
footer { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 680px) {
  .site-header span { display: none; }
  main { padding-top: 1rem; }
  .input-row, .steps { grid-template-columns: 1fr; }
  h1 { font-size: 2.7rem; }
}

