
:root {
  --bg: #f0f4eb;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-strong: rgba(255, 255, 255, 0.96);
  --ink: #18342b;
  --muted: #5a726b;
  --line: rgba(24, 52, 43, 0.12);
  --forest: #0f694c;
  --forest-deep: #0d4b36;
  --blue: #245f8f;
  --olive: #6e8d22;
  --sand: #dce8c0;
  --accent: #d9ef6b;
  --shadow: 0 18px 34px rgba(21, 40, 33, 0.08);
  --shadow-soft: 0 8px 18px rgba(21, 40, 33, 0.05);
  --radius: 18px;
  --radius-sm: 12px;
  --content: min(1160px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Lucida Grande", sans-serif;
  line-height: 1.55;
  background: linear-gradient(180deg, #f2f5ef 0%, #f8f8f3 100%);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--forest-deep);
  color: #fff;
  border-radius: 999px;
}

.skip-link:focus {
  left: 1rem;
  z-index: 999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 248, 243, 0.9);
  border-bottom: 1px solid rgba(24, 52, 43, 0.08);
}

.site-header__inner,
.page-hero,
.section,
.site-footer__inner {
  width: var(--content);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  min-height: 4.75rem;
}

.brand {
  text-decoration: none;
}

.brand__eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand__name {
  display: block;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-size: 0.96rem;
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--forest-deep);
  box-shadow: var(--shadow-soft);
}

.page-hero {
  padding: 4.5rem 0 2rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-meta,
.callout,
.product-card,
.step-card,
.download-card,
.reminder-panel {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
  background:
    linear-gradient(150deg, rgba(15, 105, 76, 0.92), rgba(36, 95, 143, 0.88)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 42%);
  color: #f5fbf2;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(217, 239, 107, 0.18);
}

.hero-copy p,
.hero-copy li {
  color: rgba(245, 251, 242, 0.9);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.9;
}

.hero-title,
.section-title,
.card-title,
.step-title,
.download-title,
.page-title {
  margin: 0;
  font-family: Georgia, "Palatino Linotype", serif;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  max-width: 11ch;
}

.hero-copy .lead {
  margin: 1rem 0 0;
  max-width: 55ch;
  font-size: 1.06rem;
}

.hero-actions,
.card-actions,
.download-actions,
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 1.5rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button {
  background: #f5fbf2;
  color: var(--forest-deep);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #f5fbf2;
}

.hero-meta {
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 245, 0.9));
}

.metric-grid,
.category-links,
.step-links,
.product-grid,
.download-grid,
.gallery-grid,
.reminder-grid {
  display: grid;
  gap: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  padding: 1rem;
  background: var(--paper-strong);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  font-family: Georgia, "Palatino Linotype", serif;
  margin-bottom: 0.35rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.94rem;
}

.category-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-link {
  padding: 1rem 1.05rem;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(217, 239, 107, 0.2), rgba(255, 255, 255, 0.92));
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 105, 76, 0.1);
}

.category-link strong {
  display: block;
  font-size: 1rem;
}

.category-link span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 1.5rem 0 3rem;
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.section-title,
.page-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.section-copy,
.page-copy,
.muted {
  color: var(--muted);
}

.callout {
  padding: 1.3rem 1.4rem;
  margin-top: 1rem;
}

.callout ul,
.callout ol,
.product-card ul,
.step-card ol,
.download-card ul,
.reminder-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.family-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.family-nav a,
.step-chip,
.product-tag {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(217, 239, 107, 0.22);
  color: var(--forest-deep);
  font-size: 0.92rem;
}

.catalog-section {
  scroll-margin-top: 5.8rem;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  scroll-margin-top: 6rem;
}

