:root {
  --ink: #30352a;
  --muted: #68705e;
  --olive: #596342;
  --olive-dark: #3f4930;
  --olive-pale: #e8eadf;
  --cream: #f7f1e5;
  --paper: #fffdf8;
  --sand: #d9caae;
  --line: #dcd4c3;
  --plum: #69485e;
  --shadow: 0 16px 40px rgba(58, 61, 45, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 400 1rem/1.7 "DM Sans", sans-serif;
  background-image: radial-gradient(rgba(89,99,66,.06) .7px, transparent .7px);
  background-size: 7px 7px;
}
a { color: var(--olive-dark); text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
a:hover { color: var(--plum); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #a86d91; outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: var(--olive-dark); color: white; padding: .65rem 1rem; z-index: 20; }
.skip-link:focus { top: 1rem; }
.site-header {
  min-height: 78px;
  padding: .8rem clamp(1rem, 5vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(255,253,248,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; line-height: 1.05; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--olive); color: var(--cream); border-radius: 50% 50% 46% 54%; font-size: 1.45rem; }
.brand strong { display: block; font: 600 1.35rem "Lora", serif; }
.brand small { color: var(--muted); font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 1.6rem; }
nav a { text-decoration: none; font-size: .93rem; font-weight: 600; }
.support-link { padding: .55rem .85rem; border: 1px solid var(--olive); border-radius: 999px; }
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7.5rem) 1rem clamp(4rem, 8vw, 6rem);
  text-align: center;
  background: linear-gradient(145deg, rgba(232,234,223,.96), rgba(247,241,229,.97));
  border-bottom: 1px solid var(--line);
}
.hero::before, .hero::after { content: "❧"; position: absolute; color: rgba(89,99,66,.14); font-size: clamp(8rem, 22vw, 18rem); line-height: 1; }
.hero::before { left: -2rem; top: -1rem; transform: rotate(-28deg); }
.hero::after { right: -1rem; bottom: -4rem; transform: rotate(145deg); }
.eyebrow { margin: 0 0 .7rem; color: var(--olive); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; }
h1, h2, h3 { font-family: "Lora", serif; line-height: 1.23; }
h1 { max-width: 820px; margin: 0 auto .85rem; font-size: clamp(2.35rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -.035em; }
.hero-copy { max-width: 630px; margin: 0 auto 2rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.16rem); }
.search-wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.search-box { display: flex; align-items: center; background: var(--paper); border: 1px solid #c7c5b7; border-radius: 18px; box-shadow: var(--shadow); padding: .35rem; }
.search-icon { padding-left: 1rem; color: var(--olive); font-size: 1.2rem; }
.search-box input { width: 100%; min-height: 58px; border: 0; background: transparent; padding: .8rem 1rem; color: var(--ink); font-size: 1rem; }
.search-box input:focus { outline: none; }
.search-box:focus-within { outline: 3px solid rgba(168,109,145,.45); }
.search-results { position: absolute; width: 100%; margin-top: .5rem; padding: .45rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); text-align: left; }
.search-results[hidden] { display: none; }
.search-result { display: block; padding: .7rem .8rem; text-decoration: none; border-radius: 9px; }
.search-result:hover, .search-result:focus { background: var(--olive-pale); }
.search-result strong, .search-result small { display: block; }
.search-result small { color: var(--muted); }
.section { max-width: 1160px; margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem); }
.section-heading { max-width: 680px; margin-bottom: 2rem; }
.section-heading h2 { margin: .15rem 0 .45rem; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-heading p { margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.category-card { min-height: 230px; padding: 1.55rem; border: 1px solid var(--line); border-radius: 8px 28px 8px 8px; background: rgba(255,253,248,.86); box-shadow: 0 8px 24px rgba(57,60,46,.05); display: flex; flex-direction: column; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); transition: .2s ease; }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--olive-pale); color: var(--olive-dark); font-size: 1.3rem; }
.category-card h3 { margin: 1rem 0 .5rem; font-size: 1.25rem; }
.category-card p { margin: 0 0 1rem; color: var(--muted); font-size: .94rem; }
.category-card a { margin-top: auto; font-weight: 700; text-decoration: none; }
.popular { background: var(--olive-dark); color: #f8f3e9; }
.popular .section { padding-top: 4rem; padding-bottom: 4rem; }
.popular .eyebrow, .popular .section-heading p { color: #daddca; }
.popular-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.popular-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem; color: #f8f3e9; text-decoration: none; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; }
.popular-list a:hover { background: rgba(255,255,255,.08); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; list-style: none; font: 600 1.08rem "Lora", serif; display: flex; justify-content: space-between; gap: 1rem; }
summary::after { content: "+"; color: var(--olive); font: 500 1.4rem "DM Sans", sans-serif; }
details[open] summary::after { content: "−"; }
details p { max-width: 760px; margin: .8rem 0 .3rem; color: var(--muted); }
.contact-card { padding: clamp(1.6rem, 5vw, 3rem); background: var(--paper); border: 1px solid var(--line); border-left: 7px solid var(--olive); box-shadow: var(--shadow); display: grid; grid-template-columns: 1.35fr .65fr; gap: 2rem; align-items: center; }
.contact-card h2 { margin: .2rem 0 .65rem; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.contact-card p { color: var(--muted); }
.note-list { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .7rem 1rem; border-radius: 999px; background: var(--olive); color: white; text-decoration: none; font-weight: 700; }
.button:hover { color: white; background: var(--plum); }
.article-shell { max-width: 1120px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 5rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 2rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { text-decoration: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
article { min-width: 0; }
article h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.6rem); }
.article-intro { font-size: 1.12rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
article h2 { margin: 2.2rem 0 .7rem; font-size: 1.55rem; }
article h3 { margin: 1.6rem 0 .45rem; font-size: 1.16rem; }
article ol, article ul { padding-left: 1.4rem; }
article li { padding-left: .25rem; margin-bottom: .55rem; }
.tip { margin: 1.7rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--sand); background: rgba(255,253,248,.8); }
.article-side { position: sticky; top: 105px; padding: 1.3rem; background: var(--olive-pale); border-radius: 8px 24px 8px 8px; }
.article-side strong { font-family: "Lora", serif; }
.article-side a { display: block; margin-top: .8rem; }
.back-link { display: inline-block; margin-top: 2.5rem; font-weight: 700; }
.category-page h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.category-page .lead { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.article-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.article-list a { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.35rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-list strong { font-family: "Lora", serif; font-size: 1.15rem; }
.article-list span { color: var(--muted); }
footer { padding: 3.5rem 1rem; text-align: center; color: var(--muted); border-top: 1px solid var(--line); background: var(--paper); }
footer p { margin: .25rem 0; }
.footer-leaf { color: var(--olive); font-size: 2rem; }

@media (max-width: 820px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout, .contact-card { grid-template-columns: 1fr; }
  .article-side { position: static; }
}
@media (max-width: 620px) {
  .site-header { align-items: flex-start; }
  nav { gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
  nav a:not(.support-link) { display: none; }
  .category-grid, .popular-list { grid-template-columns: 1fr; }
  .hero { padding-top: 3.8rem; }
  .category-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
