/* =============================================================
   michaelrurka.com — shared base styles
   Loaded by every page.

   Breakpoints:
     720px — content/grid mobile collapse (services grid, foot-grid,
             carousel gating, .wrap padding tightening)
     860px — nav layout mobile (hamburger + overlay menu)
   These two values appear inline in JSX media queries; keep them
   in sync with this convention. CSS spec doesn't allow custom
   properties inside @media queries, so the values are repeated.
   ============================================================= */

:root {
  --bg: #f4f1ec;
  --bg-2: #ebe6dd;
  --ink: #14110d;
  --ink-2: #4a4538;
  --ink-3: #8a8273;
  --line: #d6cfc1;
  --accent: #1f3d2a;
  --accent-ink: #f4f1ec;
  --serif: "Instrument Serif", "Fraunces", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", system-ui, sans-serif;
  --display: "Archivo", "Inter Tight", system-ui, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.035em;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* Live indicator — pulsing green dot for "Available" status */
.live-dot {
  position: relative;
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #36c46a;
  box-shadow: 0 0 0 0 rgba(54, 196, 106, 0.4);
  animation: live-pulse 2.4s ease-out infinite;
  flex-shrink: 0;
}
.live-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #36c46a;
  opacity: 0;
  animation: live-pulse-ring 2.4s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(54, 196, 106, 0.35); }
  70%  { box-shadow: 0 0 0 6px rgba(54, 196, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(54, 196, 106, 0); }
}
@keyframes live-pulse-ring {
  0%   { transform: scale(1);   opacity: 0.35; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot, .live-dot::after { animation: none; }
}

/* Layout primitives */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 22px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn .arr {
  display: inline-block;
  transition: transform .25s;
}
.btn:hover .arr { transform: translateX(3px); }

/* spinning anchor for arrow buttons */
.arr-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}

/* Section spacing */
section { padding: 110px 0; position: relative; }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* Headings */
.h-display {
  font-family: var(--display);
  font-weight: var(--display-weight, 800);
  letter-spacing: var(--display-tracking, -0.035em);
  line-height: 0.94;
  text-wrap: balance;
}

.h-section {
  font-family: var(--display);
  font-weight: var(--display-weight, 700);
  letter-spacing: var(--display-tracking, -0.03em);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.96;
  text-wrap: balance;
}

