:root {
  color-scheme: light;
  --bg: #f5f2ec;
  --surface: #fffdf9;
  --surface-muted: #eee9e0;
  --text: #292824;
  --muted: #625e57;
  --line: rgba(65, 58, 48, .15);
  --accent: #ae5845;
  --accent-dark: #8f4536;
  --teal: #276e68;
  --teal-dark: #205b56;
  --shadow: 0 28px 80px rgba(64, 48, 34, .075);
  --focus: #ab563d;
  --max: 1280px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171b1b;
  --surface: #222828;
  --surface-muted: #29302e;
  --text: #f4eee5;
  --muted: #c5bdb1;
  --line: rgba(239, 231, 217, .18);
  --accent: #e3a18a;
  --accent-dark: #f0b49d;
  --teal: #8abdb2;
  --teal-dark: #9acdc1;
  --shadow: 0 28px 80px rgba(0, 0, 0, .24);
  --focus: #f0b49d;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  transition: background-color .24s ease, color .24s ease;
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(1020px, 110vh);
  pointer-events: none;
  background: radial-gradient(ellipse at 84% 19%, rgba(197, 119, 91, .13), transparent 42%), radial-gradient(ellipse at 4% 70%, rgba(62, 125, 113, .09), transparent 38%);
}
:root[data-theme="dark"] body::before { background: radial-gradient(ellipse at 83% 15%, rgba(168, 88, 68, .13), transparent 40%), radial-gradient(ellipse at 4% 73%, rgba(89, 148, 132, .1), transparent 40%); }
button { appearance: none; border: 0; font: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
main { width: min(calc(100% - clamp(36px, 8vw, 112px)), var(--max)); margin-inline: auto; position: relative; }
.site-nav {
  position: sticky;
  top: 18px;
  z-index: 10;
  width: fit-content;
  max-width: 100%;
  min-height: 60px;
  margin: 18px auto 0;
  padding: 7px 9px 7px 20px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 5vw, 80px);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .07);
  background: rgba(255, 253, 249, .76);
  box-shadow: 0 8px 30px rgba(42, 38, 30, .07);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
