/* Kennedy Designs — site styles
   Mobile-first. Palette: kraft/cream, charcoal, rust (leather), pine green. */

@font-face {
  font-family: "Zilla Slab";
  src: url("/assets/fonts/zilla-slab-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("/assets/fonts/zilla-slab-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Theme 1 "Kraft & Rust" is the base. Alternative themes live in themes.css. */
  --bg: #fbf8f1;            /* page background */
  --surface-alt: #f6f0e4;   /* alt sections, page heroes */
  --card: #ffffff;
  --heading: #2a2521;
  --text: #3b342e;
  --muted: #6d6257;
  --line: #e4d8c3;
  --line-strong: #b89970;
  --input-border: #cfc2ac;
  --accent: #a24e26;        /* buttons, links */
  --accent-dark: #823c1b;
  --on-accent: #ffffff;
  --eyebrow: #a24e26;
  --check: #2f4a3a;
  --focus: rgba(162, 78, 38, .3);
  --hero-glow: rgba(162, 78, 38, .12);
  --header-bg: rgba(246, 240, 228, .96);
  --band: #2f4a3a;          /* "how it works" band */
  --band-2: #233829;
  --band-text: #e9efe9;
  --band-muted: #cfdcd2;
  --band-eyebrow: #f0b48f;
  --step-bg: #a24e26;
  --step-text: #ffffff;
  --dark: #2a2521;          /* CTA band */
  --footer-bg: #2a2521;
  --dark-text: #e6ddd0;
  --dark-muted: #a59b8d;
  --footer-link: #f1e6d6;
  --light-btn: #f6f0e4;
  --light-btn-text: #2a2521;
  --logo-bg: #a24e26;
  --logo-fg: #f6f0e4;
  --ph-bg: #d9c3a0;

  --radius: 10px;
  --shadow: 0 6px 20px rgba(42, 37, 33, .10);
  --font-display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--dark); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  color: var(--eyebrow);
  margin-bottom: .6rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  text-decoration: none; line-height: 1;
  padding: .95rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-outline { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-outline:hover { background: var(--heading); color: var(--surface-alt); }
.btn-light { background: var(--light-btn); color: var(--light-btn-text); }
.btn-light:hover { background: #fff; color: var(--light-btn-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--heading); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.brand-name small { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: .2rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 2px solid var(--heading); border-radius: 8px;
  padding: .45rem .7rem; font: inherit; font-weight: 600; color: var(--heading); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface-alt); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.no-js .site-nav { display: block; position: static; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav li a {
  display: block; padding: .7rem 0; text-decoration: none; color: var(--heading);
  font-weight: 600; border-bottom: 1px solid var(--line);
}
.site-nav li a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta a { border: 0; margin-top: .75rem; color: var(--on-accent); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: 1.4rem; padding: 0; }
  .site-nav li a { border: 0; padding: .4rem 0; font-size: .98rem; }
  .site-nav li a:hover { color: var(--accent); }
  .site-nav .nav-cta a { margin: 0; padding: .7rem 1.1rem; color: var(--on-accent); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 85% -10%, var(--hero-glow), transparent 60%),
    linear-gradient(180deg, var(--surface-alt), var(--bg));
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
.hero .lead { font-size: 1.18rem; color: var(--text); max-width: 36rem; }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--check); margin-right: .4rem; font-weight: 800; }
.hero-art { position: relative; padding-bottom: 8%; }
.hero-art .ph { width: 80%; transform: rotate(-1.5deg); box-shadow: var(--shadow); }
.hero-art .ph + .ph { position: absolute; width: 42%; right: 0; bottom: 0; transform: rotate(4deg); }
@media (min-width: 900px) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.section-dark { position: relative; background: var(--band); background-image: var(--band-pattern, none); color: var(--band-text); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--band-eyebrow); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: var(--band-muted); }
@media (min-width: 900px) { .section { padding: 5rem 0; } }

.page-hero { background: var(--surface-alt); border-bottom: 1px solid var(--line); padding: 2.75rem 0 2.25rem; }
.page-hero p { max-width: 40rem; font-size: 1.12rem; }

/* Cards / grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-body { padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); }
.card-body .btn, .card-link { margin-top: auto; align-self: flex-start; }
.card-link { font-weight: 700; text-decoration: none; }
.card-link::after { content: " →"; }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.reverse > :first-child { order: 2; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: .55rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .9rem; border-radius: 3px; background: var(--accent); box-shadow: inset 0 0 0 3px var(--card), 0 0 0 1.5px var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 0 0 1.5rem; }
.tags li { background: var(--card); border: 1px dashed var(--line-strong); color: var(--text); padding: .35rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 600; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.25rem; position: relative; }
.section-dark .steps li { background: var(--band-2); border-color: rgba(255,255,255,.12); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--step-bg); color: var(--step-text); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  margin-bottom: .8rem;
}
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); }
.section-dark .steps p { color: var(--band-muted); }

/* Placeholder images */
.ph { border-radius: var(--radius); overflow: hidden; background: var(--ph-bg); }
.ph img { width: 100%; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding: .5rem .15rem 0; }