.product-card__media {
  background:
    radial-gradient(circle at top right, rgba(217, 239, 107, 0.34), transparent 30%),
    linear-gradient(180deg, #ebf5e2 0%, #f8f8f2 100%);
  padding: 1.25rem 1.25rem 0;
  min-height: 16rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.product-card__media img {
  max-height: 14.2rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(24, 52, 43, 0.16));
}

.product-card__body {
  padding: 1.3rem;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.product-tag {
  background: rgba(36, 95, 143, 0.12);
  color: var(--blue);
}

.card-title {
  font-size: 1.72rem;
  margin-bottom: 0.55rem;
}

.card-summary {
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.card-actions {
  margin-bottom: 1rem;
}

.card-action {
  text-decoration: none;
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  background: #11382c;
  color: #fff;
  font-weight: 700;
  font-size: 0.94rem;
}

.card-action--secondary {
  background: rgba(17, 56, 44, 0.08);
  color: var(--forest-deep);
}

.product-card details {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.product-card summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
}

.product-card summary::-webkit-details-marker {
  display: none;
}

.product-card summary::after {
  content: "+";
  float: right;
  color: var(--forest);
}

.product-card details[open] summary::after {
  content: "-";
}

.detail-stack {
  display: grid;
  gap: 1rem;
  margin-top: 0.85rem;
}

.detail-stack h4 {
  margin: 0 0 0.45rem;
  font-size: 0.96rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-stack p {
  margin: 0;
}

.page-shell {
  padding-top: 1.4rem;
}

.page-intro {
  display: grid;
  gap: 1rem;
}

.step-links {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1rem;
}

.step-chip {
  justify-content: center;
  text-align: center;
  min-height: 4.25rem;
  padding: 0.9rem;
  border: 1px solid rgba(15, 105, 76, 0.1);
  background: linear-gradient(180deg, rgba(217, 239, 107, 0.24), rgba(255, 255, 255, 0.92));
}

.step-card {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  margin-top: 1.15rem;
  scroll-margin-top: 6rem;
}

.step-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem 1rem;
}

.step-title {
  margin: 0;
  font-size: 2rem;
}

.instruction-sequence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  align-items: start;
}

.instruction-item {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-height: 100%;
  padding: 1.05rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.instruction-item__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}

.instruction-item__copy {
  min-width: 0;
}

.instruction-index {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-deep);
  color: #fff;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
}

.instruction-item__copy p {
  margin: 0;
  font-weight: 700;
  max-width: none;
  line-height: 1.45;
}

.instruction-item__media {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
  align-content: end;
  align-items: end;
  justify-content: start;
  justify-items: start;
  min-height: 12rem;
}

.instruction-item__media--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 202px;
}

.instruction-item__media--multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: calc(202px * 2 + 0.75rem);
}

.instruction-item__media img {
  width: min(100%, 202px);
  max-width: 202px;
  max-height: 165px;
  aspect-ratio: 135 / 110;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(235, 245, 226, 0.92), rgba(255, 255, 255, 0.98));
  padding: 0.75rem;
  justify-self: start;
  align-self: end;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-links a {
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(36, 95, 143, 0.1);
  color: var(--blue);
  font-size: 0.92rem;
}

.step-card .related-links {
  justify-content: flex-end;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #f5f7ef;
}

.reminder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.reminder-panel {
  padding: 1.3rem;
}

.reminder-panel h3 {
  margin: 0 0 0.6rem;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 1.5rem;
}

.download-grid {
  margin-top: 1.2rem;
}

