@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --green: #14532d;
  --green-dark: #0e3a20;
  --green-soft: #e7efe4;
  --ink: #22301f;
  --paper: #faf6ef;
  --card: #fffdf8;
  --line: #ddd5c2;
  --amber: #d97706;
  --amber-dark: #b45309;
  --shadow: 0 2px 6px rgba(20, 60, 30, 0.10), 0 10px 28px rgba(20, 60, 30, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Verdana, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header { background: var(--green-dark); color: #faf6ef; }
.header-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 11px; color: #faf6ef; text-decoration: none; margin-right: auto; }
.brand-mark { display: block; width: 42px; height: 42px; }
.brand-word {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700; font-size: 1.45rem; letter-spacing: 0.01em; line-height: 1;
}
.brand-word small { font-size: 0.95rem; font-weight: 500; color: #f2c078; margin-left: 2px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 15px; }
.site-header nav a { color: #dcead9; text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.site-header nav a:hover, .site-header nav a.active { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }

/* Hero, homepage */
.hero {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: #faf6ef;
  padding: 38px 0 42px;
  border-bottom: 4px dashed var(--amber);
}
.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.35rem; line-height: 1.15; margin: 0 0 18px; color: #fff;
  max-width: 20em;
}
.hero .answer-box {
  background: var(--card); color: var(--ink);
  border-radius: 12px; border-top: 5px solid var(--amber);
  box-shadow: var(--shadow);
  padding: 18px 22px; max-width: 820px;
}
.hero .answer-box p { margin: 0 0 10px; }
.hero .answer-box p:last-child { margin-bottom: 0; }

/* Title band, inner pages */
.page-band {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: #faf6ef;
  padding: 24px 0 26px;
  border-bottom: 4px dashed var(--amber);
}
.page-band h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.95rem; line-height: 1.2; margin: 0; color: #fff;
}

main { padding-top: 26px; padding-bottom: 36px; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; color: var(--green-dark); }
.hero h1, .page-band h1 { color: #fff; }
h2 {
  font-size: 1.5rem; margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px dashed #cbbfa3;
}
h3 { margin: 0 0 6px; font-size: 1.12rem; }
a { color: var(--green); font-weight: 600; }
a:hover { color: var(--amber-dark); }
p { margin: 0 0 12px; }

/* Fit checker card */
.checker {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: end;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.checker label { display: flex; flex-direction: column; font-size: 0.92rem; font-weight: 700; gap: 5px; }
.checker input {
  width: 118px; padding: 9px 10px; font-size: 1rem; font-family: inherit;
  border: 1.5px solid #b6ab8f; border-radius: 7px; background: #fff;
}
.checker input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.checker button {
  background: var(--amber); color: #fff; border: 0; border-radius: 8px;
  padding: 11px 22px; font-size: 1rem; font-weight: 800; font-family: inherit; cursor: pointer;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
}
.checker button:hover { background: var(--amber-dark); }
#checker-results { margin-top: 16px; }
#checker-results ul { padding-left: 20px; }

/* How it works strip */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0 6px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 18px;
  border-top: 4px dashed var(--amber);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.1rem;
  margin-bottom: 10px;
}
.step p { margin: 0; font-size: 0.96rem; }

/* Tables */
table {
  border-collapse: collapse; width: 100%; margin: 14px 0 22px; font-size: 0.95rem;
  background: var(--card); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(20, 60, 30, 0.07);
}
th, td { padding: 9px 12px; text-align: left; vertical-align: top; }
th {
  background: var(--green); color: #fff;
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 0.9rem;
  letter-spacing: 0.02em;
}
td { border-top: 1px solid var(--line); }
tbody tr:nth-child(even) td, table tr:nth-child(even) td { background: #f4efe1; }

/* Tier badges */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; white-space: nowrap; letter-spacing: 0.01em;
}
.badge.named { background: var(--green); color: #fff; }
.badge.fits { background: #dbe7f3; color: #173f5f; }
.badge.notc { background: #fdf0d0; color: var(--amber-dark); border: 1px solid var(--amber); }
.nofit { color: #9c3418; font-weight: 800; }
.note { font-size: 0.85rem; color: #5c6656; }

/* Brand tiles */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 16px 0; }
.card {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  background: var(--card); box-shadow: var(--shadow);
  border-top: 5px solid var(--green);
}
.card:nth-child(2) { border-top-color: var(--amber); }
.card h3 a { text-decoration: none; color: var(--green-dark); }
.card h3 a:hover { color: var(--amber-dark); text-decoration: underline; }
.card p { margin: 0; font-size: 0.95rem; }

/* Footer */
.site-footer {
  border-top: 4px dashed var(--amber);
  background: var(--green-dark); color: #e6eee1;
  padding: 22px 0 30px; font-size: 0.92rem;
}
.site-footer a { color: #f2c078; }
.site-footer a:hover { color: #fff; }
.disclosure { font-weight: 700; color: #faf6ef; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .page-band h1 { font-size: 1.55rem; }
  table { font-size: 0.85rem; }
  th, td { padding: 7px; }
  .brand-word { font-size: 1.2rem; }
}
