/* ==========================================================================
   YAYASAN TARUNA TEKNO ARIFAH — halaman portal
   Logo yayasan, nama yayasan, dua logo sekolah naungan.
   ========================================================================== */

/* Di-host sendiri: menghilangkan permintaan render-blocking ke pihak ketiga
   (fonts.googleapis.com + fonts.gstatic.com = 2 koneksi ekstra). Hanya subset
   latin bobot 700 — satu-satunya yang dipakai halaman ini. */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/hankengrotesk-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --navy: #1a2b49;
  --teal: #008080;
  --surface: #f8f9fa;
  --on-surface-variant: #44474e;

  --font-display: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  /* Mono sistem, bukan JetBrains Mono: hanya dipakai satu baris footer 11px,
     tidak sepadan dengan unduhan satu keluarga font utuh. */
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  /* Satu pengungkit untuk seluruh ukuran logo — media query cukup mengubah
     angka ini, tidak perlu menulis ulang tiap tinggi. */
  --logo-scale: 1;
}

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

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 56px;
  /* Blok identitas ditahan di area atas agar logo sekolah punya ruang besar. */
  padding: clamp(56px, 11vh, 112px) 16px 72px;
  background-color: var(--surface);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 6px;
  border-radius: 0.25rem;
}

/* --------------------------------------------------------------------------
   Identitas yayasan
   -------------------------------------------------------------------------- */

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Tinggi dikunci, lebar mengikuti rasio asli (246x216 = 1.139). */
.crest {
  height: calc(108px * var(--logo-scale));
  width: auto;
}

.foundation-name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Logo sekolah naungan

   Kedua logo berbeda bentuk, jadi disamakan menurut LUAS OPTIS — bukan tinggi
   kotak. Menyamakan tinggi akan membuat logo lebar (SMK) mendominasi logo
   tegak (SMA Plus).

     SMA Plus  240x340  rasio 0.706 (perisai tegak)
     SMK       301x270  rasio 1.115 (lingkaran melebar)

   Luas sama  ->  h1/h2 = sqrt(1.115 / 0.706) = 1.257
     SMA Plus  170px tinggi -> 120px lebar -> luas 20.400
     SMK       135px tinggi -> 151px lebar -> luas 20.385

   Kedua berkas sudah dipangkas rapat ke isinya, jadi tinggi CSS = tinggi
   tampak. Kalau logo diganti, ulangi rumus di atas dengan rasio yang baru.
   -------------------------------------------------------------------------- */

.schools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.school {
  display: block;
  transition: transform 200ms ease;
}

.school:hover {
  transform: scale(1.04);
}

.school-logo {
  width: auto;
}

.school:nth-child(1) .school-logo {
  height: calc(170px * var(--logo-scale));
}

.school:nth-child(2) .school-logo {
  height: calc(135px * var(--logo-scale));
}

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

.site-footer {
  position: absolute;
  bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--on-surface-variant);
}

/* --------------------------------------------------------------------------
   Responsif
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  :root {
    --logo-scale: 0.78;
  }

  .schools {
    gap: 56px;
  }
}

@media (max-width: 440px) {
  :root {
    --logo-scale: 0.6;
  }

  body {
    gap: 44px;
  }

  .schools {
    gap: 32px;
  }

  .foundation-name {
    font-size: 21px;
    line-height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .school {
    transition: none;
  }

  .school:hover {
    transform: none;
  }
}
