/* Hearth & Tool */
:root {
  --ink: #2b2420;
  --ink-soft: #6b5f56;
  --cream: #faf6f0;
  --paper: #ffffff;
  --terracotta: #c26a4a;
  --terracotta-dark: #a5533a;
  --sage: #7d8c6f;
  --line: #eadfd4;
  --tint-1: linear-gradient(135deg, #f3e3d3, #e8cdb7);
  --tint-2: linear-gradient(135deg, #e2e8da, #cbd6be);
  --tint-3: linear-gradient(135deg, #e8dced, #d4c3de);
  --tint-4: linear-gradient(135deg, #dbe7ec, #bfd4dd);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Georgia, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; border-radius: var(--radius); }
a { color: var(--terracotta-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font-family: var(--display);
  font-size: 1.45rem; font-weight: 800; text-decoration: none; color: var(--ink);
  letter-spacing: -0.02em;
}
.logo em { color: var(--terracotta); font-style: normal; }
.logo-mark { color: var(--terracotta); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.main-nav a:hover { color: var(--terracotta-dark); }
.nav-tool { color: var(--terracotta-dark) !important; }

/* hero */
.hero {
  background: linear-gradient(160deg, #f7ecdf 0%, var(--cream) 70%);
  padding: 64px 0 56px;
  text-align: center;
}
.hero-photo {
  background-size: cover;
  background-position: center 60%;
  padding: 96px 0 88px;
}
.hero.hero-photo h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.4); }
.hero.hero-photo p { color: #ffffff; font-weight: 500; text-shadow: 0 2px 14px rgba(0,0,0,0.85); }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; font-weight: 800;
}
.hero h1 span { color: #f0b48f; }
.hero p { max-width: 620px; margin: 0 auto 28px; color: var(--ink-soft); font-size: 1.15rem; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--terracotta); color: #fff;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 4px 14px rgba(194, 106, 74, 0.35);
}
.btn:hover { background: var(--terracotta-dark); }
.btn-ghost {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--terracotta); background: transparent; color: var(--terracotta-dark); }
.btn-light {
  background: rgba(255,255,255,0.14); color: #fff; box-shadow: none;
  border: 2px solid rgba(255,255,255,0.65); backdrop-filter: blur(4px);
}
.btn-light:hover { background: rgba(255,255,255,0.28); }

/* sections & cards */
.section { padding: 40px 0 8px; }
.section-title { font-family: var(--display); font-size: 1.65rem; letter-spacing: -0.01em; margin: 0 0 20px; font-weight: 700; }
.section-title a { color: var(--ink); text-decoration: none; }
.section-title a:hover { color: var(--terracotta-dark); }
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink); border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43, 36, 32, 0.1); }
.card-img {
  height: 170px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.card-photo {
  height: 170px; width: 100%; object-fit: cover; border-radius: 0; display: block;
}
.card-body { padding: 16px 18px 20px; }
.card-cat {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--terracotta-dark);
}
.card h3 { margin: 6px 0 8px; font-size: 1.08rem; line-height: 1.35; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* article */
.article { padding: 36px 20px 40px; max-width: 760px; }
.article h1 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em; margin: 10px 0 8px; font-weight: 700; }
.article-hero { margin: 0 0 28px; }
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.article-hero figcaption { font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; text-align: right; }
.article-body figure { margin: 1.8em 0; }
.article-body h2 { font-family: var(--display); font-weight: 700; }
.page-title { font-family: var(--display); font-weight: 700; }
.article-meta { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 26px; }
.article-body h2 { margin-top: 2.2em; letter-spacing: -0.02em; }
.article-body blockquote {
  margin: 1.5em 0; padding: 14px 20px; background: var(--paper);
  border-left: 4px solid var(--terracotta); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
}
.article-body li { margin-bottom: 0.4em; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }
.page-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 18px 0 6px; letter-spacing: -0.02em; }
.page-sub { color: var(--ink-soft); margin: 0 0 28px; max-width: 640px; }
.related { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.related h2 { font-size: 1.3rem; }
.about-strip {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; margin-top: 40px; margin-bottom: 48px;
}
.about-strip h2 { margin-top: 0; }

/* calculator */
.calc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin: 26px 0;
}
.calc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.calc label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 6px; }
.calc input, .calc select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 1rem; font-family: var(--font); background: var(--cream);
}
.calc input:focus, .calc select:focus { outline: 2px solid var(--terracotta); border-color: transparent; }
.calc-result {
  margin-top: 22px; padding: 20px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, #f7ece2, #f3ddc9);
  display: none;
}
.calc-result.show { display: block; }
.calc-result .big { font-size: 2rem; font-weight: 800; color: var(--terracotta-dark); }
.calc-note { font-size: 0.85rem; color: var(--ink-soft); }

/* footer */
.site-footer { background: var(--ink); color: #d8cfc7; margin-top: 60px; padding: 36px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0; }
.footer-brand em { color: var(--terracotta); font-style: normal; }
.footer-tag { margin: 4px 0 0; font-size: 0.9rem; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: #d8cfc7; text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.copyright { text-align: center; font-size: 0.8rem; margin: 28px 0 0; color: #9c8f85; }

@media (max-width: 640px) {
  .hero { padding: 44px 0 40px; }
  .header-inner { justify-content: center; text-align: center; }
}
