/* ABS Ventures — v2
 * Editorial-modernist landing page. Cream + near-black + deep forest accent.
 * Instrument Serif Italic for the wordmark; Inter Tight for everything else.
 * Entrance motion, underline sweep, pulsing locale indicator, subtle grain.
 * No build step. Lighthouse target: 100/100/100/100.
 */

:root {
  --bg: #f7f4ee;
  --fg: #0e0e0e;
  --muted: #8a867e;
  --accent: #1f2e26;
  --rule: #d6d0c4;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Apple Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  padding: 2.5rem clamp(1.5rem, 5vw, 3rem);
}

/* Subtle film-grain texture overlaid above the background.
 * Inlined SVG, ~3.5% opacity. You don't notice until you remove it. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
  opacity: 0.035;
  z-index: 1;
}

main, footer { position: relative; z-index: 2; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding-block: 4rem;
}

/* HERO ───────────────────────────────────────────────────── */

.hero { margin-bottom: 4.5rem; }

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.25rem, 9vw, 6.25rem);
  letter-spacing: -0.012em;
  line-height: 0.98;
  margin: 0 0 2.25rem 0;
  color: var(--fg);
}

.lede {
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1.85vw, 1.375rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.45;
  color: var(--fg);
  max-width: 32ch;
  margin: 0;
}

/* CONTACT ────────────────────────────────────────────────── */

.contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact .rule {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.contact a {
  position: relative;
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 4px;
  font-feature-settings: 'ss01';
}

.contact a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact a:hover::after,
.contact a:focus-visible::after {
  animation: underline-sweep 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes underline-sweep {
  0%   { transform-origin: right; transform: scaleX(1); }
  49%  { transform-origin: right; transform: scaleX(0); }
  50%  { transform-origin: left;  transform: scaleX(0); }
  100% { transform-origin: left;  transform: scaleX(1); }
}

.contact a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 1px;
}

/* FOOTER ─────────────────────────────────────────────────── */

footer {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 2rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

.copyright,
.locale {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--muted);
  margin: 0;
  font-feature-settings: 'tnum';
}

.locale {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

/* Pulsing live indicator — small filled dot with an expanding ring. */
.pulse {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-ring 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(3.5); opacity: 0; }
}

#clock { font-variant-numeric: tabular-nums; }

/* ENTRANCE MOTION ────────────────────────────────────────── */

.wordmark,
.lede,
.contact,
footer {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wordmark { animation-delay: 100ms; }
.lede     { animation-delay: 260ms; }
.contact  { animation-delay: 440ms; }
footer    { animation-delay: 620ms; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* REDUCED MOTION ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .lede,
  .contact,
  footer {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .pulse::after {
    animation: none;
    opacity: 0;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* SMALL VIEWPORTS ────────────────────────────────────────── */

@media (max-width: 520px) {
  body { padding: 1.75rem 1.25rem; }
  main { padding-block: 2rem; }
  .hero { margin-bottom: 3rem; }
  .wordmark { margin-bottom: 1.75rem; }
  .contact { gap: 1rem; }
  .contact .rule { width: 28px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
