:root {
  --ink: #183126;
  --pine: #244a39;
  --pine-2: #35614c;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --sand: #e8ddca;
  --copper: #a7613f;
  --muted: #6e776f;
  --shadow: 0 22px 65px rgba(28, 46, 37, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 17px/1.68 Georgia, 'Times New Roman', serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 76px);
  background: rgba(247, 242, 232, .93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36, 74, 57, .12);
}
.brand { text-decoration: none; font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; }
.brand span { color: var(--copper); font-style: italic; }
.nav { display: flex; gap: 22px; font: 700 .78rem/1.2 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--copper); }

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  background: var(--ink);
  color: white;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(52px, 8vw, 112px); }
.eyebrow { margin: 0 0 14px; color: #e7c8a9; font: 800 .72rem/1.2 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
h1 { margin: 0; font-size: clamp(3rem, 6.2vw, 6.8rem); }
.hero p { max-width: 610px; color: #d8e0da; font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-image { min-height: 600px; background: url('cozy-cottage-living-room-rainy-night.webp') center/cover; position: relative; }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,49,38,.7), transparent 34%); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 999px; text-decoration: none; font: 800 .82rem/1 system-ui, sans-serif; letter-spacing: .05em; }
.button.primary { background: var(--paper); color: var(--ink); }
.button.secondary { border: 1px solid rgba(255,255,255,.35); color: white; }

.section { padding: clamp(64px, 9vw, 118px) clamp(20px, 7vw, 110px); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section h2 { margin: 0 0 12px; font-size: clamp(2.2rem, 4vw, 4.2rem); }
.section-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; height: 300px; object-fit: cover; }
.card-body { padding: 26px; }
.card h3 { margin: 8px 0 12px; font-size: 1.55rem; }
.card p { color: var(--muted); }
.card a { text-decoration-thickness: 1px; text-underline-offset: 5px; font-weight: 700; }
.section-link { margin: 30px 0 0; font-weight: 700; }
.section-link a { text-underline-offset: 5px; }
.guide-library { row-gap: 30px; }
.tag { color: var(--copper); font: 800 .7rem/1 system-ui, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.tool-card { display: flex; flex-direction: column; padding: 28px; }
.tool-card .tool-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%; background: var(--sand); color: var(--ink); font: 800 1rem/1 system-ui, sans-serif; }
.tool-card p { flex: 1; }

.value-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; background: var(--sand); }
.value-photo { min-height: 560px; border-radius: 26px; background: url('cozy-living-room-furniture-layout.webp') center/cover; box-shadow: var(--shadow); }
.principles { display: grid; gap: 15px; }
.principle { padding: 18px 0; border-bottom: 1px solid rgba(24,49,38,.16); }
.principle strong { display: block; margin-bottom: 5px; font-family: system-ui, sans-serif; }

.newsletter { text-align: center; background: var(--pine); color: white; }
.newsletter p { max-width: 630px; margin: 0 auto 26px; color: #d7e1da; }
.newsletter .button { background: #f0d2b5; color: var(--ink); }

.site-footer { padding: 40px clamp(20px, 7vw, 110px); background: #10251c; color: #cbd6cf; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: white; margin-top: 0; }
.site-footer a { display: block; margin: 7px 0; color: #dce7e0; text-decoration: none; }
.fine-print { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font: .78rem/1.5 system-ui, sans-serif; color: #9eb0a5; }

.article-hero { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 58vh; background: var(--ink); color: white; }
.article-hero .copy { padding: clamp(52px, 7vw, 100px); align-self: center; }
.article-hero h1 { font-size: clamp(2.8rem, 5vw, 5.8rem); }
.article-hero p { color: #d8e0da; font-size: 1.12rem; }
.article-hero img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; }
.article-meta { font: 700 .77rem/1.4 system-ui, sans-serif; letter-spacing: .06em; color: #e8c9ac; text-transform: uppercase; }
.article-wrap { max-width: 1180px; margin: 0 auto; padding: 60px 22px 100px; display: grid; grid-template-columns: 300px minmax(0, 720px); gap: 60px; }
.side-stack { position: sticky; top: 90px; align-self: start; }
.toc { padding: 22px; border: 1px solid var(--sand); border-radius: 16px; background: var(--paper); }
.toc strong { font-family: system-ui, sans-serif; font-size: .85rem; }
.toc a { display: block; margin: 10px 0; color: var(--muted); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.article h2 { margin-top: 50px; font-size: 2.2rem; }
.article h3 { margin-top: 30px; font-size: 1.35rem; }
.article p, .article li { color: #33483e; }
.article li { margin-bottom: 8px; }
.article-figure { margin: 38px 0; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.article-figure figcaption { margin-top: 10px; color: var(--muted); font: .78rem/1.5 system-ui, sans-serif; }
.callout { margin: 30px 0; padding: 24px; border-left: 5px solid var(--copper); background: #f0e6d6; border-radius: 0 14px 14px 0; }
.checklist { padding: 25px 28px; background: var(--paper); border: 1px solid var(--sand); border-radius: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--sand); }
th { background: var(--pine); color: white; font-family: system-ui, sans-serif; font-size: .8rem; }
.legal { max-width: 800px; margin: 0 auto; padding: 70px 22px 110px; }
.legal h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); }
.legal h2 { margin-top: 44px; font-size: 2rem; }
.legal p, .legal li { color: #405248; }
.updated { color: var(--muted); font: .78rem/1.5 system-ui, sans-serif; }

.tool-page { max-width: 1100px; margin: 0 auto; padding: 66px 22px 110px; }
.tool-intro { max-width: 760px; margin-bottom: 34px; }
.tool-intro h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.tool-intro > p { color: #405248; font-size: 1.08rem; }
.tool-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 28px; align-items: start; }
.tool-form, .tool-result { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--sand); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.tool-form { display: grid; gap: 18px; }
.tool-form label { display: grid; gap: 7px; color: var(--ink); font: 700 .86rem/1.35 system-ui, sans-serif; }
.tool-form input, .tool-form select { width: 100%; padding: 12px 13px; border: 1px solid #bdb19f; border-radius: 10px; background: white; color: var(--ink); font: 1rem/1.3 system-ui, sans-serif; }
.tool-form input:focus, .tool-form select:focus { outline: 3px solid rgba(167,97,63,.22); border-color: var(--copper); }
.tool-submit { min-height: 46px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--ink); color: white; cursor: pointer; font: 800 .83rem/1 system-ui, sans-serif; letter-spacing: .04em; }
.tool-submit:hover { background: var(--pine-2); }
.tool-result { min-height: 260px; }
.tool-result h2 { margin-top: 0; font-size: 2rem; }
.tool-result .answer { margin: 14px 0; color: var(--copper); font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.1; }
.tool-result ul { padding-left: 20px; }
.tool-note { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: #efe5d5; color: #435248; font-size: .92rem; }
.method { max-width: 760px; margin-top: 54px; }
.method h2 { margin-top: 42px; font-size: 2rem; }
.method p, .method li { color: #405248; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero, .article-hero, .value-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 24px; }
  .hero-image { min-height: 58vh; order: -1; }
  .cards { grid-template-columns: 1fr; }
  .card img { height: 360px; }
  .article-hero { min-height: 0; }
  .article-hero .copy { padding: 38px 24px 34px; }
  .article-hero h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .article-hero img { min-height: 300px; height: 300px; }
  .article-wrap { grid-template-columns: 1fr; gap: 20px; }
  .tool-shell { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
