:root {
  --green: #1f4d2b;
  --green-2: #2e6b3d;
  --leaf: #9bd17a;
  --ink: #1c211d;
  --muted: #5c665e;
  --paper: #fbfaf6;
  --card: #ffffff;
  --line: #e3e1d8;
  --ask: #fff4c2;
  --ask-line: #e0b400;
  --max: 720px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--green-2); }
img { max-width: 100%; height: auto; }

/* Side tab bar */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex-shrink: 0; background: var(--green);
  padding: 28px 16px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #fff; text-decoration: none; padding: 0 6px; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tabs a {
  color: #dcebd8; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 11px 14px; border-radius: 10px; transition: background .15s, color .15s;
}
.tabs a:hover { background: rgba(255,255,255,.1); color: #fff; }
.tabs a[aria-current="page"] { background: var(--leaf); color: var(--green); }
.content { flex: 1; min-width: 0; }
main { max-width: 1000px; margin: 0 auto; padding: 8px 32px 60px; }

.hero { padding: 48px 0 32px; max-width: 760px; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.08; margin: 0 0 16px; color: var(--green); letter-spacing: -0.02em; }
.hero p { font-size: 20px; color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--green-2); transform: translateY(-2px); }
.card h2 { font-size: 21px; line-height: 1.25; margin: 4px 0 8px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--green-2); margin: 0; }
.empty { color: var(--muted); }

.post { max-width: var(--max); margin: 24px auto 0; }
.post h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 6px 0 6px; letter-spacing: -0.015em; }
.post h2 { font-size: 26px; margin: 40px 0 8px; line-height: 1.25; }
.post h3 { font-size: 20px; margin: 28px 0 6px; }
.post .meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.post ul, .post ol { padding-left: 24px; }
.post li { margin: 6px 0; }
.post table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; }
.post th, .post td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post th { background: #f1efe7; }
.tip { background: #eef6e9; border-left: 4px solid var(--green-2); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 22px 0; }

.product { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.product-name { font-weight: 800; font-size: 19px; margin: 0 0 6px; }
.product-verdict { margin: 0 0 6px; }
.product-uses { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 10px; font-size: 16px; }
.btn:hover { background: var(--green-2); }

.ask { background: var(--ask); border: 2px dashed var(--ask-line); border-radius: 10px; padding: 12px 16px; margin: 18px 0; font-size: 16px; }
.draft-tag { background: var(--ask-line); color: #fff; font-size: 14px; padding: 3px 8px; border-radius: 6px; vertical-align: middle; }
.preview-banner { background: var(--ask-line); color: #000; text-align: center; font-weight: 700; padding: 8px; font-size: 15px; }

.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 28px 20px 40px; color: var(--muted); font-size: 15px; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--muted); }
.disclosure { font-style: italic; }

.about-photo { float: right; width: 280px; height: auto; margin: 6px 0 20px 28px; border-radius: 14px; }

.post .card h2 { font-size: 21px; margin: 4px 0 8px; }
.post .cards { margin: 20px 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 24px 0; }
.product-grid .product { margin: 0; }

@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { position: static; width: auto; height: auto; padding: 12px 14px; gap: 10px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .tabs a { text-align: center; padding: 8px 6px; font-size: 15px; background: rgba(255,255,255,.06); }
  main { padding: 0 18px 50px; }
}

@media (max-width: 560px) {
  .about-photo { width: 40%; max-width: 170px; margin: 4px 0 12px 16px; border-radius: 10px; }
  body { font-size: 17px; }
  .hero { padding-top: 28px; }
}
