:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-alt: #eef4f1;
  --text: #1f2933;
  --muted: #5f6c7b;
  --brand: #116466;
  --brand-dark: #0b3f40;
  --accent: #d9822b;
  --line: #d8ddd9;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(260px, 62vw);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a,
.site-footer a {
  text-decoration: none;
}

.top-nav a:hover,
.site-footer a:hover,
.post-card h2 a:hover {
  color: var(--brand);
}

.hero {
  min-height: 58vh;
  display: grid;
  align-items: center;
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(17, 100, 102, 0.94), rgba(17, 100, 102, 0.73)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd39c;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.14rem;
}

.hero p {
  max-width: 680px;
  font-size: 1.16rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.section,
.page-head,
.article {
  padding: clamp(42px, 6vw, 78px) clamp(18px, 4vw, 56px);
}

.section--muted {
  background: var(--surface-alt);
}

.section-heading,
.page-head {
  max-width: 960px;
}

.page-head p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.06rem;
}

.post-grid,
.category-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin-top: 24px;
}

.post-card,
.category-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.post-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 0 24px 24px;
}

.post-card__image {
  display: block;
  margin: 0 -24px 8px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-alt);
}

.post-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card h2 {
  font-size: 1.34rem;
}

.post-card h2 a,
.category-card {
  text-decoration: none;
}

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

.post-card time {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-card__category {
  width: fit-content;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.category-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 0 24px 24px;
}

.category-card__image {
  display: block;
  margin: 0 -24px 4px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-alt);
}

.category-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.category-card span {
  color: var(--brand);
  font-weight: 800;
}

.article {
  max-width: 1040px;
  margin: 0 auto;
}

.article__header {
  margin-bottom: 32px;
}

.article__header h1 {
  margin-top: 10px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.article__header p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.article__header time {
  color: var(--muted);
}

.article__image {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article__block {
  margin: 36px 0;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  color: var(--brand-dark);
}

tr:last-child td {
  border-bottom: 0;
}

.product-card {
  overflow: hidden;
  padding: 20px;
}

.product-card__media {
  width: calc(100% + 40px);
  aspect-ratio: 16 / 10;
  margin: -20px -20px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.product-card__image,
.product-card__placeholder {
  width: 100%;
  height: 100%;
}

.product-card__image {
  display: block;
  object-fit: cover;
}

.product-card__placeholder {
  display: grid;
  place-items: center;
}

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

.product-card__placeholder span {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card p {
  color: var(--muted);
}

.product-card strong {
  display: block;
  margin: 12px 0;
  color: var(--brand-dark);
}

.affiliate-disclosure {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 34px;
  font-size: 1.65rem;
}

.prose p {
  color: #33404d;
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) clamp(18px, 4vw, 56px);
}

.legal-page h1 {
  margin-bottom: 28px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.legal-page p,
.legal-page li {
  color: #33404d;
}

.legal-page a {
  color: var(--brand);
  font-weight: 700;
}

.legal-page ul {
  padding-left: 20px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 24px;
  padding: 36px clamp(18px, 4vw, 56px);
  background: var(--brand-dark);
  color: #e8f1ef;
}

.site-footer p {
  margin: 8px 0 0;
  color: #b9cac7;
}

.footer-logo {
  display: inline-flex;
  width: min(260px, 72vw);
  padding: 4px;
  border-radius: 8px;
  background: #ffffff;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.affiliate-note {
  grid-column: 1 / -1;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  left: clamp(14px, 3vw, 28px);
  z-index: 30;
  display: flex;
  max-width: 980px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(31, 41, 51, 0.2);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: #33404d;
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-banner button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cookie-banner button[data-cookie-reject] {
  background: #fff;
  color: var(--brand);
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav,
  .site-footer nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 520px;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner button {
    flex: 1;
  }
}
