/* ============================================================
   ARTSY  ::  angular / hard-edge design system
   Skewed section bands, hard offset shadows, sheared pills,
   oversized ghost watermark words, diagonal media splits.

   Reskin = change the 5 values in [data-theme] and nothing else.
   Every angle in the system comes from ONE token: --tilt.
   Set --tilt: 0deg to flatten the whole design.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */

:root {
  /* geometry: the whole personality of the template lives here */
  --tilt: 4deg;          /* band shear. 0deg = flat template, 6deg = aggressive */
  --shear: 12deg;        /* pill / chip horizontal shear */
  --pop: 5px;            /* hard offset shadow distance */
  --radius: 2px;         /* near-square. this system is not a rounded system */
  --wrap: 1200px;
  --gutter: 22px;

  /* type */
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font-display);
  --tracking-display: -0.025em;

  /* palette contract, overridden per theme below */
  --ink: #121212;        /* darkest surface + darkest text */
  --ink-soft: #1E1E1E;   /* raised dark surface */
  --primary: #F68C23;    /* the one accent. FILLS ONLY. */
  --primary-dark: #E9790A;  /* hover fill. still fill-only. */
  --accent-ink: #B45309;    /* accent as TEXT on a light surface. >= 4.5:1 required. */
  --paper: #FFFFFF;
  --paper-soft: #F5F5F5;
  --line: #E5E3DF;

  /* derived. do not hand-edit per theme. */
  --on-primary: var(--ink);          /* ink on accent, never white (see README) */
  --on-ink: #FFFFFF;
  --on-ink-muted: rgba(255, 255, 255, 0.72);
  --body-text: #3A3A3A;
  --muted-text: #6B6B6B;
  --ghost: rgba(255, 255, 255, 0.13);
  --ghost-on-paper: rgba(18, 18, 18, 0.07);
}

/* Each theme sets 4 values. --accent-ink is NOT optional: the bright accent is
   unreadable as text on white in every one of these palettes. Verified ratios
   against #FFFFFF are in the comment. */
