/* Cabinetshop.com — design tokens from "Cabinetshop Blog UI" (claude.ai/design) */
:root {
  --bg: #FBF7F0;
  --ink: #17382B;
  --ink-soft: #5A6B60;
  --muted: #8A8070;
  --muted-2: #B8AE9C;
  --line: #E8E0D2;
  --line-2: #D8CFBE;
  --accent: #E56B3C;
  --accent-dark: #D25A2C;
  --green: #17382B;
  --green-dark: #0F291F;
  --green-line: #3D5C4C;
  --green-text: #DCE8DD;
  --green-text-soft: #9DB5A6;
  --cream: #FFF4E8;
  --card: #FFFFFF;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Figtree', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--ink);
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.container { padding-left: 56px; padding-right: 56px; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; padding: 0 56px; border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink);
}
.logo span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.site-nav a.active { color: var(--accent); }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 99px;
  padding: 9px 18px; color: var(--muted); font-size: 14px; width: 190px;
}
.hamburger { display: none; flex-direction: column; gap: 4px; padding: 10px 2px; background: none; border: 0; cursor: pointer; }
.hamburger div { width: 20px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }

/* CSS-only mobile menu: a hidden checkbox that the hamburger label toggles.
   The input is visually hidden but NOT display:none, so it stays focusable and
   the menu opens from the keyboard with space. */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.nav-toggle:focus-visible ~ .site-header .hamburger { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 4px 20px 8px;
}
.mobile-nav a { padding: 13px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px;
  padding: 72px 56px 80px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em;
  color: var(--accent); font-weight: 600;
}
.hero h1 {
  margin: 0; font-family: var(--serif); font-size: 58px; line-height: 1.06;
  font-weight: 600; letter-spacing: -0.015em; text-wrap: balance;
}
.hero-sub { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; text-wrap: pretty; }
.hero-ctas { display: flex; align-items: center; gap: 20px; margin-top: 6px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff; padding: 15px 30px; border-radius: 99px;
  font-size: 16px; font-weight: 600; display: inline-block;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.link-underline {
  font-size: 16px; font-weight: 600; color: var(--ink);
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.hero-note { font-size: 14px; color: var(--muted); }

.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: 0 8px 24px rgba(23,56,43,0.08);
}
.feature-card .card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.feature-card h2 { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 600; }
.feature-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* photo placeholder until real photography lands */
.ph {
  background: repeating-linear-gradient(45deg, #F0E8D9 0 12px, #E6DCC8 12px 24px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* Card art fills its placeholder box. Sources are a mix of landscape and
   portrait, so cover-crop keeps every card in a grid the same height. */
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph a { display: block; width: 100%; height: 100%; }
.ph span { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 0 12px; text-align: center; }

.tag { font-size: 12px; letter-spacing: 0.1em; font-weight: 700; color: var(--accent); }
.read-link { font-size: 14px; font-weight: 600; color: var(--accent); }
.read-link:hover { color: var(--accent-dark); }

/* ---------- Sections ---------- */
.section { padding: 0 56px 72px; display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section h3 { margin: 0; font-family: var(--serif); font-weight: 600; }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 18px; display: flex; flex-direction: column; gap: 6px;
}
.cat-card:hover { border-color: var(--accent); }
.cat-card .name { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); }
.cat-card .count { font-size: 13px; color: var(--muted); }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
}
.guide-card .ph { height: 176px; }
.guide-card .card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.guide-card h4 {
  margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.25;
  font-weight: 600; text-wrap: balance;
}
.guide-card .excerpt { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); flex: 1; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 44px 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.newsletter h3 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.newsletter p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.newsletter-copy { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input {
  background: var(--bg); border: 1px solid var(--line); border-radius: 99px;
  padding: 14px 22px; color: var(--ink); font-size: 15px; width: 260px; font-family: var(--sans);
}
.newsletter-form input::placeholder { color: var(--muted); }
.btn-dark {
  background: var(--green); color: var(--cream); padding: 14px 28px; border-radius: 99px;
  font-size: 15px; font-weight: 600; border: 0; cursor: pointer; font-family: var(--sans);
}
.btn-dark:hover { background: var(--green-dark); color: var(--cream); }

/* ---------- Popular topics ---------- */
.topics-band { background: var(--green); padding: 60px 56px; display: flex; flex-direction: column; gap: 24px; }
.topics-band h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--cream); }
.topics-band .hint { font-size: 14px; color: var(--green-text-soft); }
.topics-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-pill {
  border: 1px solid var(--green-line); border-radius: 99px; padding: 9px 18px;
  font-size: 14px; color: var(--green-text);
}
.topic-pill:hover { border-color: var(--accent); color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 52px 56px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; border-top: 1px solid var(--line);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .logo { font-size: 20px; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col .col-head { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.copyright { padding: 0 56px 32px; font-size: 13px; color: var(--muted); }

/* ---------- Blog index ---------- */
.page-head { padding: 56px 56px 28px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { margin: 0; font-family: var(--serif); font-size: 46px; font-weight: 600; letter-spacing: -0.015em; }
.page-head .sub { margin: 0; font-size: 17px; color: var(--ink-soft); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill { border: 1px solid var(--line-2); border-radius: 99px; padding: 9px 20px; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: var(--green); color: var(--cream); border: 0; font-weight: 600; }
.index-grid { padding: 20px 56px 48px; }
.pagination {
  padding: 0 56px 56px; display: flex; align-items: center; justify-content: center;
  gap: 24px; font-size: 15px; font-weight: 600;
}
.pagination .disabled { color: var(--muted-2); }
.pagination .status { color: var(--ink-soft); font-weight: 500; }
.pagination a { color: var(--accent); }
.footer-simple {
  padding: 32px 56px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.footer-simple nav { display: flex; gap: 24px; }

/* compact list card (mobile guides index) */
.guide-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; display: none; gap: 14px; align-items: center;
}
.guide-row .ph { width: 92px; height: 92px; flex-shrink: 0; border-radius: 8px; }
.guide-row .row-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.guide-row h4 { margin: 0; font-family: var(--serif); font-size: 16.5px; line-height: 1.3; font-weight: 600; }
.guide-row .mins { font-size: 12.5px; color: var(--muted); }
.guide-row .tag { font-size: 11px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .container, .section, .topics-band, .site-footer, .copyright,
  .page-head, .index-grid, .pagination, .footer-simple { padding-left: 20px; padding-right: 20px; }

  .site-header { height: 60px; padding: 0 20px; }
  .logo { font-size: 19px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .nav-toggle:checked ~ .mobile-nav { display: flex; }
  .nav-toggle:checked ~ .site-header .hamburger div:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .site-header .hamburger div:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .site-header .hamburger div:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 20px 32px; }
  .hero h1 { font-size: 34px; line-height: 1.12; }
  .hero-sub { font-size: 16px; }
  .btn-primary { text-align: center; width: 100%; padding: 15px 0; }
  .hero-note, .link-underline { display: none; }

  .cat-grid { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .cat-card { flex-direction: row; align-items: center; white-space: nowrap; padding: 8px 15px; border-radius: 99px; border-color: var(--line-2); }
  .cat-card .name { font-family: var(--sans); font-size: 13px; font-weight: 500; }
  .cat-card .count { display: none; }

  .guide-grid { grid-template-columns: 1fr; gap: 18px; }
  .guide-card .ph { height: 150px; }
  .guide-card h4 { font-size: 19px; }
  .guide-card .excerpt { display: none; }

  .section h3 { font-size: 23px !important; }

  .newsletter { flex-direction: column; align-items: stretch; padding: 28px 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }

  .topics-band { padding: 32px 20px; gap: 16px; }
  .topics-band h3 { font-size: 21px; }
  .topics-band .hint { display: none; }
  .topic-pill { padding: 7px 14px; font-size: 12.5px; }

  .site-footer { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px; }

  .page-head h1 { font-size: 32px; }
  .page-head .sub { font-size: 15px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .pill { padding: 8px 16px; font-size: 13px; }

  /* guides index: swap grid cards for compact rows */
  .index-grid { display: flex; flex-direction: column; gap: 14px; }
  .index-grid .guide-card { display: none; }
  .guide-row { display: flex; }

  .pagination { font-size: 14px; gap: 20px; }
  .footer-simple { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---------- Article pages ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.article-head { margin-bottom: 36px; }
/* Hero art. Four of the nine picks are portrait, so the ratio is pinned and
   the image cover-crops into it — a 2:3 photo at full article width would
   otherwise push the opening paragraph off the screen. */
.article-hero { margin: 0 0 36px; }
.article-hero img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 12px; display: block; }
.article-head h1 { font-family: var(--serif); font-size: 42px; line-height: 1.15; letter-spacing: -0.01em; margin: 14px 0 12px; }
.article-sub { font-size: 19px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 14px; }
.article-byline { font-size: 14px; color: var(--muted); margin: 0; }
.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { font-family: var(--serif); font-size: 28px; line-height: 1.25; margin: 42px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.prose th { text-align: left; font-weight: 600; border-bottom: 2px solid var(--line-2); padding: 10px 12px; }
.prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.faq h3 { font-family: var(--serif); }
.cta-box { background: var(--cream); border: 1px solid var(--line-2); border-radius: 12px; padding: 28px 32px; margin: 48px 0; }
.cta-box h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 10px; }
.cta-box p { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.6; }
.related { margin-top: 48px; }
.related h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 18px; }
@media (max-width: 640px) {
  .article { padding: 36px 18px 56px; }
  .article-head h1 { font-size: 32px; }
}
