/* Split Pantz Prodxns — static site
   Tokens mirror docs/brand/BRAND.md. Do not hardcode new colors here. */

:root {
  --forest100: #c8d5c7;
  --forest300: #9cb29d;
  --forest500: #5c7b5d;
  --forest700: #3f5840;
  --forest900: #2d3d2a;

  --bone100: #f4f0e2;
  --bone200: #e8e2d2;
  --bone300: #ddd5c2;
  --bone500: #b8ae96;
  --bone700: #807766;

  --pulse: #b5453a;
  --signal: #c49b3f;
  --pace: #5a6b82;
  --ground: #6b6356;

  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --hairline: rgba(45, 61, 42, 0.22);
  --gutter: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bone200);
  color: var(--forest900);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

img, svg { max-width: 100%; }

a { color: inherit; }

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

/* ---------- type ---------- */

.display, h1.display {
  font-family: var(--display);
  font-size: clamp(40px, 11vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

h1 {
  font-family: var(--display);
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 400;
}

h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 400;
}

h3 {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

p { margin: 0 0 16px; max-width: 64ch; }

.lede { font-size: 18px; line-height: 1.55; max-width: 56ch; }

.label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone700);
  margin: 0 0 12px;
  display: block;
}

.label--ink { color: var(--forest700); }

.metric {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--bone700); }

/* ---------- chrome ---------- */

header.site {
  border-bottom: 1px solid var(--hairline);
  background: var(--bone200);
  position: sticky;
  top: 0;
  z-index: 20;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  position: relative; /* anchors the mobile dropdown */
}

.lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.lockup svg { width: 28px; height: 28px; display: block; }

.lockup .names { display: flex; flex-direction: column; line-height: 1; }

.lockup .studio {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lockup .sub {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone700);
  margin-top: 3px;
}

nav.site { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

nav.site a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--forest700);
}

nav.site a:hover { background: var(--bone300); color: var(--forest900); }

nav.site a[aria-current="page"] { color: var(--forest900); background: var(--bone300); }

/* ---------- mobile menu ----------
   <details>/<summary> rather than a scripted toggle: the browser gives us
   the open/closed state, keyboard operation and the screen-reader
   announcement for free. Above the breakpoint the summary is hidden and the
   links are forced visible, so the disclosure only exists on small screens. */

details.nav > summary {
  display: none; /* desktop: no hamburger */
  list-style: none;
  cursor: pointer;
}

details.nav > summary::-webkit-details-marker { display: none; }

/* Neutralise the UA's hiding of a closed <details> so visibility is driven
   only by the rules here. Two mechanisms exist and both need covering:
   newer Chrome hides via ::details-content with content-visibility, which a
   child `display` cannot override; older engines use an overridable
   `display: none` on the non-summary children. Mobile re-hides explicitly
   in the media query below. */
details.nav::details-content { content-visibility: visible; }
details.nav > nav.site { display: flex; }

details.nav > summary:focus-visible {
  outline: 2px solid var(--forest900);
  outline-offset: 2px;
}

.burger {
  width: 44px;   /* 44px minimum touch target */
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--forest900);
}

.burger:hover { background: var(--bone300); }

.burger svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  display: block;
}

@media (max-width: 720px) {
  details.nav > summary { display: flex; }

  details.nav:not([open]) > nav.site { display: none; }

  details.nav[open] > nav.site {
    position: absolute;
    top: calc(100% - 8px);
    /* .bar is the .wrap element, so an abs-pos child resolves right:0 to the
       padding box and hangs into the gutter. Inset it to the content edge. */
    right: var(--gutter);
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 190px;
    padding: 8px;
    background: var(--bone100);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(45, 61, 42, 0.12);
  }

  details.nav[open] > nav.site a { padding: 12px 14px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--forest900);
  background: var(--forest900);
  color: var(--bone200);
  cursor: pointer;
}

.btn:hover { background: var(--forest700); border-color: var(--forest700); }

.btn--secondary { background: transparent; color: var(--forest900); }