[data-theme="dirt"]  { --ink:#121212; --ink-soft:#1E1E1E; --primary:#F68C23; --primary-dark:#E9790A; --accent-ink:#B45309; } /* 5.02 */
[data-theme="ice"]   { --ink:#0B1B2B; --ink-soft:#12293F; --primary:#3ED0E5; --primary-dark:#1FB3C8; --accent-ink:#0E6A78; } /* 6.27 */
[data-theme="moss"]  { --ink:#10231A; --ink-soft:#173428; --primary:#7CE23C; --primary-dark:#5FC024; --accent-ink:#3D6B18; } /* 6.34 */
[data-theme="clay"]  { --ink:#1C1310; --ink-soft:#2A1D18; --primary:#E2603C; --primary-dark:#C64A29; --accent-ink:#B4441F; } /* 5.54 */
[data-theme="wda"]   { --ink:#0F1A12; --ink-soft:#16281B; --primary:#2BFF66; --primary-dark:#0F7A34; --accent-ink:#0F7A34; } /* 5.45 */

/* Motion tokens, the reduced-motion kill switch, ch measures and .sr-only
   live in ../css/base.css, which every design links first. Do not
   re-declare them here: two copies drift. */

/* ---------- 2. RESET + BASE ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--body-text);
  background: var(--paper);
  /* skewX on pills throws geometry sideways. clip, never scroll. */
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
h4 { font-size: 0.95rem; letter-spacing: 0.06em; }
p  { margin: 0 0 1rem; }
a  { color: var(--accent-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: 1.12rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--on-ink); padding: 12px 18px; font-weight: 800;
}
.skip:focus { left: 0; }

/* ---------- 3. THE ANGLE ENGINE ---------- */
/*
   One rule, used everywhere: shear the BAND, counter-shear the CONTENT.
   Text inside a sheared band must be counter-sheared or it becomes
   unreadable at small sizes and looks broken on mobile.

   .band          flat section
   .band--tilt    leading edge rises to the right
   .band--tilt-a  leading edge falls to the right (alternate)
*/

.band { position: relative; padding: 84px 0; }
.band--ink   { background: var(--ink);       color: var(--on-ink-muted); }
.band--ink h1, .band--ink h2, .band--ink h3 { color: var(--on-ink); }
.band--soft  { background: var(--paper-soft); }
.band--paper { background: var(--paper); }
.band--accent{ background: var(--primary);   color: var(--on-primary); }
.band--accent h2, .band--accent h3 { color: var(--on-primary); }

/* the sheared variants. extra block padding absorbs the diagonal bleed,
   negative margins let neighbouring bands tuck under the point of the wedge. */
.band--tilt,
.band--tilt-a {
  padding: 132px 0;
  margin-block: -48px;
  /* must out-paint BOTH neighbours, otherwise the next flat band lays a
     straight edge over the wedge and you only ever see one diagonal. */
  z-index: 1;
}
.band--tilt   { transform: skewY(calc(var(--tilt) * -1)); }
.band--tilt-a { transform: skewY(var(--tilt)); }

.band--tilt   > .wrap { transform: skewY(var(--tilt)); }
.band--tilt-a > .wrap { transform: skewY(calc(var(--tilt) * -1)); }

/* Clearance. A wedge rises roughly (viewport / 2) * tan(--tilt) above its own
   box at the far edges, so a flat neighbour with normal padding gets its
   left-most or right-most content eaten. Give neighbours of a tilted band
   extra room automatically instead of remembering to do it per page. */
.band:has(+ .band--tilt),
.band:has(+ .band--tilt-a)   { padding-bottom: 170px; }
.band--tilt + .band,
.band--tilt-a + .band,
/* the footer is not a .band, so without naming it here a page whose LAST section
   is tilted hands the footer the wedge's -48px margin and its diagonal bleed with
   zero clearance, and the top of the footer gets eaten. */
.band--tilt + .site-footer,
.band--tilt-a + .site-footer { padding-top: 170px; }

/* Scale that clearance to the actual tilt where the engine can do the maths, so
   --tilt: 0 gives ordinary section rhythm instead of 170px of dead air, and
   --tilt: 8 gets the room it genuinely needs. 10.5px per degree is
   (wrap / 2) * tan(1deg) rounded up. Gated behind @supports because an invalid
   calc with a var() in it resolves to the initial value, not to the fallback
   declaration above, so a plain override would blow the layout apart on an
   engine that cannot divide by 1deg. */
@supports (margin: calc(1deg / 1deg * 1px)) {
  body { --wedge: calc((var(--tilt) / 1deg) * 10.5px); }
  .band--tilt,
  .band--tilt-a {
    padding-block: calc(84px + var(--wedge));
    margin-block: calc(var(--wedge) * -1);
  }
  .band:has(+ .band--tilt),
  .band:has(+ .band--tilt-a) { padding-bottom: calc(84px + var(--wedge) * 2); }
  .band--tilt + .band,
  .band--tilt-a + .band,
  .band--tilt + .site-footer,
  .band--tilt-a + .site-footer { padding-top: calc(84px + var(--wedge) * 2); }
}

/* a band that should sit on top of its neighbours at the overlap */
.band--raise { z-index: 3; }

/* ---------- 4. GHOST WATERMARK WORD ---------- */
/*
   The oversized translucent word that sits behind the heading.
   Purely decorative: mark it aria-hidden and keep the real words in the h1.
*/

.ghost {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: 0.8;
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  color: var(--ghost);
  margin-bottom: -0.12em;
  pointer-events: none;
  user-select: none;
}
.band--soft .ghost,
.band--paper .ghost { color: var(--ghost-on-paper); }

/* ---------- 5. HARD OFFSET SHADOW ---------- */
/*
   No blur, no spread. A solid block of colour offset down-right.
   This is the single most recognisable move in the whole system.
*/

.pop        { box-shadow: var(--pop) var(--pop) 0 0 rgba(18, 18, 18, 0.3); }
.pop--accent{ box-shadow: var(--pop) var(--pop) 0 0 color-mix(in srgb, var(--primary) 35%, transparent); }
.pop--ink   { box-shadow: var(--pop) var(--pop) 0 0 rgba(0, 0, 0, 0.45); }

/* ---------- 6. BUTTONS ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 900; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 26px;
  border: 3px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn--primary {
  background: var(--primary); color: var(--on-primary); border-color: var(--primary);
  box-shadow: var(--pop) var(--pop) 0 0 color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn--outline {
  background: transparent; color: var(--ink); border-color: var(--ink);
  box-shadow: var(--pop) var(--pop) 0 0 rgba(18, 18, 18, 0.3);
}
.btn--outline:hover { background: var(--ink); color: var(--on-ink); }

.btn--light {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
  box-shadow: var(--pop) var(--pop) 0 0 rgba(0, 0, 0, 0.4);
}
.btn--light:hover { background: var(--paper-soft); border-color: var(--paper-soft); }

/* press the button INTO its own shadow. cheap, tactile, no library. */
.btn:active {
  transform: translate(var(--pop), var(--pop));
  box-shadow: 0 0 0 0 transparent;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }

/* ---------- 7. SHEARED PILLS / CHIPS ---------- */
/*
   skewX moves geometry sideways, so the row needs its own clip and
   inline padding or the end chips punch through the viewport edge.
*/

.chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px;
  padding: 0 6px; margin: 0;
  overflow-x: clip;
}
.chips li {
  background: var(--ink);
  transform: skewX(calc(var(--shear) * -1));
  transition: transform var(--dur) var(--ease);
}
.chips li:hover { transform: skewX(calc(var(--shear) * -1)) translateY(-6px); }
.chips li > * {
  display: block;
  transform: skewX(var(--shear));
  padding: 11px 22px;
  color: var(--on-ink);
  font-family: var(--font-display);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none;
}
.chips--accent li { background: var(--primary); }
.chips--accent li > * { color: var(--on-primary); }

/* ---------- 8. HEADER ---------- */

.site-header {
  position: relative; z-index: 50;
  background: var(--ink);
  padding: 14px 0;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.brand {
  font-family: var(--font-display); font-weight: 900; font-size: 1.35rem;
  letter-spacing: var(--tracking-display); text-transform: uppercase;
  color: var(--on-ink); text-decoration: none; margin-right: auto;
}
.brand span { color: var(--primary); }
.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--on-ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 2px; border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--primary); }
.header-cta { display: flex; gap: 12px; }
.header-cta .btn { padding: 11px 18px; font-size: 0.78rem; --pop: 4px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta .btn--outline { display: none; }
}

/* ---------- 9. HERO WITH DIAGONAL MEDIA SPLIT ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-ink-muted);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero__media img,
.hero__media svg { width: 100%; height: 100%; object-fit: cover; }

/* the wedge: solid ink over the left, cut on the diagonal.
   clip-path (not skew) so the cut is exact and costs no layout. */
.hero__wedge {
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--ink);
  clip-path: polygon(0 0, 62% 0, 44% 100%, 0 100%);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(18,18,18,.55) 55%, rgba(18,18,18,.15) 100%);
}
.hero .wrap { position: relative; padding-block: 110px 96px; }
.hero__copy { max-width: 40rem; }
.hero h1 { color: var(--on-ink); }
.hero .lead { color: var(--on-ink-muted); max-width: 34rem; }

/* accent rule under the hero heading */
.rule { width: 88px; height: 6px; background: var(--primary); margin: 0 0 22px; }

@media (max-width: 820px) {
  .hero__wedge { clip-path: polygon(0 0, 100% 0, 100% 62%, 0 78%); }
  .hero__scrim { background: linear-gradient(180deg, var(--ink) 40%, rgba(18,18,18,.6) 100%); }
  .hero .wrap { padding-block: 72px 64px; }
}

/* ---------- 10. STAT STRIP ---------- */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--pop) var(--pop) 0 0 color-mix(in srgb, var(--primary) 35%, transparent);
}
.stat { padding: 26px 22px; border-right: 3px solid var(--ink); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: var(--ink);
  letter-spacing: var(--tracking-display);
}
.stat span {
  display: block; margin-top: 8px; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-text);
}
@media (max-width: 700px) {
  .stat { border-right: 0; border-bottom: 3px solid var(--ink); }
  .stat:last-child { border-bottom: 0; }
}

