/*
 * Distill to Declare landing page (issue #78).
 * Design tokens copied from the live equipped2evolve.com theme
 * (Automatic.css + Bricks theme style, read 2026-12-01):
 *   primary #5f6d47, primary-ultra-light #f3f5f0, primary-light #dbe1d1,
 *   primary-dark #434d32, button dark #4b542b / #f4f6ee, action #ce381f,
 *   body League Spartan 400 (black, line-height ~1.42), headings Lora 700
 *   in primary with -1.75px tracking, pill buttons (600 weight), 1rem/1.5rem radii.
 * The mockup PNG was used for layout only.
 */
@font-face {
  font-family: "Lora";
  src: url("fonts/lora.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "League Spartan";
  src: url("fonts/league-spartan.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #5f6d47;
  --primary-hover: #6c7c51;
  --primary-ultra-light: #f3f5f0;
  --primary-light: #dbe1d1;
  --primary-dark: #434d32;
  --primary-ultra-dark: #1b1f14;
  --btn-dark: #4b542b;
  --btn-dark-text: #f4f6ee;
  --action: #ce381f;
  --white: #fff;
  --page: #fbfefb;
  --black: #000;
  --text: #1e2211;
  --muted: #4d5541;
  --line: rgba(95, 109, 71, 0.22);
  --radius: 1rem;
  --radius-l: 1.5rem;
  --heading: "Lora", Georgia, "Times New Roman", serif;
  --body: "League Spartan", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-m: clamp(1.125rem, calc(0.2083vw + 1.0833rem), 1.25rem);
  --text-l: clamp(1.35rem, calc(0.527vw + 1.2446rem), 1.66625rem);
  --h1: clamp(2.5rem, calc(2.4vw + 1.7rem), 3.875rem);
  --h2: clamp(1.9rem, calc(1vw + 1.6rem), 2.5rem);
  --h3: clamp(1.35rem, calc(0.4vw + 1.25rem), 1.6rem);
  --section-space: clamp(3.5rem, calc(4vw + 2.5rem), 6rem);
}

* { box-sizing: border-box; }

html { background: var(--page); }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--body);
  font-size: var(--text-m);
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--primary);
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.75px;
  text-wrap: balance;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); letter-spacing: -1px; }
h3 { font-size: var(--h3); font-weight: 600; letter-spacing: -0.5px; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}

img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--btn-dark);
  color: var(--btn-dark-text);
  border-radius: 999px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(100% - 2.5rem, 58rem);
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, 44rem); }

/* Header */
.site-header {
  background: var(--primary-ultra-light);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, 72rem);
  padding: 1.1rem 0;
}
.brand { display: inline-flex; }
.brand-logo { display: block; width: auto; height: 26px; }
.header-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

/* Sections */
.section { padding-block: var(--section-space); }
.section--tint { background: var(--primary-ultra-light); }

.lead { font-size: var(--text-l); line-height: 1.35; color: var(--black); }
.muted { color: var(--muted); }

.serif-line {
  margin-top: 1.5em;
  color: var(--primary-dark);
  font-family: var(--heading);
  font-size: var(--text-l);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.pull {
  padding-left: 1rem;
  border-left: 4px solid var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Hero */
.hero { padding-top: clamp(3rem, 6vw, 5.5rem); }
.hero h1 { margin-bottom: 0.4em; }
.hero-name {
  margin-bottom: 0.15em;
  color: var(--primary-dark);
  font-family: var(--heading);
  font-size: var(--h3);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero-kicker { margin-bottom: 0.1em; font-size: var(--text-l); font-weight: 500; }
.hero-format { margin-bottom: 1.25em; color: var(--muted); }

/* Buttons */
.cta-row { margin-top: 1.75rem; }
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border: 4px solid var(--btn-dark);
  border-radius: 999px;
  background: var(--btn-dark);
  color: var(--btn-dark-text);
  font-family: var(--body);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 0.35em 0.95em 0.25em;
  border: 1px solid var(--primary-hover);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 500;
}

/* 2. Split with photo */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.split-photo { margin: 0; }
/* Rendered at the photo's own 640x754 ratio: no object-fit, no recrop. */
.ocean {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 754;
  border-radius: var(--radius);
}
.panel {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--primary-ultra-light);
  border: 1px solid var(--line);
}
.panel-title {
  display: block;
  margin-bottom: 0.35em;
  color: var(--primary);
  font-family: var(--heading);
  font-size: var(--h3);
  letter-spacing: -0.5px;
}

/* 5. Rows */
.rows { margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.row dt {
  color: var(--primary);
  font-family: var(--heading);
  font-size: var(--text-l);
  font-weight: 700;
  line-height: 1.2;
}
.row dd { margin: 0; }

/* Client quotes */
.quotes {
  margin: 3rem 0 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-l);
  background: var(--primary-light);
}
.quotes-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.quotes-photo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.quotes-title {
  display: block;
  color: var(--primary-dark);
  font-family: var(--heading);
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.quotes-credit { display: block; color: var(--muted); font-size: 1rem; }
.quotes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 1rem;
}
.quotes-side { display: grid; gap: 1rem; }
.quote {
  margin: 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--primary-ultra-dark);
  font-family: var(--heading);
  font-size: 1.1rem;
  line-height: 1.5;
}
.quote--main { font-size: 1.25rem; line-height: 1.5; }

/* 6. Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--primary-ultra-light);
  border: 1px solid var(--line);
}
.card--wide { grid-column: 1 / -1; }
.card-note { color: var(--muted); font-size: 1rem; }

/* 7. Steps */
.steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.step-num {
  flex: none;
  min-width: 1.25rem;
  color: var(--primary);
  font-family: var(--heading);
  font-size: var(--text-l);
  font-weight: 700;
}
.fine { color: var(--muted); font-size: 0.95rem; }

/* 9. Buy card */
.buy-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-l);
  background: var(--white);
  border: 1px solid var(--line);
}
.buy-card .cta-row { margin-top: 1.25rem; }

/* 10. About */
.about {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.about-photo {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}
.about-name { margin-bottom: 0.1em; }
.about-role { color: var(--muted); font-weight: 500; }

/* Footer, after the main site's footer */
.site-footer { background: var(--primary); color: var(--primary-light); }
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  width: min(100% - 2.5rem, 72rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer-quote { margin: 0; }
.footer-quote p {
  color: rgba(219, 225, 209, 0.55);
  font-family: var(--heading);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
}
.footer-quote footer {
  margin-top: 0.75rem;
  color: rgba(219, 225, 209, 0.55);
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 700;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer-heading {
  margin-bottom: 0.6rem;
  color: var(--white);
  font-weight: 600;
}
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin-bottom: 0.45rem; }
.footer-nav a { color: var(--primary-ultra-light); font-size: 1rem; text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { background: var(--primary-dark); color: var(--primary-ultra-light); font-size: 0.9rem; }
.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding-block: 1.5rem;
}
.footer-legal a { color: var(--white); }

/* 404 */
.page-404 { display: flex; flex-direction: column; min-height: 100vh; }
.page-404 main { flex: 1; }
.notfound { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }
.notfound .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.btn--ghost { background: var(--white); color: var(--primary-dark); border: 1px solid var(--primary-hover); }

@media (max-width: 760px) {
  .header-inner { padding: 0.9rem 0; }
  .brand-logo { height: 20px; }
  .header-link { font-size: 1rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-photo { max-width: 420px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .quotes-grid, .cards { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .btn { display: block; width: 100%; }
  .notfound .btn { width: auto; }
}

@media (max-width: 420px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