.btn--secondary:hover { background: var(--forest900); color: var(--bone200); }

.btn--disabled {
  background: var(--bone500);
  border-color: var(--bone500);
  color: var(--bone100);
  cursor: default;
  pointer-events: none;
}

/* ---------- tags ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bone300);
  color: var(--forest700);
}

.tag--accent { background: var(--signal); color: var(--forest900); }
.tag--outline { background: transparent; border: 1.5px solid var(--hairline); }
.tag--pace { background: var(--pace); color: var(--bone100); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- layout blocks ---------- */

section { padding: 56px 0; }

section.tight { padding: 40px 0; }

.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest700);
  margin-bottom: 24px;
}

.section-label::before,
.section-label::after {
  content: "";
  height: 1px;
  background: var(--hairline);
  flex: 0 0 24px;
}

.section-label::after { flex: 1 1 auto; }

.card {
  background: var(--bone100);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 24px;
}

.card--nested { border-radius: 12px; background: var(--bone200); }

.card--inverted {
  background: var(--forest900);
  color: var(--bone200);
  border-color: var(--forest900);
}

.card--inverted .label,
.card--inverted .muted { color: var(--forest300); }

.grid { display: grid; gap: 20px; }

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- hero ---------- */

.hero { padding: 72px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 40px; }
}

.hero .display { margin-bottom: 20px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.statline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.statline span { font-family: var(--mono); font-size: 13px; color: var(--forest700); }

/* ---------- phone frames ---------- */

.phone {
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--forest900);
  border-radius: 28px;
  padding: 10px;
}

.phone-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--bone200);
}

/* ---------- screen strip ---------- */

.screens {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 0 24px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.screens::-webkit-scrollbar { height: 6px; }
.screens::-webkit-scrollbar-track { background: var(--bone300); border-radius: 999px; }
.screens::-webkit-scrollbar-thumb { background: var(--forest300); border-radius: 999px; }

.screen {
  flex: 0 0 auto;
  width: 232px;
  scroll-snap-align: start;
}

.screen .phone { width: 232px; }

.screen-cap { margin-top: 12px; }

.screen-cap b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.screen-cap span {
  display: block;
  font-size: 12px;
  color: var(--bone700);
  line-height: 1.45;
}

.mock-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--bone700);
  margin: 0;
}

/* ---------- lists ---------- */

.plain { list-style: none; padding: 0; margin: 0; }

.plain li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.plain li:last-child { border-bottom: 0; }

.bullets { margin: 0 0 16px; padding-left: 20px; max-width: 64ch; }

.bullets li { margin-bottom: 8px; }

/* ---------- posts ---------- */

.post-list { display: grid; gap: 0; }

.post-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
}

.post-item:hover h3 { color: var(--forest500); }

.post-item:last-child { border-bottom: 1px solid var(--hairline); }

@media (max-width: 600px) {
  .post-item { grid-template-columns: 1fr; gap: 8px; }
}

article.post { max-width: 68ch; }

article.post h2 { margin-top: 40px; }

article.post p, article.post li { font-size: 16px; line-height: 1.65; }

.disclosure-note {
  background: var(--bone100);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--signal);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  margin: 0 0 32px;
}

.disclosure-note p { margin: 0; max-width: none; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--hairline);
  background: var(--forest900);
  color: var(--bone200);
  padding: 56px 0 40px;
  margin-top: 56px;
}

footer.site a { color: var(--bone200); text-decoration: none; }
footer.site a:hover { color: var(--bone500); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.foot-grid .label { color: var(--forest300); }

.foot-grid ul { list-style: none; padding: 0; margin: 0; }

.foot-grid li { padding: 4px 0; font-size: 13px; }

.foot-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.foot-mark svg { width: 32px; height: 32px; }

.foot-mark .studio {
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.fine {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(232, 226, 210, 0.18);
  font-size: 12px;
  color: var(--forest300);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.fine p { margin: 0; max-width: 70ch; }
