:root {
  color-scheme: dark;
  --ink: #111514;
  --ink-2: #1b1718;
  --paper: #f7ebd4;
  --muted: #cbb99c;
  --pumpkin: #ff7a1c;
  --leaf: #b7f35d;
  --line: rgba(247, 235, 212, 0.16);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --timer-bg: #f7ebd4;
  --timer-card: #fff7e7;
  --timer-ink: #1a1516;
  --timer-muted: #6d5844;
  --timer-accent: #c94e18;
}

:root[data-theme="ember"] {
  --paper: #fff3df;
  --muted: #d8c1a0;
  --pumpkin: #f05a28;
  --leaf: #8ee36b;
  --line: rgba(255, 243, 223, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 122, 28, 0.03) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #131716 0%, #171211 48%, #101312 100%);
  color: var(--paper);
  font-family: "Trebuchet MS", "Aptos", sans-serif;
  line-height: 1.55;
}

:root[data-theme="ember"] body:not([class*="theme-"]) {
  background:
    repeating-linear-gradient(90deg, rgba(142, 227, 107, 0.035) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #181513 0%, #20120f 48%, #101312 100%);
}

body.theme-halloween {
  --pumpkin: #ff7a1c;
  --leaf: #b7f35d;
  --muted: #cbb99c;
  background:
    repeating-linear-gradient(90deg, rgba(255, 122, 28, 0.03) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #131716 0%, #171211 48%, #101312 100%);
}

body.theme-christmas {
  --pumpkin: #d72f32;
  --leaf: #ffe08a;
  --muted: #d8c8aa;
  --timer-bg: #fff5dc;
  --timer-card: #fffaf0;
  --timer-muted: #735b42;
  --timer-accent: #c9272d;
  background:
    repeating-linear-gradient(90deg, rgba(255, 224, 138, 0.035) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #0d2b24 0%, #111b17 48%, #101312 100%);
}

body.theme-thanksgiving {
  --pumpkin: #c95d24;
  --leaf: #f0c56c;
  --timer-bg: #fff0d0;
  --timer-card: #fff8e8;
  --timer-muted: #74533b;
  --timer-accent: #b84e1f;
  background:
    repeating-linear-gradient(90deg, rgba(240, 197, 108, 0.035) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #211511 0%, #2d1710 52%, #101312 100%);
}

body.theme-newyear {
  --pumpkin: #f6d56f;
  --leaf: #66d8ff;
  --timer-bg: #eaf3ff;
  --timer-card: #f8fbff;
  --timer-muted: #4b5e78;
  --timer-accent: #2f6aa0;
  background:
    repeating-linear-gradient(90deg, rgba(102, 216, 255, 0.035) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #101426 0%, #15101e 52%, #101312 100%);
}

body.theme-valentine,
body.theme-mothers {
  --pumpkin: #f05a7e;
  --leaf: #ffd1df;
  --timer-bg: #ffeef3;
  --timer-card: #fff8fb;
  --timer-muted: #855167;
  --timer-accent: #c83a5b;
  background:
    repeating-linear-gradient(90deg, rgba(255, 209, 223, 0.04) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #2a111f 0%, #451729 52%, #101312 100%);
}

body.theme-easter {
  --pumpkin: #b79cf2;
  --leaf: #8bd66b;
  --timer-bg: #f0ffe8;
  --timer-card: #fbfff7;
  --timer-muted: #586f4c;
  --timer-accent: #785ecf;
  background:
    repeating-linear-gradient(90deg, rgba(139, 214, 107, 0.04) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #17352e 0%, #244b33 52%, #101312 100%);
}

body.theme-summer {
  --pumpkin: #ffd35a;
  --leaf: #65e1ff;
  --timer-bg: #eaffff;
  --timer-card: #f8ffff;
  --timer-muted: #456b76;
  --timer-accent: #087d9b;
  background:
    repeating-linear-gradient(90deg, rgba(101, 225, 255, 0.04) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #0f3b52 0%, #0d6070 52%, #101312 100%);
}

body.theme-shopping {
  --pumpkin: #ff7a1c;
  --leaf: #b7f35d;
  --timer-bg: #f2f5e8;
  --timer-card: #fbfff1;
  --timer-muted: #5f6747;
  --timer-accent: #1f6f40;
  background:
    repeating-linear-gradient(90deg, rgba(183, 243, 93, 0.035) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #111514 0%, #21191a 52%, #101312 100%);
}

body.theme-school {
  --pumpkin: #3b82c4;
  --leaf: #f1c16d;
  --timer-bg: #edf6ff;
  --timer-card: #f8fbff;
  --timer-muted: #4b627a;
  --timer-accent: #2f6aa0;
  background:
    repeating-linear-gradient(90deg, rgba(241, 193, 109, 0.04) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #172333 0%, #1f3a4d 52%, #101312 100%);
}

body.theme-season {
  --pumpkin: #8ed36a;
  --leaf: #ffd35a;
  --timer-bg: #f1ffe8;
  --timer-card: #fbfff7;
  --timer-muted: #586f4c;
  --timer-accent: #4f8a38;
  background:
    repeating-linear-gradient(90deg, rgba(255, 211, 90, 0.035) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #163325 0%, #24462d 52%, #101312 100%);
}

body.theme-tool,
body.theme-site {
  --pumpkin: #3b82c4;
  --leaf: #8ed36a;
  --timer-bg: #edf6ff;
  --timer-card: #f8fbff;
  --timer-muted: #4b627a;
  --timer-accent: #2f6aa0;
  background:
    repeating-linear-gradient(90deg, rgba(142, 211, 106, 0.035) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #101826 0%, #14243a 52%, #101312 100%);
}

main,
header,
footer {
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 21, 20, 0.93);
  backdrop-filter: blur(14px);
}

.nav,
.section-inner,
.footer-inner {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--pumpkin);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #201515;
  box-shadow: inset 0 -6px 0 rgba(255, 122, 28, 0.14);
}

.brand-mark svg,
.btn svg,
.idea-icon svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(247, 235, 212, 0.08);
  color: var(--paper);
  outline: none;
}

.hero-band {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 122, 28, 0.12), transparent 32%),
    linear-gradient(315deg, rgba(183, 243, 93, 0.08), transparent 38%);
}

.hero {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 58px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 34px;
  align-items: center;
}

.hero > *,
.grid > *,
.section-inner > * {
  min-width: 0;
}

.hero.simple {
  grid-template-columns: 1fr;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--leaf);
  font-size: 0.94rem;
  margin: 0 0 16px;
  font-weight: 700;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--leaf);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: 4.15rem;
  font-weight: 700;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.28rem;
}

.lead,
.section-title p,
.card p,
.faq-item p,
.muted {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.lead {
  margin: 20px 0 0;
  max-width: 700px;
  font-size: 1.12rem;
}

.lead strong {
  color: var(--paper);
}

.hero-actions,
.action-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--paper);
  background: rgba(247, 235, 212, 0.08);
  cursor: pointer;
}

.btn.primary {
  border-color: rgba(255, 122, 28, 0.74);
  background: var(--pumpkin);
  color: #21110e;
  font-weight: 800;
}

.tool-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 235, 212, 0.055);
  padding: 20px;
}

.tool-panel label {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.tool-panel input {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(17, 21, 20, 0.74);
  color: var(--paper);
  padding: 0 12px;
  font: inherit;
}

.tool-panel .result {
  margin: 14px 0 0;
  color: var(--paper);
  font-weight: 800;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn:hover,
.btn:focus-visible,
.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgba(183, 243, 93, 0.5);
  outline-offset: 2px;
}

.count-answer {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: end;
}

.big-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8rem;
  line-height: 0.84;
  font-weight: 700;
  color: var(--pumpkin);
  text-shadow: 0 12px 36px rgba(255, 122, 28, 0.24);
  min-width: 2.1ch;
  font-variant-numeric: tabular-nums;
}

.count-copy {
  padding-bottom: 11px;
}

.count-copy .label {
  display: block;
  color: var(--paper);
  font-size: 2rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.count-copy .sub {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

.visual-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #171211;
  box-shadow: var(--shadow);
}

.visual-card img {
  width: 100%;
}

.section {
  border-bottom: 1px solid var(--line);
}

.section-inner {
  padding: 54px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-title p {
  margin: 0;
  max-width: 540px;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 235, 212, 0.055);
}

.card {
  min-height: 148px;
  padding: 20px;
}

.card strong,
.card h3 {
  display: block;
  color: var(--paper);
}

.card strong {
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1.1;
}

.card p {
  margin: 12px 0 0;
}

.card-link {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.card-link:hover,
.card-link:focus-visible {
  border-color: rgba(255, 122, 28, 0.58);
  background: rgba(247, 235, 212, 0.08);
}

.timer-band {
  background: var(--timer-bg);
  color: var(--timer-ink);
}

.timer-band .section-title p,
.timer-band .muted,
.timer-band .card p {
  color: var(--timer-muted);
}

.timer-band .card {
  background: var(--timer-card);
  border-color: rgba(26, 21, 22, 0.14);
  box-shadow: 0 18px 34px rgba(43, 24, 13, 0.08);
}

.timer-box b {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--timer-accent);
  font-variant-numeric: tabular-nums;
}

.timer-box span {
  display: block;
  margin-top: 12px;
  color: var(--timer-muted);
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(183, 243, 93, 0.13);
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 800;
}

.idea-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #251616;
  border: 1px solid rgba(255, 122, 28, 0.28);
  color: var(--pumpkin);
  margin-bottom: 18px;
}


details.faq-item {
  overflow: hidden;
}

details summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  float: right;
  color: var(--pumpkin);
  font-size: 1.3rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.footer {
  background: #0d100f;
}

.footer-inner {
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 42px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav,
  .section-inner,
  .footer-inner,
  .hero {
    width: calc(100vw - 40px);
    margin-left: 16px;
    margin-right: 24px;
  }

  .nav {
    min-height: auto;
    padding: 12px 0;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 36px 0;
    gap: 28px;
  }

  h1 {
    font-size: 2.35rem;
    max-width: 11ch;
  }

  h2 {
    font-size: 1.8rem;
  }

  .lead {
    font-size: 1rem;
    max-width: 100%;
  }

  .count-answer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .big-number {
    font-size: 5.45rem;
  }

  .count-copy {
    padding-bottom: 0;
  }

  .count-copy .label {
    font-size: 1.48rem;
  }

  .hero-actions,
  .action-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .btn {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  .compact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .visual-card {
    width: 100%;
    max-width: 100%;
  }

  .section-title,
  .footer-inner {
    display: block;
  }

  .section-title p {
    margin-top: 12px;
  }

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .timer-box b {
    font-size: 3rem;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .visual-card,
  .footer,
  [data-theme-toggle],
  [data-share-button] {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .hero-band,
  .section,
  .timer-band {
    background: #fff;
    color: #111;
    border-color: #ddd;
  }

  .big-number {
    color: #111;
    text-shadow: none;
  }
}
