/* Everyday Combos – custom warm palette */
:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --surface-2: #f4ecdd;
  --ink: #2b2a28;
  --muted: #6f6a61;
  --line: #e6dccb;
  --primary: #e8943a;
  --primary-ink: #3a2410;
  --accent: #3a7d6b;
  --accent-ink: #ffffff;
  --warn: #b94a3a;
  --shadow: 0 1px 2px rgba(43, 42, 40, 0.05), 0 8px 24px rgba(43, 42, 40, 0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden, .skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }

/* HEADER */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 36px; height: 36px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-title {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--primary); }

/* HERO */
.hero {
  padding: 48px 0 32px;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(232, 148, 58, 0.18), transparent 60%),
    radial-gradient(120% 80% at 0% 100%, rgba(58, 125, 107, 0.14), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(58, 125, 107, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero-copy h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  color: #1f1e1c;
}
.lede {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 18px;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.hero-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink);
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 148, 58, 0.2);
}

/* GENERATOR */
.generator {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
}
.gen-heading {
  font-size: 19px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.category-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tab {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
#item-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}
#item-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.quick-add {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}
.quick-add-label {
  font-size: 12px;
  color: var(--muted);
  margin-right: 2px;
}
.chip {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}
.item-list-wrap {
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  min-height: 60px;
}
.list-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.count-pill {
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.item-list .empty-state {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  width: 100%;
}
.item-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px 4px 12px;
  font-size: 13px;
  font-weight: 500;
}
.item-tag button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
.item-tag button:hover { color: var(--warn); }

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}
.btn-primary:hover { background: #d6822d; border-color: #d6822d; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* RESULTS */
.results {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.results-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px 10px;
}
.empty-illu {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.result-card:hover { border-color: var(--primary); }
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.result-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.result-meta {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.meta-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.meta-pill.difficulty-easy { background: #e6f3ec; color: #2d6b4f; }
.meta-pill.difficulty-medium { background: #fdf0e1; color: #9a6520; }
.meta-pill.difficulty-fiddly { background: #fbe7e3; color: #a83f2c; }
.meta-pill.mess-low { background: #e6f3ec; color: #2d6b4f; }
.meta-pill.mess-medium { background: #fdf0e1; color: #9a6520; }
.meta-pill.mess-high { background: #fbe7e3; color: #a83f2c; }
.result-desc {
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.5;
}
.result-note {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
  padding: 8px 10px;
  border-radius: 6px;
  margin: 0;
  border-left: 3px solid var(--accent);
}
.results-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.results-actions[hidden] { display: none; }

/* EXAMPLES */
.examples { padding: 48px 0 24px; }
.section-head {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.example-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow);
}
.example-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.example-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.example-card p { margin: 0 0 8px; font-size: 14px; }
.example-note {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

/* MISTAKES */
.mistakes {
  padding: 48px 0 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mistake-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  max-width: 820px;
}
.mistake-list li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border-left: 4px solid var(--warn);
}
.mistake-list h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.mistake-list p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ASSUMPTIONS */
.assumptions { padding: 48px 0; }
.assumptions-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.assumptions h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.assumptions p {
  color: var(--muted);
  font-size: 15px;
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.side-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}
.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.last-updated {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* FOOTER */
.site-footer {
  background: #241f1a;
  color: #e8e0d2;
  padding: 36px 0;
  margin-top: 32px;
}
.footer-inner {
  display: grid;
  gap: 14px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
}
.footer-brand .brand-title { color: #fff; font-size: 16px; }
.footer-brand .brand-sub { color: #b9b0a0; }
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-nav a { color: #d8cdb8; text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-note {
  margin: 0;
  font-size: 13px;
  color: #a89f8e;
}
.footer-note a { color: #d8cdb8; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .generator { position: static; }
  .example-grid { grid-template-columns: 1fr; }
  .assumptions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { width: 100%; justify-content: space-between; }
  .action-row .btn { flex: 1; }
  .hero { padding-top: 28px; }
  .generator { padding: 16px; }
}

@media print {
  .site-header, .site-footer, .quick-add, .action-row, .results-actions, .category-tabs, .input-row, .item-list-wrap { display: none; }
  .results { border-top: none; padding-top: 0; }
  .result-card { break-inside: avoid; }
  body { background: #fff; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
