/* ============================================================
   Alexander Michael — personal site
   Concept: "Breaking out of the grid"
   ============================================================ */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --ink:    #1A1A1A;
  --paper:  #F7F5F0;
  --signal: #E8590C;
  --signal-dark: #C74A08;
  --slate:  #3A4A57;
  --muted:  #5C5A54;
  --line:   rgba(58, 74, 87, 0.14);

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --measure: 42rem;      /* reading column ~672px */
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--signal-dark); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(3.5rem, 9vw, 6rem); }

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 6px; z-index: 10;
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-dark);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: var(--signal);
}

.section h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.9rem);
  margin-bottom: 1.1rem;
}
.section p { color: #2b2a27; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 16vh, 9rem) clamp(4rem, 10vh, 7rem);
  border-bottom: 1px solid var(--line);
}
/* the grid you're "trapped" in — dissolves toward the bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 92%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
  color: var(--slate);
}
.eyebrow::after {
  content: "";
  display: block;
  width: 3rem; height: 3px;
  background: var(--signal);
  margin-top: 0.75rem;
}
.positioning {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero-tagline {
  font-size: clamp(2.9rem, 1.6rem + 6.2vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.hero-promise {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  font-weight: 500;
  color: var(--ink);
  max-width: 32rem;
  margin-bottom: 2.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
  background: var(--signal);
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  border: 2px solid var(--signal);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 0 var(--signal-dark);
}
.btn:hover {
  background: var(--signal-dark);
  border-color: var(--signal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--signal-dark); }
.btn--large { font-size: 1.15rem; padding: 1.05rem 2rem; }

/* ---------- Section dividers ---------- */
.section + .section { border-top: 1px solid var(--line); }

/* ---------- PROOF ---------- */
.section--proof {
  background: var(--ink);
  color: var(--paper);
  border-top: none;
}
.section--proof .kicker { color: #ffa36b; }
.section--proof .kicker::before { background: var(--signal); }
.section--proof p { color: #E8E6E0; }
.section--proof strong { color: #fff; }

.stat {
  display: flex;
  flex-direction: column;
  margin: 0.5rem 0 1.75rem;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 2.5rem + 12vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--signal);
}
.stat-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.4rem);
  color: var(--paper);
  margin-top: 0.9rem;
  letter-spacing: 0.01em;
}

/* ---------- "What that looks like" list ---------- */
.do-list {
  list-style: none;
  margin: 0.25rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: var(--measure);
}
.do-list li {
  position: relative;
  padding-left: 2rem;
  color: #2b2a27;
}
.do-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.7rem; height: 0.7rem;
  background: var(--signal);
  border-radius: 2px;
  transform: rotate(45deg);   /* a little "grid cell" mark */
}

/* ---------- Before / After (in the proof panel) ---------- */
.beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.5rem 0 2.25rem;
}
.ba-item {
  border: 1px solid rgba(247, 245, 240, 0.18);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.ba-item p { margin: 0; color: #E8E6E0; }
.ba-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.ba-before .ba-tag { color: #9aa7b1; }
.ba-after { border-color: rgba(232, 89, 12, 0.55); }
.ba-after .ba-tag { color: var(--signal); }
@media (max-width: 34rem) {
  .beforeafter { grid-template-columns: 1fr; }
}

.proof-note {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b959d;
}

/* ---------- Testimonial (styled for the proof panel; hidden until you add one) ---------- */
.quote {
  margin: 2.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--signal);
}
.quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: #fff;
}
.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #b9c2c9;
}

/* ---------- ABOUT / the human ---------- */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: center;
}
.headshot-figure { margin: 0; }
.headshot {
  width: clamp(140px, 30vw, 200px);
  height: clamp(140px, 30vw, 200px);
  border-radius: 14px;               /* rounded square echoes the grid-cell motif */
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(26, 26, 26, 0.12);
  background: #ECEAE3;
}
.about-body .kicker { margin-top: 0; }
@media (max-width: 34rem) {
  .about-grid { grid-template-columns: 1fr; justify-items: start; }
}

/* ---------- CONTACT ---------- */
.section--contact { padding-bottom: clamp(4rem, 11vw, 7rem); }
.contact-cta { margin-top: 2rem; }
.contact-secondary {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.25rem;
}
.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