:root[data-theme="dark"] .site-nav { background: rgba(34, 40, 40, .78); border-color: rgba(255,255,255,.13); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-nav { background: #fffdf9; }
  :root[data-theme="dark"] .site-nav { background: #222828; }
}
.nav-brand, .nav-actions { display: inline-flex; align-items: center; }
.nav-brand { gap: 10px; text-decoration: none; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.site-title { margin: 0; font: inherit; }
.nav-actions { gap: 8px; }
.nav-link, .theme-toggle { border-radius: 999px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .22s cubic-bezier(.2,.8,.2,1), background-color .22s ease, color .22s ease; }
.nav-link { background: var(--teal); color: #fff; }
:root[data-theme="dark"] .nav-link { color: #102724; }
.nav-link span { transition: transform .22s ease; }
.nav-link:hover span { transform: translate(2px,-2px); }
.theme-toggle { color: var(--text); background: var(--surface-muted); }
.nav-link:hover, .theme-toggle:hover { transform: translateY(-2px) scale(1.01); }
.nav-link:active, .theme-toggle:active { transform: scale(.98); }
.theme-icon { font-size: 1.1rem; line-height: 1; }
.brand-mark { width: 24px; height: 26px; flex: 0 0 auto; position: relative; display: inline-block; border: 1.5px solid var(--accent-dark); border-radius: 5px 5px 7px 7px; }
.brand-mark::before { content: ""; position: absolute; left: 3px; right: 3px; top: -5px; height: 5px; border: 1.5px solid var(--accent-dark); border-bottom: 0; border-radius: 3px 3px 0 0; }
.brand-mark::after { content: "♥"; position: absolute; inset: 3px 0 0; text-align: center; font-size: .8rem; color: var(--accent); }
.section-label, .control-label, .idea-kicker, .idea-section strong, .social-share-label, .favorites h2 { font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.idea-title, .about p { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.panel { padding: 48px 0 clamp(130px, 15vw, 220px); scroll-margin-top: 110px; }
.panel-heading { border-top: 1px solid var(--line); padding: 24px 0 36px; }
.section-label { color: var(--teal-dark); }
.generator-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(300px, .62fr); align-items: stretch; gap: clamp(22px, 3vw, 44px); }
.idea-card { min-width: 0; min-height: 500px; padding: clamp(30px, 5vw, 70px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; border: 1px solid var(--line); border-radius: 36px; background: var(--surface); box-shadow: var(--shadow); transition: background-color .24s ease, border-color .24s ease; }
.idea-kicker { color: var(--accent-dark); }
.idea-title { max-width: 18ch; margin: 0; font-size: clamp(2.3rem, 4.2vw, 4.6rem); line-height: 1.07; overflow-wrap: anywhere; }
.idea-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.idea-tag { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.idea-section { width: 100%; max-width: 55ch; border-top: 1px solid var(--line); padding-top: 22px; }
.idea-section strong { display: block; margin-bottom: 10px; color: var(--muted); }
.idea-section p { margin: 0; font-size: clamp(.98rem, 1.2vw, 1.08rem); line-height: 1.7; }
.idea-next { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-muted); color: var(--teal-dark); font-size: .85rem; font-weight: 800; transition: transform .22s ease, background-color .22s ease; }
.idea-next::after { content: "→"; margin-left: 8px; transition: transform .22s ease; }
.idea-next:hover::after { transform: translateX(4px); }
.idea-next:hover { transform: translateY(-2px); }
.idea-next:active { transform: scale(.98); }
.controls { min-width: 0; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); padding: clamp(16px, 2vw, 28px) 0; }
.control-group { text-align: left; min-width: 0; }
fieldset.control-group { border: 0; padding: 0; margin: 0; }
.control-label { display: block; width: 100%; margin: 0 0 20px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill, .mode { min-height: 43px; padding: 9px 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 600; transition: transform .22s cubic-bezier(.2,.8,.2,1), background-color .22s ease, border-color .22s ease, color .22s ease; }
.pill:hover, .mode:hover { transform: translateY(-2px) scale(1.01); }
.pill:active, .mode:active { transform: scale(.98); }
.pill.active, .mode.on { border-color: var(--teal); background: var(--teal); color: #fff; }
:root[data-theme="dark"] .pill.active, :root[data-theme="dark"] .mode.on { color: #102724; }
.reset-filters { margin-top: 24px; padding: 5px 0; background: transparent; color: var(--accent-dark); font-size: .87rem; font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .2s ease; }
.reset-filters:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(30px, 5vw, 52px); }
.action { min-height: 51px; padding: 13px 22px; border-radius: 999px; background: var(--teal); color: #fff; font-size: .9rem; font-weight: 750; transition: transform .22s cubic-bezier(.2,.8,.2,1), background-color .22s ease, color .22s ease; }
.action:hover { transform: translateY(-2px) scale(1.01); }
.action:active { transform: scale(.98); }
.action.accent { background: var(--accent); color: #fff; }
.action.accent::after { content: "→"; display: inline-block; margin-left: 10px; transition: transform .22s ease; }
.action.accent:hover::after { transform: translateX(4px); }
.action.secondary { background: var(--surface-muted); color: var(--text); }
:root[data-theme="dark"] .action.accent { color: #241714; }
.status { min-height: 1.4em; margin: 14px 0 0; color: var(--accent-dark); font-size: .9rem; font-weight: 700; }
.social-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: clamp(70px, 9vw, 130px); padding-top: 26px; border-top: 1px solid var(--line); }
.social-share-label { width: 100%; margin-bottom: 14px; color: var(--muted); }
.social-link { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .8rem; font-weight: 700; text-decoration: none; transition: transform .22s ease, background-color .22s ease; }
.social-link:hover { transform: translateY(-2px); }
.social-link svg { width: 15px; height: 15px; fill: currentColor; }
.favorites { margin-top: clamp(70px, 10vw, 145px); border-top: 1px solid var(--line); padding-top: 28px; scroll-margin-top: 100px; }
.saved-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.favorites h2 { margin: 0; color: var(--teal-dark); }
.saved-count { color: var(--muted); font-size: .8rem; }
.favorites ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.favorites li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); font-size: .95rem; line-height: 1.5; transition: transform .24s ease, box-shadow .24s ease; }
.favorites li:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(33,30,26,.05); }
.favorite-text { flex: 1; }
.remove-favorite { flex: 0 0 auto; padding: 8px 10px; border-radius: 8px; background: transparent; color: var(--accent-dark); font-size: .82rem; font-weight: 700; }
.remove-favorite:hover { background: var(--surface-muted); }
.empty { margin: 0; color: var(--muted); line-height: 1.6; }
.about { position: relative; isolation: isolate; min-height: 540px; margin-inline: calc((min(100vw - clamp(36px, 8vw, 112px), var(--max)) - 100vw) / 2); padding: clamp(100px, 12vw, 180px) max(calc((100vw - var(--max)) / 2), clamp(18px, 4vw, 56px)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: #203937; color: #fbf3e8; }
.about::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 78% 8%, rgba(205, 140, 105, .34), transparent 37%), radial-gradient(ellipse at 10% 100%, rgba(14, 24, 26, .8), transparent 57%), linear-gradient(135deg, #304c47, #1a2d2d 75%); }
.about .section-label { color: #e6bda6; }
.about p { max-width: 850px; margin: 38px 0 0; font-size: clamp(2.35rem, 5vw, 5.4rem); line-height: 1.13; text-wrap: balance; }
footer { padding: 85px 0 100px; color: var(--muted); font-size: .87rem; line-height: 1.9; }
footer a { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
footer a:hover { text-decoration-color: currentColor; }
.reveal-pending { opacity: 0; transform: translateY(20px); transition: opacity .62s ease, transform .62s cubic-bezier(.2,.7,.2,1); }
.reveal-pending.is-visible { opacity: 1; transform: none; }
.controls.reveal-pending { transition-delay: .08s; }
.about p.reveal-pending { transition-delay: .1s; }
@media (max-width: 900px) {
  .generator-grid { grid-template-columns: 1fr; }
  .idea-card { min-height: 390px; }
  .controls { display: grid; grid-template-columns: 1fr 1.7fr; gap: 30px; padding: 12px 0; }
}
@media (max-width: 600px) {
  main { width: calc(100% - 36px); }
  .site-nav { width: 100%; top: 9px; min-height: 55px; margin-top: 9px; padding: 6px 7px 6px 14px; justify-content: space-between; gap: 8px; }
  .nav-brand { gap: 8px; font-size: .65rem; letter-spacing: .06em; }
  .nav-link { display: none; }
  .theme-toggle { min-height: 39px; padding: 0 12px; font-size: .72rem; }
  .panel { padding-top: 32px; }
  .panel-heading { padding: 18px 0 22px; }
  .generator-grid { gap: 28px; }
  .idea-card { min-height: 365px; padding: 30px 27px; border-radius: 27px; }
  .idea-title { font-size: clamp(2.2rem, 9vw, 3.3rem); }
  .controls { display: flex; gap: 40px; padding: 0; }
  .actions { display: grid; grid-template-columns: repeat(2, 1fr); }
  .action { width: 100%; padding-inline: 13px; }
  .action.accent, #clearButton { grid-column: 1 / -1; }
  .social-share { margin-top: 80px; }
  .favorites { margin-top: 80px; }
  .favorites li { padding: 16px; }
  .about { min-height: 490px; margin-inline: -18px; padding: 95px 26px; }
  .about p { font-size: clamp(2.3rem, 9vw, 3.8rem); }
  footer { padding: 60px 0 70px; }
}
@media (max-width: 370px) {
  .theme-label { display: none; }
  .theme-toggle { width: 40px; }
  .nav-brand { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
