/* MakeClean — clean, fast, mobile-first */
:root {
  --ink: #1c241e;
  --ink-soft: #3d4a42;
  --muted: #5c6b62;
  --line: #e2ddd4;
  --bg: #f6f3ee;
  --bg-2: #efeae2;
  --paper: #fffcf8;
  --brand: #1a4d3a;
  --brand-2: #2d6b52;
  --brand-soft: #e6f0ea;
  --accent: #c4622d;
  --accent-2: #a34e22;
  --accent-soft: #f8ebe3;
  --warn: #8a3d12;
  --ok: #1a4d3a;
  --shadow: 0 10px 30px rgba(28, 36, 30, 0.06);
  --radius: 18px;
  --max: 1120px;
  --text: 68ch;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--brand);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--brand); }
.logo-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.25rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav-toggle { display: none; }
.nav-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(45, 107, 82, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 16ch;
  color: var(--brand);
}
.hero .lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 1.75rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); color: #fff; }

/* Cards */
.section { padding: 3rem 0; }
.section h2, .page-title {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.2;
}
.section-head { margin-bottom: 1.5rem; }
.section-head p { color: var(--muted); margin: 0.4rem 0 0; max-width: 50ch; }
.grid-3, .grid-2 {
  display: grid;
  gap: 1.25rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0.35rem 0 0.5rem;
  letter-spacing: -0.02em;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-2); }
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.card p { color: var(--ink-soft); margin: 0 0 1rem; flex: 1; }
.card .more { font-weight: 700; text-decoration: none; color: var(--brand-2); }

.band {
  background: var(--brand);
  color: #eaf3ee;
  border-radius: 28px;
  padding: 2rem 1.75rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.band h2 { color: #fff; margin: 0 0 0.5rem; font-family: var(--serif); }
.band p { margin: 0 0 1rem; color: #d5e6dc; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--brand-2);
  display: block;
  margin-bottom: 0.25rem;
}

/* Article */
.article-wrap { width: min(760px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.crumbs { font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.article-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--brand);
  margin: 0 0 0.75rem;
}
.meta { color: var(--muted); font-size: 1rem; margin-bottom: 1.5rem; }
.article-wrap .lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.article-wrap h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin: 2.2rem 0 0.7rem;
}
.article-wrap h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 1.6rem 0 0.5rem;
}
.article-wrap p, .article-wrap li { color: var(--ink); }
.article-wrap ul, .article-wrap ol { padding-left: 1.2rem; }
.article-wrap li + li { margin-top: 0.35rem; }
.callout, .warning, .todo-note {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1.4rem 0;
}
.callout { background: var(--brand-soft); border-left: 4px solid var(--brand); }
.warning { background: var(--accent-soft); border-left: 4px solid var(--accent); }
.callout p, .warning p { margin: 0; }
.callout strong, .warning strong { display: block; margin-bottom: 0.2rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 1.2rem 0 1.6rem;
  background: var(--paper);
}
th, td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 0.45rem 0 0.45rem 2rem;
  position: relative;
  border-bottom: 1px dotted var(--line);
}
.checklist li::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--brand-2);
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 0.6rem;
}
.todo-note {
  background: #fff6d8;
  border: 1px dashed #b88914;
  font-size: 0.95rem;
  color: #5a4308;
}
.todo-note code { font-size: 0.9em; }
.product-link { font-weight: 650; }
.todo-flag {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  vertical-align: 0.2em;
  color: #7a4e00;
  background: #ffe89a;
  border: 1px solid #e0bf4a;
  border-radius: 4px;
  padding: 0 0.3rem;
  text-decoration: none;
}
.cta-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.related { display: grid; gap: 0.75rem; margin-top: 1rem; }
.related a { text-decoration: none; font-weight: 700; }

/* Pages */
.page { width: min(760px, calc(100% - 2rem)); margin: 0 auto; padding: 2.4rem 0 4rem; }
.page-wide { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 2.4rem 0 4rem; }
.page h1, .page-wide h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--brand);
  margin: 0 0 0.8rem;
}
.prose h2 { font-family: var(--serif); color: var(--brand); margin-top: 2rem; }
form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}
label { font-weight: 700; font-size: 0.95rem; }
input, textarea, select {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: 0.95rem; color: var(--muted); }
.form-success, .form-error {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1.4rem 0;
}
.form-success { background: var(--brand-soft); border-left: 4px solid var(--brand); }
.form-error { background: var(--accent-soft); border-left: 4px solid var(--accent); }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 2.5rem 0 2rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--brand);
  margin: 0 0 0.4rem;
}
.site-footer h3 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: var(--muted);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.legal {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.legal p { margin: 0.3rem 0; }

@media (max-width: 900px) {
  .grid-3, .steps, .footer-grid, .band, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 2.4rem; }
  .nav-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    gap: 0;
  }
  .nav a { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); }
  #nav-toggle:checked ~ .nav { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
