/* Mews Loft — editorial, compact-home, high-trust */
:root {
  --paper: #f3efe4;
  --paper-2: #e8e2d3;
  --card: #fbf8f1;
  --ink: #1c1814;
  --ink-2: #4a453c;
  --ink-3: #6f685c;
  --rule: #d6cfc0;
  --rule-strong: #b9b09c;
  --sage: #2f5348;
  --sage-2: #3e6a5c;
  --sage-deep: #243f38;
  --sage-soft: #e4eee9;
  --clay: #b85a32;
  --clay-soft: #f3e4db;
  --focus: #1c1814;
  --shadow: 0 10px 30px rgba(28, 24, 20, 0.06);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-ui: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --measure: 40.5rem;
  --site: 72rem;
  --radius: 0.85rem;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-underline-offset: 0.15em; }
a:hover { color: var(--sage-deep); }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  z-index: 100;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--site));
  margin-inline: auto;
}
.narrow { width: min(calc(100% - 2rem), var(--measure)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, white);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  color: var(--sage);
  flex: none;
}
.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand-tag {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.15rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-list a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--sage);
}

@media (max-width: 820px) {
  .brand-tag { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-panel {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--rule);
    padding: 0.75rem 1rem 1.25rem;
  }
  .nav-panel[data-open="true"] { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .nav-list a { font-size: 1.1rem; padding: 0.35rem 0; }
  body.nav-open { overflow: hidden; }
}

/* Disclosure chips */
.disclosure-banner,
.vet-note,
.method-note {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin: 1.25rem 0;
}
.disclosure-banner {
  background: var(--clay-soft);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--clay) 25%, var(--rule));
}
.vet-note {
  background: #f6efe3;
  border: 1px solid var(--rule);
}
.method-note {
  background: var(--sage-soft);
  border: 1px solid color-mix(in srgb, var(--sage) 20%, var(--rule));
}
.disclosure-banner a, .vet-note a, .method-note a { color: var(--sage-deep); }

/* Hero */
.hero {
  padding: 3.25rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.hero-kicker {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.85rem;
}
.hero h1, .page-hero h1, .article-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
}
.lede, .hero .lede {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40rem;
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--sage);
  color: #f7f4ec;
}
.btn-primary:hover { background: var(--sage-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.btn-buy {
  background: var(--sage);
  color: #f7f4ec;
  width: 100%;
  margin-top: 0.7rem;
}
.btn-buy:hover { background: var(--sage-deep); color: #fff; }

/* Sections & cards */
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head a {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}
.article-card, .topic-card, .product-card, .stat-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.article-card { display: flex; flex-direction: column; min-height: 100%; text-decoration: none; color: inherit; }
.article-card:hover { border-color: color-mix(in srgb, var(--sage) 40%, var(--rule)); }
.card-meta, .byline, .price-note, .muted {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.card-meta { margin: 0 0 0.45rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--sage); }
.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.article-card p { margin: 0 0 1rem; color: var(--ink-2); font-size: 1rem; line-height: 1.5; flex: 1; }
.article-card .card-more { font-family: var(--font-ui); font-weight: 600; font-size: 0.9rem; color: var(--sage); }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 800px) { .topic-grid { grid-template-columns: 1fr 1fr; } }
.topic-card { text-decoration: none; color: inherit; padding: 1.15rem; }
.topic-card h3 { font-family: var(--font-display); margin: 0 0 0.35rem; font-size: 1.25rem; }
.topic-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* Article */
.article-hero, .page-hero { padding: 2.6rem 0 0.5rem; }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 22ch; }
.article-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, var(--measure));
  justify-content: center;
  gap: 2.5rem;
  padding: 0 1rem 4rem;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  align-self: start;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding-top: 0.5rem;
}
.toc h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0 0 0.4rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--sage); }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; padding-inline: 0; }
  .toc { position: static; width: min(calc(100% - 2rem), var(--measure)); margin: 0 auto 0.5rem; }
}

.article-body, .page-body {
  width: min(calc(100% - 2rem), var(--measure));
  margin-inline: auto;
}
.article-layout .article-body { width: auto; margin: 0; }
.article-body h2, .page-body h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.8rem;
}
.article-body h3, .page-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.8rem 0 0.55rem;
}
.article-body p, .page-body p { margin: 0 0 1.05rem; }
.article-body ul, .article-body ol, .page-body ul, .page-body ol { margin: 0 0 1.15rem; padding-left: 1.25rem; }
.article-body li, .page-body li { margin: 0.25rem 0; }
.article-body strong { font-weight: 650; }
.article-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.2rem 0;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.4;
}
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--sage-soft); font-weight: 650; color: var(--sage-deep); }
tr:last-child td { border-bottom: 0; }

/* Product cards inside articles */
.product-card { margin: 1.4rem 0 1.7rem; padding: 1.15rem 1.2rem 1.25rem; }
.product-card .maker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.2rem;
}
.product-card h3 { margin: 0 0 0.45rem; font-family: var(--font-display); font-size: 1.28rem; }
.product-card p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.price-note { display: block; margin-top: 0.7rem; }
.link-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--ink-3);
  margin-top: 0.35rem;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--rule);
  padding: 0.85rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-family: var(--font-display);
  font-size: 1.12rem;
  cursor: pointer;
  font-weight: 600;
}
.faq details p { margin: 0.6rem 0 0.2rem; }

.related { margin-top: 3rem; }
.related h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1rem; }

.byline { margin: 0 0 0.2rem; }
.byline time { color: var(--ink-3); }

/* Home extras */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }
.stat-card h3 { font-family: var(--font-display); margin: 0 0 0.4rem; font-size: 1.2rem; }
.stat-card p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--sage-deep);
  color: #e8efe9;
  padding: 2.5rem 0 2rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}
.site-footer a { color: #d7ece3; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 0.5rem; color: #f7f4ec; }
.footer-col h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.6rem;
  color: #b7c9c1;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 0.35rem; }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, #e8efe9 20%, transparent);
  color: #b7c9c1;
  font-size: 0.82rem;
}
.footer-legal p { margin: 0 0 0.45rem; }

/* 404 */
.empty-state { padding: 5rem 0 6rem; text-align: left; }

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .disclosure-banner { position: static; }
  .btn, .toc { display: none; }
  body { background: #fff; }
}
