/* Headstrong Ecommerce — headstrongecommerce.com
   One stylesheet, no dependencies. Colours are tokens; dark mode follows the visitor's system setting. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #5b6270;
  --line: #e4dfd6;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --band: #16181d;
  --band-ink: #faf8f4;
  --band-muted: #b9bec8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #191c22;
    --ink: #f1eee8;
    --muted: #a3a9b6;
    --line: #2a2e37;
    --accent: #f97316;
    --accent-ink: #16181d;
    --band: #191c22;
    --band-ink: #f1eee8;
    --band-muted: #a3a9b6;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-weight: 650; letter-spacing: -0.01em; text-decoration: none; font-size: 1.05rem;
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 2rem; height: 2rem; flex: none; }
.mark-h { fill: var(--ink); }
.mark-p { fill: var(--accent); }
.brand-name { font-weight: 750; letter-spacing: -0.015em; }
.brand-sub { font-weight: 400; color: var(--muted); margin-left: -0.3rem; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.975rem; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }
p { margin: 0 0 1.1rem; }
.eyebrow {
  font-size: 0.8rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.1rem;
}
.lede { font-size: clamp(1.1rem, 2.1vw, 1.3rem); color: var(--muted); max-width: 38rem; margin: 1.4rem 0 0; }

/* ---- sections ---- */
.hero { padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem); }
.hero h1 { max-width: 15ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.35rem; border-radius: 0.5rem;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid var(--ink);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-ghost:hover { border-color: var(--accent); }

.section { padding: clamp(2.75rem, 7vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); margin: 0.8rem 0 0; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0.85rem;
  padding: 1.6rem 1.5rem 1.4rem;
}
.card .num { font-family: var(--serif); color: var(--accent); font-size: 0.95rem; margin-bottom: 0.9rem; display: block; }
.card p { color: var(--muted); margin: 0.7rem 0 0; font-size: 1rem; }

.principles { display: grid; gap: 1.75rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.principles li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.principles p { color: var(--muted); margin: 0.5rem 0 0; font-size: 1rem; }

.band { background: var(--band); color: var(--band-ink); padding: clamp(2.75rem, 7vw, 4.25rem) 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.band p { color: var(--band-muted); margin: 0.7rem 0 0; max-width: 34rem; }
.band .btn { border-color: var(--band-ink); color: var(--band-ink); }
.band .btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---- inner pages ---- */
.page-head { padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem); }
.page-head h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); max-width: 20ch; }
.prose { max-width: 42rem; padding-bottom: clamp(3rem, 8vw, 5rem); }
.prose h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.35rem, 2.8vw, 1.7rem); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--accent); }

.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0.85rem;
  padding: 1.6rem 1.5rem; margin: 0 0 2rem;
}
.contact-card .label { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.4rem; }
.contact-card .email { font-family: var(--serif); font-size: clamp(0.95rem, 4.3vw, 1.75rem); overflow-wrap: anywhere; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.925rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.6rem; padding-bottom: 1.8rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-footer address { margin-top: 0.2rem; }
address { font-style: normal; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 30rem) {
  .details { grid-template-columns: 1fr; gap: 0.1rem; }
  .details dd { margin-bottom: 0.7rem; }
}
