:root {
  --bg: #f3efe6;
  --paper: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #e7eee9;
  --ink: #17201d;
  --muted: #68736e;
  --line: #ded7cb;
  --accent: #1f6f63;
  --accent-dark: #123d37;
  --warm: #cf6b45;
  --teal: var(--accent);
  --teal-dark: var(--accent-dark);
  --brick: var(--warm);
  --amber: #f0b83e;
  --header: var(--accent-dark);
  --shadow: 0 18px 44px rgba(20, 31, 28, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(207, 107, 69, 0.14), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(31, 111, 99, 0.12), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.58;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--header);
  color: #fff;
  border-radius: 8px;
}

.layout { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.layout--narrow { width: min(880px, calc(100% - 40px)); margin: 0 auto; }
.layout--article { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(29, 36, 34, 0.12);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  padding: 10px 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}
.site-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  font-weight: 900;
}
.site-brand span {
  color: var(--teal-dark);
  font-size: 28px;
  line-height: 1;
}
.site-brand small {
  max-width: 130px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
  font-weight: 850;
  text-transform: uppercase;
  overflow-wrap: normal;
}
.site-nav { min-width: 0; }
.site-nav .menu,
.footer-nav .menu {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav .menu {
  justify-content: flex-end;
  overflow: visible;
}
.site-nav a {
  display: block;
  color: #35413d;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  white-space: nowrap;
}
.header-search {
  display: grid;
  grid-template-columns: minmax(120px, 160px) auto;
  gap: 6px;
  align-items: center;
}
.header-search input {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.header-search button {
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.header-search button:hover {
  background: var(--accent-dark);
  color: #fff;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--teal-dark);
}

.hero-section {
  padding: 64px 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255, 250, 240, 0.92), rgba(255, 250, 240, 0.58)),
    linear-gradient(90deg, rgba(31, 111, 99, 0.08) 1px, transparent 1px) 0 0 / 58px 58px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 42px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--brick);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy h1,
.archive-hero h1,
.page-hero h1,
.single-article__title {
  margin: 0;
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}
.hero-copy p:not(.eyebrow),
.page-hero p,
.single-article__excerpt {
  max-width: 580px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}
.hero-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 560px;
}
.hero-tools span {
  min-height: 58px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
  color: #394844;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}
.topic-navigator {
  overflow: hidden;
  border: 1px solid rgba(14, 103, 95, 0.22);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.topic-navigator__top {
  padding: 22px 24px 12px;
  background:
    linear-gradient(135deg, rgba(31, 111, 99, 0.12), rgba(207, 107, 69, 0.08)),
    var(--paper);
  color: var(--ink);
}
.topic-navigator__top strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}
.topic-navigator__top span {
  display: block;
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}
.topic-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 12px 24px 18px;
}
.topic-search input {
  min-width: 0;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9f4;
  color: var(--ink);
  font: inherit;
}
.topic-search button,
.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.topic-search button:hover,
.button-link:hover {
  background: var(--accent-dark);
  color: #fff;
}
.topic-search button:hover,
.button-link:hover {
  background: var(--accent-dark);
  color: #fff;
}
.finder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 24px;
  border-top: 0;
}
.finder-item {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(31, 111, 99, 0.16);
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 10px 22px rgba(23, 32, 29, 0.05);
}
.finder-item:nth-child(2n) { border-right: 1px solid rgba(31, 111, 99, 0.16); }
.finder-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}
.finder-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.section-band {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}
.section-band--paper {
  background: rgba(255, 250, 240, 0.72);
}
.section-heading {
  margin-bottom: 28px;
}
.section-heading--inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.04;
  font-weight: 950;
}
.section-heading p:not(.eyebrow),
.topics-layout > div > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.text-link {
  color: var(--teal);
  font-weight: 900;
}

.task-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.task-card,
.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(19, 36, 33, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(7, 22, 20, 0.12), rgba(7, 22, 20, 0.76)),
    var(--tile-image) center / cover,
    var(--header);
  color: #fff;
  box-shadow: 0 12px 30px rgba(19, 36, 33, 0.08);
}
.task-card:hover,
.category-tile:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(19, 36, 33, 0.14);
}
.task-card span,
.category-tile span {
  position: relative;
  z-index: 1;
  font-size: 22px;
  line-height: 1.06;
  font-weight: 950;
}
.task-card small,
.category-tile small {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 6px;
  background: var(--amber);
  color: #17211f;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
}

.articles-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 26px;
}
.articles-layout--single {
  grid-template-columns: 1fr;
  max-width: 760px;
}
.articles-layout--single .feature-panel {
  grid-template-columns: 1fr;
  width: 100%;
}
.articles-layout--single .feature-panel__image {
  min-height: 310px;
  aspect-ratio: 16 / 9;
}
.feature-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.feature-panel__image {
  display: block;
  min-height: 320px;
  background: var(--surface-soft);
}
.feature-panel__image img,
.feature-panel__image .image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-panel__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-panel__body h3 {
  margin: 16px 0 14px;
  display: -webkit-box;
  overflow: hidden;
  color: #111817;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.06;
  font-weight: 950;
  overflow-wrap: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.articles-layout--single .feature-panel__body h3 {
  font-size: clamp(26px, 3vw, 36px);
  -webkit-line-clamp: 3;
}
.feature-panel__body p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.recent-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.recent-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.recent-row:last-child { border-bottom: 0; }
.recent-row__thumb {
  display: block;
  width: 96px;
  height: 76px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--surface-soft);
}
.recent-row__thumb img,
.recent-row__thumb .image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recent-row strong {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: #25312e;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 900;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
}
.post-meta > * + *::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--amber);
  border-radius: 50%;
}
.post-meta__category { color: var(--teal); }