.download-card {
  padding: 1.15rem 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.download-title {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.download-format {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 105, 76, 0.12);
  color: var(--forest);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-actions {
  justify-content: flex-end;
}

.download-actions a {
  text-decoration: none;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: #11382c;
  color: #fff;
  font-weight: 700;
}

.download-actions a.secondary {
  background: rgba(17, 56, 44, 0.08);
  color: var(--forest-deep);
}

.site-footer {
  padding: 1.8rem 0 2.6rem;
}

.site-footer__inner {
  color: var(--muted);
  border-top: 1px solid rgba(24, 52, 43, 0.08);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.page-products .page-shell {
  padding-top: 0.8rem;
}

.page-instructions .page-shell {
  padding-top: 0.8rem;
}

.catalog-intro {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.catalog-intro__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.catalog-intro__title {
  display: grid;
  gap: 0.45rem;
}

.catalog-intro .page-title {
  font-size: clamp(1.95rem, 3.2vw, 3rem);
}

.catalog-intro .page-copy {
  margin: 0;
  max-width: 68ch;
}

.catalog-shortcuts,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.catalog-shortcuts a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #11382c;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

.catalog-shortcuts a.secondary {
  background: rgba(17, 56, 44, 0.08);
  color: var(--forest-deep);
}

.catalog-shortcuts a.secondary,
.filter-button {
  border: 1px solid rgba(17, 56, 44, 0.08);
}

.filter-bar {
  align-items: center;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 56, 44, 0.06);
  color: var(--forest-deep);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  background: var(--forest-deep);
  color: #fff;
}

.catalog-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-products .section {
  padding: 0.2rem 0 1.9rem;
}

.page-products .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.85rem;
}

.page-products .product-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 52, 43, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card[hidden] {
  display: none;
}

.page-products .product-card:hover,
.page-products .product-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-card__trigger {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card__trigger:focus-visible {
  outline: 3px solid rgba(36, 95, 143, 0.3);
  outline-offset: 3px;
}

.page-products .product-card__media {
  min-height: 8.4rem;
  padding: 0.7rem 0.7rem 0;
  background: linear-gradient(180deg, #f4f7f0 0%, #fafaf6 100%);
  border-bottom: 1px solid rgba(24, 52, 43, 0.05);
}

.page-products .product-card__media img {
  max-height: 7.4rem;
  filter: drop-shadow(0 10px 14px rgba(24, 52, 43, 0.1));
}

.page-products .product-card__body {
  display: grid;
  gap: 0.28rem;
  padding: 0.72rem 0.78rem 0.82rem;
}

.page-products .card-title {
  font-size: 1.04rem;
  line-height: 1.08;
  margin-bottom: 0;
}

.page-products .card-summary {
  margin: 0;
  min-height: 2.35em;
  font-size: 0.82rem;
  line-height: 1.34;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-open {
  margin-top: 0.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--forest);
}

.product-dialog {
  width: min(880px, calc(100vw - 1rem));
  max-width: 880px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.product-dialog::backdrop {
  background: rgba(10, 24, 20, 0.56);
  backdrop-filter: blur(4px);
}

.product-dialog__panel {
  position: relative;
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 52, 43, 0.08);
  box-shadow: var(--shadow);
}

.product-dialog__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 0;
  background: rgba(17, 56, 44, 0.08);
  color: var(--forest-deep);
  min-height: 2.1rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.product-dialog__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: start;
}

.product-dialog__media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 16rem;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4f7f0 0%, #fafaf6 100%);
  border: 1px solid rgba(24, 52, 43, 0.06);
}

.product-dialog__media img {
  max-height: 15rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(24, 52, 43, 0.12));
}

.product-dialog__content {
  display: grid;
  gap: 0.8rem;
  padding-right: 2.2rem;
}

.product-dialog__summary {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.product-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.product-dialog__actions a {
  text-decoration: none;
}

.dialog-section {
  display: grid;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.dialog-section h3 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dialog-section p,
.dialog-section ul,
.dialog-section ol {
  margin: 0;
}

@media (max-width: 980px) {
  .hero-panel,
  .download-card {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .metric-grid,
  .category-links,
  .reminder-grid {
    grid-template-columns: 1fr;
  }

  .step-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-actions {
    justify-content: flex-start;
  }

  .catalog-intro__top,
  .product-dialog__grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .step-card__head {
    align-items: start;
  }

  .product-dialog__content {
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    min-height: auto;
    padding: 0.9rem 0 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding-top: 3.4rem;
  }

  .hero-copy,
  .hero-meta,
  .product-card__body,
  .step-card,
  .download-card,
  .reminder-panel,
  .callout {
    padding: 1.1rem;
  }

  .product-card__media {
    min-height: 13rem;
    padding: 1rem 1rem 0;
  }

  .gallery-grid,
  .step-links {
    grid-template-columns: 1fr;
  }

  .instruction-sequence {
    grid-template-columns: 1fr;
  }

  .instruction-index {
    width: 2rem;
    height: 2rem;
  }

  .instruction-item__media {
    min-height: 0;
  }

  .catalog-intro {
    padding: 1rem;
  }

  .page-products .product-card__media {
    min-height: 7.8rem;
  }

  .page-products .product-card__media img {
    max-height: 6.8rem;
  }

  .product-dialog__panel {
    padding: 1rem;
  }

  .product-dialog__media {
    min-height: 14rem;
  }
}

@media (max-width: 420px) {
  .page-products .product-grid {
    grid-template-columns: 1fr;
  }

  .instruction-item__media--multi {
    grid-template-columns: 1fr 1fr;
  }
}