/* Banner CTA */
.cta-band { position: relative; background: var(--dark); color: var(--dark-text); padding: 3rem 0; }
.cta-band h2 { color: #fff; }
.cta-band .wrap { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.4fr auto; } }

.note {
  background: #fff8e6; border: 1px dashed #c9a24a; color: #6a5420; border-radius: 8px;
  padding: .75rem 1rem; font-size: .92rem;
}

/* Form */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 2.25rem; } }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 700; color: var(--heading); margin-bottom: .35rem; font-size: .98rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: .3rem; }
.req { color: var(--accent); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: .75rem .85rem; border: 1.5px solid var(--input-border); border-radius: 8px; background: var(--bg);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); border-color: var(--accent); }
input[type="file"] { font: inherit; width: 100%; padding: .6rem; border: 1.5px dashed var(--input-border); border-radius: 8px; background: var(--bg); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-block; padding: .6rem 1.1rem; border: 1.5px solid var(--input-border); border-radius: 999px; font-weight: 600; cursor: pointer; background: var(--bg); }
.choice input:checked + span { background: var(--heading); border-color: var(--heading); color: var(--bg); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 8px; display: none; }
.form-status.is-error { display: block; background: #fbe9e4; color: #7a2a12; border: 1px solid #e9b8a8; }
.form-status.is-success { display: block; background: var(--success-bg, #e6f0e8); color: var(--success-text, #1f3b28); border: 1px solid var(--success-border, #b6d0bc); }
.field-error { color: #9b2c12; font-size: .86rem; margin-top: .3rem; display: block; }
[aria-invalid="true"] { border-color: #b23b1c !important; }

/* Footer */
.site-footer { position: relative; background: var(--footer-bg); color: var(--dark-text); padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--footer-link); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: var(--dark-muted); }
.footer-brand { display: flex; gap: .7rem; align-items: center; margin-bottom: .75rem; }
.footer-brand .brand-name { color: #fff; }

.prose { max-width: 44rem; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Optional decorative stripe (used by the plaid theme) on dark bands + footer */
.section-dark::before, .cta-band::before, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--stripe-h, 0); background: var(--stripe, none);
}
.brand-mark .bm-bg { fill: var(--logo-bg); }
.brand-mark .bm-fg { fill: var(--logo-fg); stroke: var(--logo-fg); }

/* Real photos */
.photo picture, .photo img { display: block; width: 100%; }
.photo img { height: auto; }
.photo.portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.photo.square img { aspect-ratio: 1 / 1; object-fit: cover; }
.photo.wide img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 35%; }
.card > .photo { border-radius: 0; }
.hero-photo { padding-bottom: 0; }
.hero-photo .ph { width: 100%; transform: rotate(-1deg); box-shadow: 0 14px 34px rgba(30, 40, 30, .22); border: 6px solid #fff; }
.brand-mark { width: 48px; height: 48px; border-radius: 50%; }
.groups-layout { display: grid; gap: 1.25rem; }
.groups-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.groups-photos figure { margin: 0; }
.groups-photos figcaption { font-size: .88rem; color: var(--muted); padding: .45rem .1rem 0; }
.groups-cards { align-content: start; }
@media (min-width: 900px) { .groups-layout { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; } }
@media (min-width: 640px) and (max-width: 899px) { .grid-4.gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .gallery.grid-3, .gallery.grid-4 { grid-template-columns: 1fr 1fr; gap: .9rem; } .gallery figcaption { font-size: .82rem; } }

/* About illustration on a white card (artwork has a white background) */
.about-card { margin: 0; background: #fff; border-radius: var(--radius); padding: .9rem .9rem .6rem; box-shadow: 0 10px 28px rgba(30, 40, 30, .14); max-width: 480px; justify-self: center; width: 100%; }
.about-card .ph { background: #fff; border-radius: calc(var(--radius) - 4px); }
.about-card figcaption { text-align: center; font-size: .9rem; color: #5b6158; padding: .55rem 0 .1rem; }

/* Shirts page durability callout */
.shirt-promise { font-size: 1.15rem; color: var(--text); border-left: 4px solid var(--check); padding: .15rem 0 .15rem .85rem; margin-top: 1.1rem; }
.shirt-tested { color: var(--muted); font-size: .98rem; margin-top: .5rem; }