.topics-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 28px;
  align-items: start;
}
.topics-layout--tags-only {
  grid-template-columns: minmax(0, 720px);
}
.tag-cloud-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 20px;
}
.tag-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(14, 103, 95, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: #274743;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 850;
}
.tag-chip span {
  color: var(--brick);
  font-size: 12px;
}
.link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.link-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.link-box h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 950;
}
.link-box a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #34413d;
  font-weight: 750;
  line-height: 1.35;
}
.muted-note { color: var(--muted); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.article-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.article-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-soft);
}
.article-card__image img,
.article-card__image .image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card__body { padding: 16px; }
.article-card__title {
  margin: 10px 0 0;
  font-size: 19px;
  line-height: 1.22;
  font-weight: 900;
}
.article-card p { margin: 0; color: var(--muted); }
.image-fallback {
  display: block;
  background:
    linear-gradient(135deg, rgba(7, 63, 58, 0.88), rgba(200, 95, 69, 0.58)),
    radial-gradient(circle at 70% 20%, rgba(240, 184, 62, 0.52), transparent 34%);
}

.archive-hero,
.page-hero {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.68);
}
.archive-description { max-width: 760px; color: var(--muted); }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.single-article {
  padding: 44px 0 0;
  background: var(--paper);
}
.single-article__title { margin-top: 16px; }
.single-article__cover {
  margin: 32px 0;
  overflow: hidden;
  border-radius: 10px;
}
.single-article__cover img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}
.article-content { padding-bottom: 54px; }
.article-content h2,
.article-content h3 {
  margin: 1.6em 0 0.55em;
  line-height: 1.15;
}
.article-content h2 { font-size: 32px; }
.article-content h3 { font-size: 24px; }
.article-content p,
.article-content li { color: #26302b; }
.article-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--brick);
  background: var(--surface-soft);
}
.article-content figure { margin: 30px 0; }
.article-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.nap-faq {
  margin: 44px 0 10px;
  padding: 24px;
  border: 1px solid rgba(31, 111, 99, 0.18);
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 16px 34px rgba(23, 32, 29, 0.06);
}
.nap-faq h2 {
  margin-top: 0;
}
.nap-faq details {
  border-top: 1px solid var(--line);
}
.nap-faq details:first-of-type {
  border-top: 0;
}
.nap-faq summary {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 14px 38px 14px 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.nap-faq summary::-webkit-details-marker {
  display: none;
}
.nap-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 111, 99, 0.1);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}
.nap-faq details[open] summary::after {
  content: "−";
}
.nap-faq details > *:not(summary) {
  margin: 0;
  padding: 0 38px 16px 0;
  color: #2d3934;
}

.all-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.tag-index-card {
  min-height: 150px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.tag-index-card strong {
  font-size: 22px;
  line-height: 1.12;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.tag-index-card span {
  color: var(--brick);
  font-size: 13px;
  font-weight: 850;
}
.tag-index-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.empty-state {
  max-width: 680px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.empty-state h2 { margin-top: 0; }
.pagination-wrap { margin-top: 34px; }

.site-footer {
  padding: 38px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--header);
  color: #fff;
}
.site-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.site-brand--footer span { color: #fff; }
.site-brand--footer small,
.footer-nav a { color: rgba(255, 255, 255, 0.72); }

@media (max-width: 1480px) {
  .site-brand small {
    display: none;
  }
}

@media (max-width: 1280px) {
  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 18px;
  }
  .header-search {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
  }
  .header-search input {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: auto auto auto;
  }
  .nav-toggle {
    display: block;
    order: 3;
  }
  .header-search {
    order: 2;
    margin-left: auto;
    grid-column: auto;
  }
  .header-search input {
    width: 150px;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 240, 0.98);
    box-shadow: 0 18px 32px rgba(20, 31, 28, 0.1);
  }
  .site-nav.is-open { display: block; }
  .site-nav .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
  }
  .site-nav a {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .articles-layout,
  .topics-layout {
    grid-template-columns: 1fr;
  }
  .task-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-panel {
    grid-template-columns: 1fr;
  }
  .feature-panel__image {
    min-height: 250px;
  }
  .article-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .layout,
  .layout--narrow,
  .layout--article,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 28px, 1180px);
  }
  .site-header__inner {
    min-height: 66px;
    gap: 10px;
  }
  .site-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .site-brand span { font-size: 23px; }
  .site-brand small { font-size: 9px; }
  .site-nav { top: 66px; }
  .site-nav .menu,
  .hero-tools,
  .finder-grid,
  .task-grid,
  .category-grid,
  .article-grid,
  .article-grid--compact,
  .link-columns {
    grid-template-columns: 1fr;
  }
  .header-search {
    order: 5;
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: 1fr auto;
  }
  .header-search input {
    width: 100%;
  }
  .hero-section,
  .section-band,
  .archive-hero,
  .page-hero {
    padding: 36px 0;
  }
  .hero-copy h1,
  .archive-hero h1,
  .page-hero h1,
  .single-article__title {
    font-size: 40px;
  }
  .hero-copy p:not(.eyebrow),
  .page-hero p,
  .single-article__excerpt {
    font-size: 18px;
  }
  .topic-navigator__top,
  .section-heading--inline,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .topic-search {
    grid-template-columns: 1fr;
  }
  .finder-item {
    border-right: 0;
  }
  .task-card,
  .category-tile {
    min-height: 144px;
  }
  .recent-row {
    grid-template-columns: 1fr;
  }
  .recent-row__thumb {
    width: 100%;
    height: 150px;
  }
  .footer-nav .menu {
    align-items: flex-start;
    flex-direction: column;
  }
}
