/* ===== ComfyLife — Global Styles ===== */

:root {
  --bg: #FAF7F2;
  --bg-soft: #F3EEE7;
  --text: #2C2926;
  --text-soft: #5E5852;
  --text-muted: #8A837B;
  --accent: #B85C4A;
  --accent-soft: #D48371;
  --border: #E8E2D9;
  --border-soft: #F0EBE3;
  --max-w: 1200px;
  --article-w: 720px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--accent); }

img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Navigation ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 14px;
  color: var(--text-soft);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
}

.nav-links a.active {
  color: var(--text);
  font-weight: 500;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 48px 32px 32px;
  background: var(--bg-soft);
  clear: both;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.footer-brand h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.005em;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 380px;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: var(--sans);
}

.footer-col ul {
  list-style: none;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-col li { margin-bottom: 10px; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom > div:first-child {
  flex-shrink: 0;
  padding-top: 2px;
  white-space: nowrap;
}

.footer-affiliate {
  flex: 1 1 280px;
  min-width: 280px;
  max-width: 520px;
  font-size: 12px;
  line-height: 1.75;
  text-align: right;
  margin-left: auto;
}

/* ===== Container ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Section headings ===== */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--text);
}

.section-head h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: var(--sans);
}

.tag-dark { color: var(--text); }

/* ===== Home layout ===== */
.home-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding: 48px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}

/* ===== Coverage cards grid ===== */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
}

.coverage-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.coverage-card .card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.coverage-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.coverage-card:hover .card-img img {
  transform: scale(1.03);
}

.coverage-card .card-body { padding-top: 4px; }

.coverage-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

.coverage-card .card-date {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.coverage-card .card-excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ===== Trending sidebar ===== */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trending-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-item .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
}

.trending-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-item .t-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--text);
}

.trending-item .t-date {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== List page hero ===== */
.list-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 0;
}

.list-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 48px;
}

.list-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-hero h1 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 90%;
}

.list-hero .hero-sub {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 80%;
  margin-bottom: 40px;
  line-height: 1.7;
  font-family: var(--serif);
  font-style: italic;
}

/* ===== List grid ===== */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 32px 0;
}

.list-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-card .card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.list-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.list-card:hover .card-img img {
  transform: scale(1.04);
}

.list-card .card-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--sans);
}

.list-card .card-meta .tag-mini {
  color: var(--accent);
  font-weight: 600;
}

.list-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.list-card .card-excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ===== Category nav ===== */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 32px;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--border);
}

.cat-chip {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-soft);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1.4;
}

.cat-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== List sections ===== */
.list-section {
  padding: 48px 0 0;
}

.list-section .list-grid {
  padding-top: 0;
}

.empty-state {
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--serif);
  font-size: 18px;
}

/* ===== Article detail ===== */
.article-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 0;
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 48px;
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-header-inner {
  max-width: var(--article-w);
  margin: 0 auto;
}

.article-meta-top {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--sans);
  max-width: var(--article-w);
  margin-left: auto;
  margin-right: auto;
}

.article-title {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: var(--article-w);
  margin-left: auto;
  margin-right: auto;
}

.article-subtitle {
  font-size: 19px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: var(--article-w);
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  font-family: var(--serif);
  font-weight: 500;
}

.article-date-line {
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: var(--article-w);
  margin-left: auto;
  margin-right: auto;
}

/* ===== Article body ===== */
.article-body {
  max-width: var(--article-w);
  margin: 0 auto;
  padding: 0 32px;
}

.affiliate-note {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

.affiliate-note .label {
  font-weight: 600;
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 2px;
}

.article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: 0.005em;
}

.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: var(--accent);
}

.article-body h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 40px 0 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-soft);
  font-weight: 500;
}

.article-body em {
  font-family: var(--serif);
  font-style: italic;
}

/* ===== Contact form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 0 40px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
  text-transform: none;
  letter-spacing: normal;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.submit-btn {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s ease;
  letter-spacing: 0.02em;
}

.submit-btn:hover {
  background: var(--accent-soft);
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-left: 3px solid #4a9d6d;
  border-radius: 4px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}

.contact-alternate {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.contact-alternate p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.contact-alternate a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.contact-alternate a:hover {
  border-bottom-color: var(--accent);
}

/* ===== Product recommendation card ===== */
.product-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin: 48px 0 16px;
  position: relative;
}

.product-card::before {
  content: 'My Pick';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--sans);
}

.product-card-img {

  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text);
}

.product-card-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 20px;
  font-style: italic;
  font-family: var(--serif);
  font-weight: 500;
}

.product-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.product-card-btn:hover {
  background: var(--accent-soft);
}

.product-card-btn svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 720px) {
  .product-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 20px;
  }
  .product-card-img {
    max-width: 100%;
  }
  .product-card-body h3 {
    font-size: 20px;
  }
}

/* ===== Related section ===== */
.related-section {
  max-width: var(--max-w);
  margin: 80px auto 0;
  padding: 0 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-card .card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.related-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .card-img img {
  transform: scale(1.04);
}

.related-card .card-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--sans);
}

.related-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .home-main {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .list-hero h1 { font-size: 42px; }
  .article-title { font-size: 38px; }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    padding: 16px 20px;
    gap: 20px;
  }
  .nav-logo { font-size: 22px; }
  .nav-links { gap: 20px; font-size: 13px; }
  .home-main { padding: 32px 20px; }
  .coverage-grid { grid-template-columns: 1fr; }
  .list-hero { padding: 32px 20px 0; }
  .list-hero h1 { font-size: 32px; }
  .list-grid {
    grid-template-columns: 1fr;
    padding: 24px 20px 0;
  }
  .article-header { padding: 32px 20px 0; }
  .article-title { font-size: 30px; }
  .article-subtitle { font-size: 17px; }
  .article-body { padding: 0 20px; }
  .article-body p { font-size: 16px; }
  .affiliate-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .related-section { padding: 0 20px; margin-top: 56px; }
  .site-footer { padding: 32px 20px 24px; margin-top: 56px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-affiliate {
    text-align: left;
    margin-left: 0;
  }
}
