*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1a1a18; --ink-mid: #3d3d38; --ink-muted: #6b6b63;
  --bg: #f4eee5; --surface: #fffaf3; --border: #ddcfbd;
  --green: #315c43; --green-light: #edf3ee;
  --amber: #8a3a10; --amber-light: #fdf3e8;
  --blue: #1e4a7a; --blue-light: #eaf1f9;
  --col: 720px;
}
html { font-size: 17px; }
body { font-family: 'Source Serif 4', Georgia, serif; background: var(--bg); color: var(--ink); line-height: 1.72; -webkit-font-smoothing: antialiased; }
.site-nav { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 1.5rem; }
.site-nav-inner { max-width: var(--col); margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.8rem 0; }
.site-logo { font-family: 'Lora', serif; font-size: 1.28rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.site-logo span { color: var(--green); font-weight: 600; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-start; gap: 0.55rem; }
.nav-group { display: flex; align-items: stretch; gap: 0.55rem; }
.nav-group + .nav-group { margin-left: 0.2rem; padding-left: 0.6rem; border-left: 1px solid var(--border); }
.nav-link { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink-muted); font-size: 0.72rem; letter-spacing: 0.06em; line-height: 1.15; min-width: 92px; padding: 0.7rem 0.85rem; text-align: center; text-decoration: none; text-transform: uppercase; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.nav-link:hover, .nav-link.active { background: var(--green-light); border-color: var(--green); color: var(--green); }
.nav-section { background: transparent; }
.nav-tool { color: var(--ink); }
.article-wrap { max-width: var(--col); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.article-meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.article-tag { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--green-light); color: var(--green); padding: 0.25em 0.7em; border-radius: 2px; }
.article-date { font-size: 0.78rem; color: var(--ink-muted); }
.article-author { color: var(--ink-muted); font-size: 0.82rem; margin: -0.65rem 0 1.2rem; }
h1 { font-family: 'Lora', serif; font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.ingress { font-size: 1.1rem; line-height: 1.65; color: var(--ink-mid); font-weight: 300; font-style: italic; border-top: 2px solid var(--green); padding-top: 1.1rem; margin-bottom: 2.2rem; }
h2 { font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 600; margin: 2.2rem 0 0.6rem; letter-spacing: -0.01em; }
p { margin-bottom: 1.1rem; }
a { color: var(--green); }
ul, ol { margin: 0 0 1.2rem 1.4rem; }
li { margin-bottom: 0.45rem; }
.tip, .warning, .note { padding: 1rem 1.15rem; margin: 1.8rem 0; border-radius: 3px; font-size: 0.93rem; line-height: 1.6; }
.tip    { background: var(--green-light); border-left: 3px solid var(--green); }
.warning{ background: var(--amber-light); border-left: 3px solid var(--amber); }
.note   { background: var(--blue-light);  border-left: 3px solid var(--blue); }
.tip strong { color: var(--green); } .warning strong { color: var(--amber); } .note strong { color: var(--blue); }
.article-footer { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.article-footer-label { font-size: 0.78rem; color: var(--ink-muted); }
.back-link { font-size: 0.78rem; color: var(--green); text-decoration: none; }
.page-header { max-width: var(--col); margin: 0 auto; padding: 2.8rem 1.5rem 0; }
.page-title { font-family: 'Lora', serif; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.page-sub { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 2.4rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.2rem; }
.filter-btn { font-size: 0.73rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3em 0.85em; border-radius: 2px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-muted); cursor: pointer; transition: all 0.15s; font-family: inherit; }
.filter-btn:hover, .filter-btn.active { background: var(--green-light); border-color: var(--green); color: var(--green); }
.articles { max-width: var(--col); margin: 0 auto; padding: 0 1.5rem 5rem; }
.article-card { display: block; text-decoration: none; color: inherit; padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.article-card:first-child { border-top: 1px solid var(--border); }
.card-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.45rem; }
.card-tag { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--green-light); color: var(--green); padding: 0.2em 0.6em; border-radius: 2px; }
.card-date { font-size: 0.75rem; color: var(--ink-muted); }
.card-title { font-family: 'Lora', serif; font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 0.4rem; transition: color 0.12s; }
.article-card:hover .card-title { color: var(--green); }
.card-ingress { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.55; max-width: 600px; }
.home-wrap { max-width: var(--col); margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.home-title { font-size: clamp(2.2rem, 8vw, 4.6rem); margin-bottom: 1rem; max-width: 9ch; }
.home-ingress { color: var(--ink-mid); font-size: 1.05rem; line-height: 1.65; max-width: 42rem; margin-bottom: 2rem; }
.home-actions { display: grid; gap: 0.85rem; max-width: 520px; }
.home-action { border: 1.5px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); display: block; font-family: 'Lora', serif; font-size: 1.22rem; line-height: 1.2; padding: 1.25rem 1.2rem; text-decoration: none; }
.home-action span { color: var(--ink-muted); display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 0.82rem; line-height: 1.45; margin-top: 0.25rem; }
.home-action:hover { border-color: var(--green); }
.site-footer { border-top: 1px solid var(--border); color: var(--ink-muted); padding: 1.5rem; }
.site-footer-inner { align-items: center; display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; justify-content: space-between; margin: 0 auto; max-width: var(--col); }
.site-footer small { font-size: 0.74rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-links a { color: var(--ink-muted); font-size: 0.74rem; text-decoration: none; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
@media (max-width: 500px) {
  html { font-size: 16px; }
  .site-nav { padding: 0 1.1rem; }
  .site-nav-inner { gap: 0.6rem; padding: 0.85rem 0; }
  .site-logo { font-size: clamp(2rem, 7vw, 2.6rem); display: block; width: 100%; }
  .nav-links { flex-direction: column; width: 100%; gap: 0.5rem; }
  .nav-group { display: grid; gap: 0.5rem; }
  .nav-group:first-child { grid-template-columns: repeat(3, 1fr); }
  .nav-group:last-child { grid-template-columns: repeat(2, 1fr); }
  .nav-group + .nav-group { margin-left: 0; padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 0.5rem; }
  .nav-link { display: block; font-size: 0.82rem; min-width: 0; padding: 0.9rem 0.4rem; text-align: center; }
  .article-wrap { padding: 2rem 1.1rem 4rem; }
  .page-header { padding: 2rem 1.1rem 0; }
  .articles { padding: 0 1.1rem 4rem; }
  .home-wrap { padding: 2.3rem 1.1rem 4rem; }
  .home-title { max-width: 8ch; }
  .home-actions { gap: 0.7rem; }
  .home-action { font-size: 1.16rem; padding: 1.12rem 1rem; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; }
}
