:root {
  --bg: #f6f3ec;
  --bg-2: #efeadd;
  --surface: #ffffff;
  --surface-2: #fbf8f1;
  --text: #2b2a27;
  --text-2: #58564f;
  --muted: #8a8578;
  --border: #ded9cc;
  --accent: #7a6a4a;
  --accent-2: #b89a68;
  --accent-soft: #f1e7d1;
  --danger: #b8533a;
  --danger-soft: #fbeae3;
  --success: #4f7a54;
  --shadow: 0 1px 2px rgba(43, 42, 39, 0.05), 0 10px 24px -12px rgba(43, 42, 39, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.brand-mark { color: var(--accent); }
.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent-2); }

.hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.lede { color: var(--text-2); font-size: 17px; max-width: 600px; margin: 0 0 24px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
  max-width: 520px;
}
.hero-stats div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.hero-stats strong { display: block; font-size: 22px; color: var(--accent); }
.hero-stats span { font-size: 13px; color: var(--text-2); }
.hero-art { opacity: 0.9; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #6a5c40; color: #fff; }
.btn.ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 999px; }
.btn.danger { color: var(--danger); border-color: #e6c3b8; background: transparent; }
.btn.danger:hover { background: var(--danger-soft); }

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border); }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-lead { color: var(--text-2); max-width: 720px; margin: 0 0 28px; }

.journal { background: var(--bg); }
.journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 32px;
  align-items: start;
}
.journal-main { min-width: 0; }
.journal-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 84px;
}

.item-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.form-row { margin-bottom: 16px; }
.form-row:last-child { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.optional { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type="text"], input[type="number"], select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(184, 154, 104, 0.18);
}
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.presets { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.presets-title { font-size: 13px; color: var(--text-2); margin: 0 0 10px; }
.preset-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  font-family: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset:hover { border-color: var(--accent-2); color: var(--accent); background: var(--accent-soft); }

.item-list-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.item-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.item-list-head h3 { margin: 0; font-size: 18px; }
.list-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 28px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  margin: 0;
}
.item-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.item-row:hover { border-color: var(--accent-2); }
.item-row .name { font-weight: 600; }
.item-row .meta { font-size: 13px; color: var(--text-2); }
.item-row .path {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}
.item-row .path.repair { background: #e4efe3; color: #3c6a41; }
.item-row .path.donate { background: #e6ecf3; color: #3c5a7a; }
.item-row .path.repurpose { background: #f3ece0; color: #7a5a2a; }
.item-row .path.release { background: var(--danger-soft); color: var(--danger); }
.item-row .remove {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}
.item-row .remove:hover { color: var(--danger); background: var(--danger-soft); }

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.side-card h3 { margin: 0 0 10px; font-size: 16px; }
.side-card p { margin: 0; font-size: 14px; color: var(--text-2); }
.side-card .side-foot { margin-top: 10px; font-size: 13px; color: var(--muted); }
.summary-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.summary-list > div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.summary-list dt { font-size: 13px; color: var(--text-2); }
.summary-list dd { margin: 0; font-weight: 600; }

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.example-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.example-card h3 { margin: 0 0 14px; font-size: 18px; }
.example-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 12px;
}
.example-card th, .example-card td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.example-card th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.example-note { font-size: 13px; color: var(--text-2); margin: 8px 0 0; }

.mistake-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mistake-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list details[open] summary { margin-bottom: 10px; }
.faq-list p { margin: 0; color: var(--text-2); font-size: 15px; }

.supplies-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.supplies-art { color: var(--accent); }
.supplies-card h3 { margin: 0 0 6px; font-size: 18px; }
.supplies-card p { margin: 0 0 12px; color: var(--text-2); }

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.dot { margin: 0 8px; color: var(--muted); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; }
  .journal-layout { grid-template-columns: 1fr; }
  .journal-side { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .supplies-card { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .hero, .presets, .list-actions, .journal-side, .btn { display: none !important; }
  .item-row { break-inside: avoid; }
}



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