/* 01. Site typography and light-theme tokens */
@font-face {
  font-family: Oskee;
  src: url('/assets/fonts/body.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: Oskee;
  src: url('/assets/fonts/body-bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: OskeeMono;
  src: url('/assets/fonts/mono.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f5f6f8;
  --ink: #122139;
  --muted: #536178;
  --orange: #af3615;
  --line: #d8dee7;
  --body: Oskee, Arial, sans-serif;
  --mono: OskeeMono, 'Courier New', monospace;
}

/* 02. Page and the centered Alma Mater brand stack */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.5 var(--body);
}

.landing {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1rem, 5vw, 3rem);
  background: radial-gradient(ellipse at 50% 35%, #fff 0%, #fbfcfd 44%, var(--page) 100%);
}

.hero {
  inline-size: min(100%, 37rem);
  min-inline-size: 0;
  text-align: center;
}

.brand-lockup {
  display: grid;
  justify-items: center;
  gap: clamp(.27rem, 1vh, .6rem);
}

.brand-lockup svg {
  display: block;
  overflow: hidden;
}

.brand-figure { inline-size: min(74vw, clamp(12.4rem, 30vh, 17.6rem)); }
.brand-wordmark { inline-size: min(80vw, clamp(15.25rem, 32vh, 20rem)); }

.tagline {
  margin: .65rem 0 0;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .027em;
}

/* 03. Status and one-pass terminal animation */
.launch-status {
  display: grid;
  justify-content: center;
  margin: clamp(1.25rem, 4vh, 2.65rem) 0 .35rem;
  color: var(--ink);
  font: 700 clamp(1.15rem, 4.8vw, 1.43rem)/1.45 var(--mono);
}

.terminal {
  --characters: 14;
  display: block;
  inline-size: calc(var(--characters) * 1ch + .56em);
  text-align: left;
  white-space: nowrap;
}

.terminal-typing {
  position: relative;
  display: block;
  inline-size: calc(var(--characters) * 1ch);
  animation: type-in 1.47s steps(14, end) .22s both;
}

.terminal-copy {
  display: block;
  overflow: hidden;
}

.terminal-cursor {
  position: absolute;
  inset-inline-start: calc(100% + .15em);
  inset-block-start: .22em;
  inline-size: .36em;
  block-size: .94em;
  background: var(--orange);
  animation: cursor-blink .86s steps(1, end) 4;
}

@keyframes type-in {
  from { inline-size: 0; }
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.coverage {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.87rem, 2.6vw, .99rem);
  text-wrap: balance;
}

/* 04. Unboxed brand glyphs and keyboard focus */
.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(.3rem, 2.4vw, .7rem);
  margin-block-start: clamp(.8rem, 2.9vh, 1.5rem);
}

.social a {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform .16s ease;
}

.social a:hover { transform: translateY(-3px); }
.social a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.social img { display: block; object-fit: contain; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* 05. Compact screens and reduced motion */
@media (max-height: 640px) {
  .landing { padding-block: 1rem; }
  .brand-figure { inline-size: min(70vw, 32vh, 12.4rem); }
  .brand-wordmark { inline-size: min(78vw, 47vh, 15.25rem); }
  .launch-status { margin-block-start: 1rem; }
  .social { margin-block-start: .45rem; }
}

@media (max-height: 485px) and (orientation: landscape) {
  .brand-figure { inline-size: min(23vh, 8rem); }
  .brand-wordmark { inline-size: min(38vh, 12rem); }
  .tagline { margin-block-start: .35rem; }
  .launch-status { margin-block-start: .65rem; }
  .social { margin-block-start: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-typing, .terminal-cursor { animation: none; }
  .social a { transition: none; }
  .social a:hover { transform: none; }
}
