:root {
  --nynu-cyan: #01a3f7;
  --nynu-cyan-bright: #009ff7;
  --nynu-cyan-eye: #008fe1;
  --nynu-blue: #176bde;
  --nynu-blue-deep: #0541d0;
  --nynu-navy-eye: #02335f;
  --nynu-navy: #040f30;
  --nynu-navy-deep: #030c29;
  --nynu-white: #ffffff;
  --nynu-mist: #d7e9f7;
  --nynu-muted: #8aa4c4;

  --bg: var(--nynu-navy-deep);
  --bg-card: #071433;
  --text: var(--nynu-white);
  --text-muted: var(--nynu-muted);
  --accent: var(--nynu-cyan);
  --rule: rgba(1, 163, 247, 0.18);

  --font: "Outfit", system-ui, sans-serif;
  --space: 8px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 8px;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

header nav a {
  color: var(--text-muted);
}

header nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.hero {
  padding: 72px 0 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero p.lede {
  margin: 0;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 18px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-mark {
  display: grid;
  place-items: center;
}

.hero-mark img {
  width: min(100%, 280px);
}

section {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0 0 32px;
  max-width: 56ch;
  color: var(--text-muted);
}

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
}

.panel.light {
  background: var(--nynu-white);
  color: var(--nynu-navy);
}

.panel.light p,
.panel.light .kicker {
  color: #4a5d78;
}

.panel h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
}

.kicker {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.panel .asset {
  height: 140px;
  display: grid;
  place-items: center;
}

.panel .asset img {
  max-height: 120px;
  width: auto;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.swatch figure {
  margin: 0;
}

.chip {
  height: 88px;
  border: 1px solid var(--rule);
}

.chip.white {
  border-color: #cfd8e3;
}

.swatch figcaption {
  margin-top: 8px;
  font-size: 12px;
}

.swatch .name {
  font-weight: 600;
}

.swatch .hex {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.type-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}

.type-row dt {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.type-row dd {
  margin: 0;
}

.specimen-nynu {
  height: 52px;
}

.specimen-soft {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--nynu-blue);
}

.specimen-ui {
  font-size: 18px;
  color: var(--text-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.asset-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
}

.asset-card.light {
  background: #f3f6fb;
}

.asset-card h3 {
  margin: 16px 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.asset-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.asset-card.light p {
  color: #4a5d78;
}

.frame {
  min-height: 120px;
  display: grid;
  place-items: center;
}

.frame img {
  max-height: 96px;
  width: auto;
}

.frame.tall img {
  max-height: 180px;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: end;
}

.size {
  text-align: center;
}

.size img {
  margin-inline: auto;
}

.size span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.icons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.icons img {
  width: 128px;
  height: 128px;
}

.icons figure:nth-child(-n + 2) img {
  outline: 1px solid var(--rule);
  border-radius: 22%;
}

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rule {
  padding: 20px 24px;
  border: 1px solid var(--rule);
}

.rule h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule.do h3 {
  color: var(--accent);
}

.rule.dont h3 {
  color: #ff6b8a;
}

.rule p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.files {
  columns: 2;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.files code {
  color: var(--accent);
}

footer {
  padding: 32px 0 64px;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 13px;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  html,
  body {
    background: var(--bg);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .wrap {
    width: 100%;
  }

  header nav {
    display: none;
  }

  .panel,
  .asset-card,
  .rule,
  .swatch {
    break-inside: avoid;
  }

  h2,
  .section-lead {
    break-after: avoid;
  }

  .hero {
    padding: 36px 0 40px;
  }

  section {
    padding: 36px 0;
  }

  footer {
    padding: 24px 0 8px;
  }
}

@media screen and (max-width: 800px) {
  .hero,
  .modes,
  .grid-2,
  .grid-3,
  .rules,
  .swatches,
  .type-row {
    grid-template-columns: 1fr;
  }

  .files {
    columns: 1;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }
}
