/* Stanton Grooming Formulations Co. — site styles
   Palette: obsidian, antique gold, cream. Type: Cormorant Garamond + Montserrat. */

:root {
  --obsidian: #14110d;
  --ink: #1c1812;
  --ink-2: #261f17;
  --gold: #c4a05f;
  --gold-deep: #8f6f3a;
  --cream: #f1e8d5;
  --cream-muted: #cfc1a1;
  --text: #2a2318;
  --muted: #5f543f;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--cream);
  font: 400 1rem/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--gold); color: var(--obsidian); padding: .75rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.band-cream :focus-visible { outline-color: var(--gold-deep); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.15; }
p { text-wrap: pretty; }

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

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid rgba(196, 160, 95, .3); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.25rem;
}
.brand {
  display: flex; align-items: center; gap: .8rem; text-decoration: none;
  font-family: var(--display); font-size: 1.45rem; font-weight: 600; line-height: 1.1;
}
.brand svg { width: 34px; height: auto; color: var(--gold); flex: none; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .92rem; }
.nav a { text-decoration: none; padding: .25rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav a.btn { border-bottom: 0; padding: .6rem 1.15rem; font-size: .88rem; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  background: var(--gold); color: var(--obsidian); padding: .95rem 1.8rem;
  box-shadow: inset 0 0 0 4px var(--gold), inset 0 0 0 5px rgba(20, 17, 13, .55);
  transition: background .2s;
}
.btn:hover { background: var(--cream); box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5px rgba(20, 17, 13, .55); }
.textlink {
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 1px; text-underline-offset: .3em;
}
.band-cream .textlink { text-decoration-color: var(--gold-deep); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

/* ---------- hero ---------- */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: 3rem; padding-block: clamp(3rem, 8vw, 6.5rem);
}
.lede { font-size: 1.125rem; color: var(--cream-muted); max-width: 34rem; margin: 1.75rem 0 2.25rem; }
.canyon-art { width: 100%; max-width: 30rem; height: auto; margin-inline: auto; }
.canyon-art .wall { fill: var(--ink-2); stroke: var(--gold); stroke-width: 1.5; }
.canyon-art .arc { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .45; }
.canyon-art .ray { stroke: var(--gold); stroke-width: 1; opacity: .8; }
.canyon-art .sun { fill: var(--gold); }
.ray {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.7s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--i) * 70ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ray { animation: none; stroke-dashoffset: 0; }
}

/* ---------- bands ---------- */
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band-cream { background: var(--cream); color: var(--text); }
.band-ink { background: var(--ink); }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
}
.prose p { max-width: 36rem; margin: 0 0 1.2rem; }
.band-cream .prose p { color: var(--muted); }
.band-cream .prose p.pull-body { color: var(--text); }
.pull {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.2;
  color: var(--gold-deep); margin: 2.25rem 0 .75rem;
}

/* ---------- ledger (term / description rows) ---------- */
.ledger { margin: 3rem 0 0; padding: 0; }
.ledger .row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: .5rem clamp(2rem, 6vw, 5rem); padding: 1.9rem 0;
  border-top: 1px solid rgba(196, 160, 95, .4);
}
.ledger .row:last-child { border-bottom: 1px solid rgba(196, 160, 95, .4); }
.ledger dt { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.15; }
.ledger dd { margin: 0; color: var(--cream-muted); max-width: 36rem; }
.ledger dd p { margin: 0 0 .75rem; }
.ledger dd p:last-child { margin-bottom: 0; }
.band-cream .ledger .row { border-top-color: rgba(143, 111, 58, .5); }
.band-cream .ledger .row:last-child { border-bottom-color: rgba(143, 111, 58, .5); }
.band-cream .ledger dd { color: var(--muted); }

.ticks { list-style: none; margin: 1rem 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin: .45rem 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .85em; width: .75rem; height: 1px; background: var(--gold);
}
.band-cream .ticks li::before { background: var(--gold-deep); }

/* ---------- three columns ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.col { border-top: 1px solid var(--gold-deep); padding-top: 1.25rem; }
.col h3 { margin-bottom: .75rem; }
.col p { margin: 0; color: var(--muted); }
.after-cols { margin: 2.5rem 0 0; max-width: 36rem; color: var(--muted); }

/* ---------- numbered process ---------- */
.steps { list-style: none; counter-reset: s; margin: 3rem 0 0; padding: 0; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem 2rem; padding: 2rem 0; border-top: 1px solid rgba(143, 111, 58, .5);
}
.steps li:last-child { border-bottom: 1px solid rgba(143, 111, 58, .5); }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 3.5rem; line-height: 1; color: var(--gold-deep); }
.steps h3 { margin-bottom: .5rem; }
.steps p { margin: 0; max-width: 36rem; color: var(--muted); }

/* ---------- page heads ---------- */
.page-head .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 20ch; }
.page-head .lede { margin-bottom: 0; }
.stepmark {
  display: block; width: 5.5rem; height: 1.2rem; margin-top: 2.25rem;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) .9rem .55rem / calc(100% - 1.8rem) 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 1.8rem 1.1rem / calc(100% - 3.6rem) 2px no-repeat;
}

/* ---------- call to action ---------- */
.cta .wrap { max-width: 52rem; }
.cta p { color: var(--cream-muted); max-width: 34rem; margin: 1.25rem 0 2rem; }

/* ---------- about ---------- */
.credline { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; margin: 0 0 1.5rem; max-width: 30rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(196, 160, 95, .3); padding-block: 3rem; color: var(--cream-muted); font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.site-footer p { margin: 0 0 .6rem; }
.site-footer .fine { font-size: .82rem; max-width: 34rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.foot-name { font-family: var(--display); font-size: 1.4rem; color: var(--cream); }

/* ---------- small screens ---------- */
@media (max-width: 52rem) {
  .hero .wrap, .split, .ledger .row, .site-footer .wrap { grid-template-columns: 1fr; }
  .cols3 { grid-template-columns: 1fr; gap: 2rem; }
  .canyon-art { max-width: 20rem; }
  .steps li { grid-template-columns: 3rem minmax(0, 1fr); gap: .5rem 1.25rem; }
  .steps li::before { font-size: 2.5rem; }
}

/* ---------- photos ---------- */
.photo { margin: 0 auto; max-width: 32rem; }
.photo-wide { max-width: none; }
.photo img { width: 100%; height: auto; border: 1px solid rgba(196, 160, 95, .4); }
.photo figcaption { margin-top: .75rem; color: var(--cream-muted); font-size: .9rem; }

/* ---------- motion: subtle only, never tacky ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.canyon-art .sun { animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.btn { transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .canyon-art .sun { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
