﻿:root {
  --bg: #fbfaf6;
  --bg-card: #ffffff;
  --text: #173322;
  --text-muted: #526553;
  --accent: #1f513c;
  --accent-light: #40916c;
  --accent-soft: #e4f2e7;
  --accent-warm: #dfa66d;
  --cream: #f8f3ea;
  --border: #e4e9df;
  --warning-bg: #fff8e6;
  --warning-border: #e9c46a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 44px rgba(23, 51, 34, 0.09);
  --shadow-soft: 0 8px 26px rgba(23, 51, 34, 0.07);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1120px;
  --article: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -12%, rgba(64, 145, 108, 0.12), transparent 72%),
    radial-gradient(circle at 8% 18%, rgba(223, 166, 109, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #f3f1eb 100%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; }

img[loading="lazy"] { content-visibility: auto; }

.hero-visual {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1deg);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-featured img,
.category-hero-visual img {
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.card-icon img {
  width: 100%;
  height: auto;
  border-radius: inherit;
  object-fit: contain;
}

.article-featured {
  width: min(var(--article), 100% - 2rem);
  margin: -0.5rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-featured img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  min-height: 160px;
}

.article-featured-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(var(--article), 100% - 2rem);
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-featured-icon img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
}

.article-featured-icon span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.category-hero-visual {
  width: min(360px, 100%);
  margin: 0;
  flex-shrink: 0;
  border: 8px solid rgba(255, 255, 255, 0.72);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-header-with-visual .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(31, 81, 60, 0.1);
}

.card-icon img {
  width: 48px;
  height: 48px;
}

.category-list a {
  gap: 0.75rem;
}

.category-list .list-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.category-list .list-icon img {
  width: 32px;
  height: 32px;
}

.card--category {
  display: flex;
  flex-direction: column;
}

.cards--categories {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

.container {
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31, 81, 60, 0.1);
  box-shadow: 0 10px 30px rgba(23, 51, 34, 0.04);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo span { color: var(--accent); }

.logo img {
  display: block;
  width: clamp(152px, 18vw, 178px);
  height: auto;
  object-fit: contain;
}

.logo--footer {
  display: inline-flex;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.logo--footer img { width: 156px; }

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
  background: rgba(228, 242, 231, 0.8);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.4rem;
  background:
    radial-gradient(circle at 82% 14%, rgba(223, 166, 109, 0.15), transparent 25%),
    linear-gradient(135deg, rgba(228, 242, 231, 0.82) 0%, rgba(248, 243, 234, 0.58) 52%, transparent 100%);
  border-bottom: 1px solid rgba(31, 81, 60, 0.1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  pointer-events: none;
  border: 1px solid rgba(31, 81, 60, 0.08);
  border-radius: 28px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 81, 60, 0.13);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px rgba(23, 51, 34, 0.04);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 52ch;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 81, 60, 0.08);
  border-radius: 14px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(23, 51, 34, 0.04);
}

.category-list a:hover {
  background: #fff;
  border-color: rgba(64, 145, 108, 0.35);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section--compact {
  padding: 1.5rem 0 2rem;
}

.section--compact .category-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.section-sub {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(31, 81, 60, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.card-thumb {
  margin: -1.5rem -1.5rem 1rem;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-thumb img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
  border-radius: 0;
}

.card:hover .card-thumb img {
  transform: scale(1.03);
}

.card--category .card-thumb img {
  aspect-ratio: 2 / 1;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(64, 145, 108, 0.32);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #276248;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.card-link:hover {
  color: var(--accent-light);
  text-decoration: none;
}

/* Trust block */
.trust {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 81, 60, 0.12);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  margin: 1.25rem 0 0;
  box-shadow: var(--shadow-soft);
}

.trust p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* Article layout */
.page-header {
  padding: 3rem 0 2rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(223, 166, 109, 0.11), transparent 26%),
    linear-gradient(135deg, rgba(228, 242, 231, 0.62), rgba(248, 243, 234, 0.42));
  border-bottom: 1px solid rgba(31, 81, 60, 0.1);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
  margin: 0 0 0.75rem;
  max-width: 16ch;
  letter-spacing: -0.04em;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-body {
  width: min(var(--article), 100% - 2rem);
  margin: 0 auto 3rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
}

.article-body h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.article-body p,
.article-body li {
  color: var(--text);
}

.article-body ul, .article-body ol {
  padding-left: 1.25rem;
}

.disclaimer {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.affiliate-box {
  background: var(--bg-card);
  border: 2px solid var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.affiliate-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}

.affiliate-box p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.affiliate-box .product {
  font-weight: 600;
}

.affiliate-box .platform {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.35rem;
}

.btn-affiliate {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 10px 20px rgba(31, 81, 60, 0.16);
}

.btn-affiliate:hover {
  background: var(--accent-light);
  color: #fff !important;
}

.btn-affiliate.placeholder {
  background: var(--text-muted);
  cursor: default;
  opacity: 0.7;
}

.buying-guide {
  background: rgba(228, 242, 231, 0.62);
  border: 1px solid rgba(64, 145, 108, 0.22);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
  box-shadow: var(--shadow-soft);
}

.buying-guide p:first-child {
  margin-top: 0;
}

.buying-guide p:last-child {
  margin-bottom: 0;
}

.buying-guide ul {
  margin: 0.9rem 0 1rem;
}

.recommendation-placeholder {
  background: var(--bg-card);
  border: 2px dashed rgba(31, 81, 60, 0.24);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-soft);
}

.recommendation-placeholder h3 {
  margin-top: 0.2rem;
  color: var(--accent);
}

.recommendation-placeholder__eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.18rem 0.55rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Legal pages */
.legal-body {
  width: min(800px, 100% - 2rem);
  margin: 0 auto 3rem;
}

.page-hero--about {
  padding: 0 0 1.5rem;
  margin-bottom: 0;
  border-bottom: none;
}

.page-hero--about .page-hero-visual {
  width: min(var(--max), 100% - 2rem);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero--about .page-hero-visual img {
  width: 100%;
  aspect-ratio: 21 / 7;
  object-fit: cover;
  max-width: 100%;
}

.about-visual {
  width: min(800px, 100% - 2rem);
  margin: -0.5rem auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
}

.about-body {
  margin-top: 0;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-body p, .legal-body li {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.todo-box {
  background: #fff3cd;
  border: 2px dashed #e9a100;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.todo-box strong { color: #856404; }

.todo-field {
  background: #fff8e0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
  color: #856404;
}

.article-nav {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-nav h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.article-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.article-nav a {
  font-weight: 500;
}

/* Footer */
.footer {
  background:
    radial-gradient(circle at 18% 0%, rgba(64, 145, 108, 0.28), transparent 34%),
    linear-gradient(180deg, #173322 0%, #102419 100%);
  color: #c8d5c8;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li { margin-bottom: 0.5rem; }

.footer a {
  color: #c8d5c8;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: #fff;
  padding: 1rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner.visible { display: flex; }

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a { color: var(--accent-soft); }

.btn-cookie {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cookie:hover { background: var(--accent-light); }

.nav a.nav-active {
  color: var(--accent);
  font-weight: 600;
  background: #fff;
  box-shadow: 0 6px 18px rgba(23, 51, 34, 0.06);
}

.placeholder-notice {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.placeholder-notice.placeholder-draft {
  border-color: var(--accent-light);
  background: var(--accent-soft);
}

.category-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.category-article-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 1rem 0.72rem 0.72rem;
  background: var(--bg-card);
  border: 1px solid rgba(31, 81, 60, 0.1);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(23, 51, 34, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.category-article-list .list-thumb {
  width: 80px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  max-width: 80px;
  overflow: hidden;
  background: var(--border);
}

.category-article-list a > span:first-of-type {
  flex: 1;
  min-width: 0;
}

.category-article-list a:hover {
  border-color: var(--accent-light);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.category-article-list.compact a {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-live { background: var(--accent-soft); color: var(--accent); }
.status-draft { background: #fff3cd; color: #856404; }
.status-planned { background: #eee; color: var(--text-muted); }

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 100%; order: -1; }
  .page-header-with-visual .container { grid-template-columns: 1fr; }
  .category-hero-visual { margin-inline: auto; max-width: 100%; }
  .about-visual img { aspect-ratio: 16 / 9; }
  .page-hero--about .page-hero-visual img { aspect-ratio: 16 / 9; }
  .article-featured img { aspect-ratio: 16 / 9; }
  .category-article-list .list-thumb { width: 64px; height: 48px; max-width: 64px; }
  .footer-grid { grid-template-columns: 1fr; }
}
