:root {
  --paper: #fbf8f1;
  --cream: #f4ebdc;
  --ink: #2e2925;
  --muted: #756b62;
  --gold: #b58b35;
  --rose: #b96d76;
  --sage: #5f7b62;
  --line: rgba(46, 41, 37, 0.12);
  --shadow: 0 18px 45px rgba(46, 41, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(46, 41, 37, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
}

.brand-mark img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav a,
.category-switcher summary {
  display: inline-flex;
  min-height: 40px;
  padding: 0 14px;
  align-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.header-nav a:hover,
.category-switcher summary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.category-switcher {
  position: relative;
}

.category-switcher summary {
  list-style: none;
}

.category-switcher summary::-webkit-details-marker {
  display: none;
}

.category-switcher summary::after {
  margin-left: 8px;
  content: "▾";
}

.category-switcher[open] summary::after {
  content: "▴";
}

.category-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(251, 248, 241, 0.99);
  box-shadow: var(--shadow);
}

.category-list a {
  display: block;
  min-height: auto;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13px;
}

.category-list a:hover,
.category-list a[aria-current="page"] {
  color: var(--ink);
  background: var(--cream);
}

.hero {
  padding: 82px 0 66px;
  background:
    radial-gradient(circle at 82% 12%, rgba(244, 217, 139, 0.42), transparent 30%),
    linear-gradient(135deg, #51463e, #2e2925);
  color: #fff;
}

.container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: #f4d98b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 70px);
  font-weight: 500;
  line-height: 1.03;
}

.hero-description {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 2vw, 19px);
}

.content-layout {
  display: grid;
  padding: 52px 0 76px;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.8fr);
  align-items: start;
  gap: 34px;
}

.subcategory-menu {
  position: sticky;
  top: 94px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(46, 41, 37, 0.08);
}

.subcategory-menu summary {
  position: relative;
  padding: 16px 46px 16px 18px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.subcategory-menu summary::-webkit-details-marker {
  display: none;
}

.subcategory-menu summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  content: "+";
  color: var(--rose);
  font-size: 22px;
  font-weight: 400;
  transform: translateY(-50%);
}

.subcategory-menu[open] summary::after {
  content: "−";
}

.subcategory-links {
  padding: 0 10px 12px;
}

.subcategory-links a {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
}

.subcategory-links a:hover {
  color: var(--ink);
  background: var(--cream);
}

.subcategory-sections {
  display: grid;
  gap: 18px;
}

.category-empty {
  padding: 28px;
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.subcategory-card {
  scroll-margin-top: 92px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(46, 41, 37, 0.07);
}

.subcategory-number {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  margin-bottom: 15px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-size: 13px;
  font-weight: 850;
}

.subcategory-card h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 500;
  line-height: 1.15;
}

.subcategory-card p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 17px;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--sage);
  font-size: 14px;
  font-weight: 800;
}

.card-link:hover {
  background: #4e6952;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.64);
  background: var(--ink);
  font-size: 14px;
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1120px);
    gap: 8px;
  }

  .brand > span:last-child {
    display: none;
  }

  .header-nav {
    gap: 2px;
  }

  .header-nav a,
  .category-switcher summary {
    padding: 0 10px;
    font-size: 12px;
  }

  .category-list {
    position: fixed;
    top: 66px;
    right: 12px;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
  }

  .hero {
    padding: 58px 0 48px;
  }

  .content-layout {
    padding: 30px 0 54px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .subcategory-menu {
    position: static;
  }

  .subcategory-card {
    padding: 22px;
  }
}