/* ---------- 11. CARD GRID ---------- */

.grid { display: grid; gap: 26px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  position: relative;
  display: flex; flex-direction: column;   /* keeps card__link on a shared baseline */
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--pop) var(--pop) 0 0 rgba(18, 18, 18, 0.3);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 0 rgba(18,18,18,.3); }
.card h3 { margin-bottom: 0.45em; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font-family: var(--font-display); font-weight: 900; font-size: 0.8rem;
  letter-spacing: 0.12em; color: var(--accent-ink); display: block; margin-bottom: 10px;
}
.card--accent { background: var(--primary); border-color: var(--ink); }
.card--accent h3, .card--accent p { color: var(--on-primary); }

.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 16px; align-self: flex-start;
  font-family: var(--font-display); font-weight: 900; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  text-decoration: none; border-bottom: 3px solid var(--primary); padding-bottom: 3px;
}
.card__link:hover { color: var(--accent-ink); }

/* ---------- 12. SPLIT FEATURE ---------- */

.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.split--flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } .split--flip > :first-child { order: 0; } }

.frame {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop) var(--pop) 0 0 color-mix(in srgb, var(--primary) 35%, transparent);
  overflow: hidden;
}
.band--ink .frame { border-color: var(--paper); }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 16px; height: 16px; background: var(--primary);
  transform: skewX(calc(var(--shear) * -1));
}

