/* Spectre — one-page draft. Palette and type from the approved brand sheets. */

:root {
  --ink: #141312;
  --paper: #F4F1EB;
  --footer: #161412;
  --muted: #5C564E;
  --hair: #C9C3B9;
}

@font-face {
  font-family: "Tenor Sans";
  src: url("fonts/TenorSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("fonts/Geist-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("fonts/Geist-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: Geist, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* ----- Header ----- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.35rem 1.75rem;
  pointer-events: none;
}

.site-header .logo {
  pointer-events: auto;
  display: inline-block;
  line-height: 0;
}

.site-header .logo img {
  height: 17px;
  width: auto;
}

.site-header.on-dark .logo:focus-visible {
  outline-color: var(--paper);
}

/* ----- Hero ----- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6.5rem 1.5rem 4.5rem;
  gap: 0;
}

.hero-icon {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 2rem;
}

.hero h1 {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.hero-wordmark {
  width: min(46rem, 88vw);
  height: auto;
  margin: 0 auto;
}

.hero-line {
  margin: 2.15rem 0 0;
  font-family: "Tenor Sans", serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ----- Philosophy beats ----- */

.beats {
  padding: 0 1.5rem 2rem;
}

.beat {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 28.5rem;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 0;
}

.beat h2 {
  margin: 0 0 1.05rem;
  font-family: "Tenor Sans", serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 4.6vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.beat p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .js .beat {
    opacity: 0;
    transform: translateY(1.15rem);
    transition: opacity 0.9s ease, transform 0.9s ease;
  }

  .js .beat.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ----- Footer ----- */

.site-footer {
  background: var(--footer);
  color: var(--paper);
  text-align: center;
  padding: 5.5rem 1.5rem 4.25rem;
}

.footer-icon {
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 auto 2rem;
}

.footer-name,
.footer-contact {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: var(--paper);
}

.footer-name {
  font-family: "Tenor Sans", serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  /* Matches the former gap between the last footer line and Contact. */
  margin-bottom: 1.35rem;
}

.footer-contact a {
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid #8a837a;
  padding-bottom: 0.12rem;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  border-bottom-color: var(--paper);
}

.site-header .logo:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}

/* ----- Small screens (390px and below, still fine at 320) ----- */

@media (max-width: 540px) {
  .site-header {
    padding: 1.15rem 1.25rem;
  }

  .site-header .logo img {
    height: 14px;
  }

  .hero {
    padding: 5.5rem 1.25rem 3.5rem;
  }

  .hero-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.65rem;
  }

  .hero-wordmark {
    width: min(46rem, 90vw);
  }

  .hero-line {
    font-size: 0.98rem;
    margin-top: 1.75rem;
  }

  .beats {
    padding: 0 1.25rem 1.5rem;
  }

  .beat {
    min-height: 72svh;
    padding: 4rem 0;
  }
}
