/* Ownfold coming-soon page. Single viewport, no scroll.
   Type follows the Figma beta design: Faculty Glyphic for the headline
   (400, uppercase, 103% line height) and ABC Diatype for everything else
   (400, 137% line height). */

/* ABC Diatype is a licensed webfont from Dinamo (https://abcdinamo.com).
   Once you have the licensed woff2 files, put them in public/fonts/ and
   uncomment this block; the font stack below picks it up automatically.
   Until then the stack falls back to Inter from Google Fonts. */
/*
@font-face {
  font-family: 'ABC Diatype';
  src: url('/fonts/ABCDiatype-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ABC Diatype';
  src: url('/fonts/ABCDiatype-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  --ink: #0d0f14;
  --ink-muted: #6b7280;
  --ink-faint: #a8afc0;
  --line: #e4e7ef;
  --bg: #ffffff;
  --font-display: 'Faculty Glyphic', 'Times New Roman', serif;
  --font-body: 'ABC Diatype', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  height: 100%;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.37;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Header and footer */

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark__mark {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.site-footer {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.site-footer p {
  margin: 0;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  place-content: center;
  min-height: 0;
  padding: 0 var(--gutter);
  overflow: hidden;
  text-align: center;
}

.hero > :not(.hero__ring) {
  position: relative;
}

.hero__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78vmin, 40rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__eyebrow {
  margin: 0 0 clamp(0.75rem, 2vh, 1.5rem);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__lede {
  max-width: 36ch;
  margin: clamp(1rem, 3vh, 2rem) auto 0;
  font-size: clamp(1rem, 0.75rem + 0.8vw, 1.25rem);
  line-height: 1.37;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.hero__lede a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Short viewports (landscape phones): tighten vertical rhythm. */
@media (max-height: 480px) {
  :root {
    --gutter: 1rem;
  }

  .hero__title {
    font-size: clamp(2.5rem, 12vh, 6rem);
  }

  .hero__lede {
    font-size: 0.9375rem;
  }
}

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero > :not(.hero__ring) {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__title {
    animation-delay: 0.08s;
  }

  .hero__lede {
    animation-delay: 0.16s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(0.5rem);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}
