:root {
  --bg: #f7f3ee;
  --surface: #fffaf4;
  --surface-2: #f0e7dc;
  --ink: #1c1714;
  --muted: #6f6258;
  --line: #e2d5c8;
  --brand: #8b4b2d;
  --brand-2: #1f6f68;
  --gold: #c89b4a;
  --soft: rgba(255, 250, 244, 0.86);
  --shadow: 0 20px 60px rgba(55, 36, 18, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(200, 155, 74, .20), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(31, 111, 104, .14), transparent 26%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 12px; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 999px; z-index: 20;
}
.skip-link:focus { left: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 243, 238, .78);
  border-bottom: 1px solid rgba(226, 213, 200, .75);
}
.nav {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -0.04em; }
.logo-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 15px;
  background: linear-gradient(135deg, var(--brand), #d2a85b); color: white; box-shadow: 0 12px 28px rgba(139, 75, 45, .20);
}
.nav-links { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: .95rem; font-weight: 700; }
.nav-cta {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
}
.menu-button { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; min-height: 42px; padding: 0 12px; font-weight: 800; }
.hero { padding: 72px 0 46px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr); gap: 28px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--brand-2); background: rgba(31,111,104,.09); border: 1px solid rgba(31,111,104,.18); padding: 8px 12px; border-radius: 999px; font-weight: 900; font-size: .9rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.065em; }
h1 { font-size: clamp(3rem, 8vw, 6.4rem); margin: 18px 0 18px; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 14px; }
h3 { font-size: 1.35rem; margin: 0 0 10px; }
p { color: var(--muted); }
.lead { max-width: 680px; font-size: clamp(1.02rem, 2vw, 1.18rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 18px;
  border-radius: 999px; font-weight: 900; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease;
}
.button { background: var(--ink); color: #fff; box-shadow: 0 18px 38px rgba(28,23,20,.20); }
.button:hover { color: #fff; transform: translateY(-2px); }
.button-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button-secondary:hover { transform: translateY(-2px); }
.hero-card, .card, .article-card, .tool-panel {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.hero-card { padding: 26px; position: relative; overflow: hidden; }
.hero-card:before { content:""; position:absolute; inset:auto -60px -80px auto; width:210px; height:210px; border-radius:50%; background: rgba(200,155,74,.22); }
.mockup { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 18px; }
.mockup-bar { height: 12px; width: 42%; background: var(--surface-2); border-radius: 999px; margin-bottom: 18px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.swatch { min-height: 86px; border-radius: 18px; border: 1px solid rgba(0,0,0,.06); }
.swatch:nth-child(1){ background:#2d3138; } .swatch:nth-child(2){ background:#c89b4a; } .swatch:nth-child(3){ background:#e6d2bd; } .swatch:nth-child(4){ background:#74604f; }
.score { display: flex; gap: 12px; flex-wrap: wrap; }
.score span { background: #f6efe6; border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; color: var(--muted); font-size: .87rem; font-weight: 800; }
.section { padding: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.section-head p { max-width: 620px; margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card, .article-card { padding: 22px; }
.card small, .article-card small { color: var(--brand-2); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.card ul, .article-body ul, .article-body ol { color: var(--muted); padding-left: 1.2rem; }
.article-card { display: flex; flex-direction: column; min-height: 245px; }
.article-card p { flex: 1; }
.article-card a { font-weight: 900; color: var(--brand); }
.article-hero { padding: 58px 0 26px; }
.breadcrumb { color: var(--muted); font-size: .92rem; font-weight: 700; margin-bottom: 18px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 28px; align-items: start; }
.article-body {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(22px, 4vw, 42px); box-shadow: var(--shadow);
}
.article-body h2 { font-size: clamp(1.7rem, 4vw, 2.35rem); margin-top: 38px; }
.article-body h3 { margin-top: 28px; }
.article-body p, .article-body li { font-size: 1.02rem; }
.article-body blockquote { margin: 24px 0; padding: 18px 20px; border-left: 5px solid var(--gold); background: #f8efe4; border-radius: 16px; color: var(--ink); }
.sidebar { position: sticky; top: 96px; display: grid; gap: 14px; }
.sidebar .card { border-radius: 22px; box-shadow: none; }
.toc a { display: block; padding: 8px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.badge-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.badge-list span { padding: 8px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: .86rem; }
.checklist { display: grid; gap: 10px; margin-top: 20px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.check-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.result-box { margin-top: 20px; padding: 18px; border-radius: 22px; background: #f5eadf; border: 1px solid var(--line); }
.form-grid { display: grid; gap: 14px; }
.input, textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px; color: var(--ink); font: inherit; }
textarea { min-height: 160px; resize: vertical; }
.notice { background: #fff7e8; border: 1px solid #ead7b6; border-radius: 20px; padding: 16px; color: #62482d; }
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 700; }
@media (max-width: 900px) {
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1120px); }
  .nav { min-height: 64px; }
  .menu-button { display: inline-flex; align-items:center; }
  .nav-links { display: none; position: absolute; left: 12px; right: 12px; top: 68px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 8px; }
  .hero { padding: 46px 0 28px; }
  h1 { font-size: clamp(2.55rem, 15vw, 4rem); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .button, .button-secondary { width: 100%; }
  .article-card { min-height: auto; }
}
