:root {
  --ink: #1c1916;
  --muted: #5c564f;
  --bg: #f3eee6;
  --bg-deep: #e8dfd2;
  --card: #fffcf7;
  --line: #d7cec0;
  --accent: #2f5d4a;
  --accent-dark: #234739;
  --accent-soft: #e4efe8;
  --cream: #f6f1ea;
  --shadow: 0 12px 32px rgba(44, 36, 28, 0.08);
  --radius: 20px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 400px at 10% -10%, #efe6d6 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font: 1.05rem/1.65 var(--serif);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 40;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 238, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner,
.site-footer-inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.7rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo img { width: 40px; height: 40px; border-radius: 10px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.wrap { padding: 1.25rem 0 3rem; }

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem 0 2rem;
}

.hero-copy h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede, .hero-copy .lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-deep);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section { margin: 2.5rem 0; }

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.section-lede {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.4rem;
}

.how-grid,
.guide-grid,
.ba-grid {
  display: grid;
  gap: 1.15rem;
}

.how-card,
.guide-card,
.ba-card,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card { padding: 1.2rem 1.25rem; margin: 1rem 0; }

.how-card { overflow: hidden; }

.how-card img,
.guide-card img,
.ba-card img,
.repair-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-deep);
}

.how-card .how-body,
.guide-card .guide-body,
.ba-card figcaption {
  padding: 0.95rem 1.05rem 1.15rem;
}

.how-step {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.how-card h3,
.guide-card h3,
.ba-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.how-card p,
.guide-card p,
.section-lede,
.ba-card p {
  margin: 0;
  color: var(--muted);
}

.guide-card { text-decoration: none; color: inherit; overflow: hidden; display: block; }
.guide-card:hover { border-color: #b9cbbf; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.35rem 0 0.2rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.88rem;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--accent);
}

.ba-grid { margin-top: 0.5rem; }
.ba-card { overflow: hidden; margin: 0; }
.ba-card img { aspect-ratio: 1 / 1; }
.ba-card figcaption { color: var(--muted); font-size: 0.95rem; }

.page-intro h1 {
  margin: 0.4rem 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.brand { display: none; }

form label {
  display: block;
  margin: 0.9rem 0 0.3rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="file"],
select,
textarea,
input[type="text"],
input[type="email"] {
  width: 100%;
  max-width: 32rem;
  font: inherit;
  font-family: var(--sans);
  padding: 0.55rem 0.7rem;
  border: 1px solid #c9bfb0;
  border-radius: 10px;
  background: #fff;
}

textarea { max-width: 100%; }

button,
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.button:hover { background: var(--accent-dark); color: #fff; }

button:disabled { opacity: 0.65; cursor: not-allowed; }

button.secondary,
.button.secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
}

button.secondary:hover,
.button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.consent, .status, .caption { color: var(--muted); font-size: 0.95rem; }
.status { min-height: 1.4em; }
.status.error { color: #8a2a16; }
.hidden { display: none !important; }

.pair {
  display: grid;
  gap: 1rem;
  margin-top: 0.8rem;
}

.pair img {
  width: 100%;
  border-radius: 12px;
  background: var(--bg-deep);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.caption { margin: 0.4rem 0 0; }

.repair-block { margin-top: 0.8rem; }
.repair-block .repair-figure { margin: 0 0 1rem; border-radius: 14px; overflow: hidden; }
.feedback-mini { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px dashed var(--line); }
.feedback-mini label { display: inline-block; margin-right: 1rem; font-weight: 500; }

#turnstile-slot { margin: 1rem 0; min-height: 0; }
#turnstile-slot:not(.hidden) { min-height: 65px; }

.repair-figure { margin: 0 0 1rem; border-radius: 14px; overflow: hidden; background: var(--bg-deep); }

article.card { scroll-margin-top: 5.5rem; }

.guides-index { margin: 1.5rem 0 2rem; }

footer, .site-footer {
  border-top: 1px solid var(--line);
  background: #efe8dc;
  color: var(--muted);
  padding: 1.4rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 0.6rem;
}

.site-footer a { color: var(--accent-dark); }

.legal { max-width: 46rem; }
.legal .card:first-child { margin-top: 0; }

@media (min-width: 700px) {
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 0 2.5rem;
  }
  .hero-media img { aspect-ratio: 4 / 3; min-height: 28rem; }
  .how-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-grid.featured,
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .site-header-inner { padding: 0.55rem 0; }
  .logo span { font-size: 1.1rem; }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
.button:focus-visible,
.guide-card:focus-visible {
  outline-offset: 3px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--accent);
}

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


.hint {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36rem;
}

#turnstile-slot {
  overflow: visible;
}

.affiliate-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