/* ---------- 13. REVIEWS ---------- */

.review {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--pop) var(--pop) 0 0 rgba(18, 18, 18, 0.3);
  display: flex; flex-direction: column;
}
.review blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--body-text); }
.review figcaption { margin-top: auto; }
.review__name {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink); font-size: 0.95rem;
}
.review__meta { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-text); }
.stars { color: var(--accent-ink); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.95rem; }

/* ---------- 14. BIG CTA ---------- */

.cta-band { position: relative; }
.cta-band h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
.cta-band .lead { color: var(--on-ink-muted); margin-inline: auto; }

/* ---------- 15. FOOTER ---------- */

.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 64px 0 28px; }
.site-footer h4,
.site-footer .foot-h { color: var(--on-ink); margin-bottom: 14px; }
/* An <h4> here is styled by THREE rules: the shared h1-h4 block, the h4 size and
   tracking override, and the footer colour above. A <p> inherits none of the first
   two, and is not bold by user-agent default either. Restated so the nav label is
   pixel-identical to the heading it replaced. */
.site-footer .foot-h {
  font-family: var(--font-display);
  line-height: 1.04;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-top: 0;
}
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 34px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.legal {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}

/* ---------- 16. THEME SWITCHER (demo chrome, delete in production) ---------- */

.swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.swatch {
  width: 34px; height: 34px; border: 3px solid var(--ink); cursor: pointer;
  transform: skewX(calc(var(--shear) * -1)); padding: 0;
}
.band--ink .swatch { border-color: var(--paper); }
.swatch[aria-pressed="true"] { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ---------- 17. UTILITIES ---------- */
/* The template markup carries no inline styles except the one --tilt value on
   <body>, so every visual decision stays in this one file where a reskin can
   find it. Everything below exists to keep it that way. */

.band--flush    { padding-top: 0; }          /* section whose first child overlaps upward */
.band--tight    { padding-top: 24px; }
.band--controls { padding: 56px 0; }
.wrap--lift     { transform: translateY(-38px); }
.grid--spaced   { margin-top: 44px; }
.btn-row--center{ justify-content: center; }
.tight          { margin-bottom: 0.35em; }
.measure        { max-width: 56ch; margin-bottom: 26px; }
.footer-blurb   { margin-top: 12px; font-size: 0.9rem; }
.note           { font-size: 0.9rem; color: var(--muted-text); margin-bottom: 20px; }
.note--spaced   { margin-top: 26px; margin-bottom: 0; }
.center .swatches { justify-content: center; }
.slider         { vertical-align: middle; width: 200px; margin-left: 10px; accent-color: var(--primary-dark); }

/* an outline button sitting on a dark surface */
.btn--on-ink {
  color: var(--on-ink); border-color: var(--on-ink);
  box-shadow: var(--pop) var(--pop) 0 0 rgba(0, 0, 0, 0.45);
}
.btn--on-ink:hover { background: var(--on-ink); color: var(--ink); }

/* the accent card inverts, so its accents have to ride on currentColor */
.card--accent .card__num  { color: inherit; opacity: 0.75; }
.card--accent .card__link { color: inherit; border-bottom-color: currentColor; }
.card--accent .card__link:hover { color: inherit; opacity: 0.75; }

/* ---------- 18. FLATTEN ESCAPE HATCH ---------- */
/* Set --tilt:0 --shear:0 on <body> for a client who wants the structure
   without the attitude. Everything above degrades to a clean flat template. */

/* FAQ question as a real heading. An <h3> inside <summary> puts the question in the
   page outline where it belongs; this styles it back to the bare summary text it
   replaced, so nothing moves. font:inherit also kills the h3 UA margins. */
.faq-q { display: inline; margin: 0; font: inherit; color: inherit; }
