/* Skills Your Grandparents Knew */
:root {
  --cream: #f4eadb;
  --paper: #fbf6ec;
  --ink: #2b241b;
  --muted: #6b6257;
  --accent: #8a4b2e;
  --accent-strong: #6b3a22;
  --sage: #5b6b3a;
  --line: #d9cdb6;
  --shadow: 0 1px 2px rgba(43, 36, 27, 0.06), 0 8px 24px rgba(43, 36, 27, 0.08);
  --radius: 10px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, #fff7e6 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #f1e7d3 0%, transparent 55%),
    var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Header */
.site-header {
  background: linear-gradient(180deg, #fff8ea 0%, #f5ecd9 100%);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.header-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand h1 { font-size: 1.35rem; margin: 0; letter-spacing: 0.2px; }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.brand-mark { display: inline-flex; }

.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.98rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent-strong); border-bottom-color: var(--accent); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px;
  padding: 32px 0 12px;
}
.hero h2 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
.hero p { color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 12px; font-size: 1.1rem; color: var(--accent-strong); }
.glance { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.glance li { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.num { display: block; font-size: 1.6rem; color: var(--sage); }
.lbl { color: var(--muted); font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 16px; border-radius: 8px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff7e8;
  font-size: 0.98rem; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--accent-strong); }
.btn.ghost:hover { background: #f0e3cb; }
.ghost-btn {
  background: transparent; color: var(--accent-strong);
  border: 1px solid var(--line); padding: 8px 12px; border-radius: 8px;
  cursor: pointer; font-size: 0.9rem;
}
.ghost-btn:hover { background: #f0e3cb; }

/* Sections */
section { padding: 32px 0; }
.section-head { margin-bottom: 20px; }
.section-head h2 { margin: 0 0 6px; font-size: 1.6rem; color: var(--accent-strong); }
.section-sub { color: var(--muted); margin: 0; max-width: 60ch; }

/* Controls */
.controls {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  background: var(--cream); padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.label-text { font-size: 0.85rem; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 1rem; font-family: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.results-status { color: var(--muted); margin: 8px 4px 16px; font-size: 0.95rem; }

/* Skill list */
.skill-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.skill-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: transform 0.1s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
}
.skill-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(43,36,27,0.12); }
.skill-card h3 { margin: 0; font-size: 1.15rem; color: var(--accent-strong); }
.skill-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; font-size: 0.8rem; padding: 3px 8px; border-radius: 999px;
  background: #efe3c9; color: var(--accent-strong); border: 1px solid var(--line);
}
.chip.savings { background: #e1ead0; color: #3d5522; }
.chip.difficulty { background: #f3e1cf; color: #6b3a22; }
.skill-summary { color: var(--muted); font-size: 0.95rem; }

.empty-state {
  background: var(--cream); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 24px; text-align: center; color: var(--muted); margin-top: 16px;
}

/* Detail */
.skill-detail { padding-top: 12px; }
.detail-head { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.back-btn {
  background: transparent; border: 1px solid var(--line); padding: 8px 12px;
  border-radius: 8px; cursor: pointer; font-size: 0.9rem; color: var(--ink);
}
.back-btn:hover { background: #f0e3cb; }
.detail-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.detail-card h2 { margin: 0 0 8px; color: var(--accent-strong); font-size: 1.8rem; }
.detail-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 16px 0 8px;
}
.detail-stats .stat {
  background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 12px;
}
.detail-stats .stat .k { color: var(--muted); font-size: 0.85rem; }
.detail-stats .stat .v { font-size: 1.15rem; color: var(--accent-strong); margin-top: 2px; font-weight: bold; }
.detail-steps { margin-top: 18px; }
.detail-steps h3 { margin: 12px 0 8px; color: var(--accent-strong); }
.detail-steps ol, .detail-steps ul { padding-left: 22px; margin: 0 0 12px; }
.detail-steps li { margin: 6px 0; }

/* Seasonal */
.seasonal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.seasonal-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); cursor: pointer;
}
.seasonal-card h3 { margin: 0 0 6px; color: var(--accent-strong); }
.seasonal-card .season-tag { color: var(--sage); font-size: 0.85rem; margin-bottom: 8px; }
.seasonal-card p { color: var(--muted); margin: 0; }

/* Saved */
.saved-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.saved-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.saved-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: start;
}
.saved-item h3 { margin: 0; font-size: 1rem; color: var(--accent-strong); }
.saved-item .remove-btn {
  background: transparent; border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px;
  cursor: pointer; font-size: 0.85rem; color: var(--ink);
}
.saved-item .remove-btn:hover { background: #f0e3cb; }

/* Guide */
.guide-block {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.guide-block h3 { margin: 0 0 10px; color: var(--accent-strong); font-size: 1.25rem; }
.guide-block p { max-width: 75ch; }
.list { padding-left: 22px; }
.list li { margin: 6px 0; }
.faq { margin: 0; }
.faq-item { margin-bottom: 14px; }
.faq-item dt { font-weight: bold; color: var(--accent-strong); margin-bottom: 4px; }
.faq-item dd { margin: 0 0 0 16px; color: var(--muted); max-width: 70ch; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 20px; font-style: italic; }

/* Footer */
.site-footer {
  background: #efe3c9; border-top: 1px solid var(--line); margin-top: 32px;
  padding: 20px 0;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-row p { margin: 0; color: var(--muted); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.footer-links a { color: var(--accent-strong); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .controls { grid-template-columns: repeat(2, 1fr); }
  .skill-list { grid-template-columns: repeat(2, 1fr); }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .seasonal-grid { grid-template-columns: 1fr 1fr; }
  .saved-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .controls { grid-template-columns: 1fr; }
  .skill-list { grid-template-columns: 1fr; }
  .seasonal-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 1.6rem; }
  .nav { gap: 10px; }
  .nav a { font-size: 0.9rem; }
}



/* 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;
}
