:root {
  --bg: #f4efe6;
  --bg-2: #fffdf8;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e0d4;
  --accent: #0f766e;
  --accent-ink: #042f2e;
  --accent-soft: #ccfbf1;
  --warn: #9a3412;
  --result: #134e4a;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 12px 32px rgba(28, 25, 23, 0.06);
  --max: 1120px;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 400px at 10% -10%, #ddfbf4 0%, transparent 55%),
    var(--bg);
  font: 18px/1.55 var(--sans);
}

a { color: var(--accent); }
a:hover { color: var(--accent-ink); }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
}
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.hero { padding: 56px 0 28px; }
.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.15; }
h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 10px 0 14px;
  max-width: 16ch;
}
.lede { max-width: 62ch; color: var(--muted); font-size: 1.12rem; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  padding-bottom: 48px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card:hover { border-color: #99f6e4; }
.card .cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card h2 { font-size: 1.2rem; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 28px 0 64px;
}
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
}

.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
label {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  margin: 14px 0 6px;
}
input, select, textarea, button {
  font: inherit;
  color: inherit;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #d6d3d1;
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }

.btn {
  margin-top: 16px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
}
.btn:hover { filter: brightness(0.95); }
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--result);
}
.result .big {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
}
.result ul { margin: 8px 0 0; padding-left: 18px; }
.note { color: var(--muted); font-size: 0.92rem; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: #44403c; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary { cursor: pointer; font-weight: 700; }

.ad-slot { display: none; }
.ad-slot.is-live {
  display: grid;
  place-items: center;
  min-height: 90px;
  margin: 16px 0;
}

.side .card { min-height: 0; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-grid a { color: var(--muted); text-decoration: none; margin-right: 12px; }
.err { color: var(--warn); font-weight: 650; }
