/* NEODIN — shared stylesheet (no external resources) */

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

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

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

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

:root {
  --bg: #F5F8FC;
  --navy: #0F2340;
  --orange: #F29A0A;
  --line: #D3DDEA;
  --white: #FFFFFF;

  --muted: rgba(15, 35, 64, 0.65);
  --font: "Manrope", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--navy);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(211, 221, 234, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(211, 221, 234, 0.55) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
}

/* Decorative corner brackets: orange top-right, navy bottom-left */
body::before,
body::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 1;
}

body::before {
  top: 32px;
  right: 32px;
  border-top: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
}

body::after {
  bottom: 32px;
  left: 32px;
  border-bottom: 3px solid var(--navy);
  border-left: 3px solid var(--navy);
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Hero (landing + 404) ---------- */

.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 48px;
}

.hero__logo {
  display: block;
  width: min(340px, 72vw);
  height: auto;
}

.hero__title {
  margin: 32px 0 0;
  max-width: 18ch;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 2px;
  background-color: var(--orange);
}

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

.site-footer {
  margin-top: auto;
  padding: 0 24px 48px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  text-wrap: balance;
}

.site-footer a {
  color: var(--navy);
}

.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Branding page layout ---------- */

.topbar {
  padding: 28px 24px 0;
}

.topbar__logo {
  display: inline-block;
}

.topbar__logo img {
  display: block;
  width: 160px;
  height: auto;
}

.container {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.intro h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 20px;
  border-radius: 6px;
  background-color: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  text-align: center;
}

.button:hover {
  background-color: #17314F;
  color: var(--white);
  text-decoration: none;
}

/* ---------- Sections ---------- */

.section {
  margin-top: 64px;
}

.section h2 {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section h2::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-bottom: 12px;
  background-color: var(--orange);
}

/* ---------- Asset cards ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.card__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  padding: 24px;
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
}

.card__preview--dark {
  background-color: var(--navy);
}

.card__preview img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70%;
  object-fit: contain;
}

.card__preview--cover {
  padding: 0;
}

.card__preview--cover img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.card__body {
  padding: 14px 16px 16px;
}

.card__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.card__links a {
  font-weight: 500;
  color: var(--navy);
}

/* ---------- Colors ---------- */

.swatches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.swatch {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.swatch__color {
  height: 96px;
  border-bottom: 1px solid var(--line);
}

.swatch__color--navy {
  background-color: var(--navy);
}

.swatch__color--orange {
  background-color: var(--orange);
}

.swatch__color--cloud {
  background-color: var(--bg);
}

.swatch__color--line {
  background-color: var(--line);
}

.swatch__meta {
  padding: 12px 16px 14px;
}

.swatch__name {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.swatch__meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
}

.swatch__rgb {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Typography ---------- */

.type-card {
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.type-sample {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.weights {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 0.9375rem;
}

.weights li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.weight-tag {
  font-size: 0.8125rem;
  color: var(--muted);
}

.w-400 {
  font-weight: 400;
}

.w-500 {
  font-weight: 500;
}

.w-600 {
  font-weight: 600;
}

.w-800 {
  font-weight: 800;
}

.note {
  margin: 24px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  body::before,
  body::after {
    width: 28px;
    height: 28px;
  }

  body::before {
    top: 16px;
    right: 16px;
  }

  body::after {
    bottom: 16px;
    left: 16px;
  }

  .hero {
    padding: 72px 20px 40px;
  }

  .hero__title {
    margin-top: 24px;
  }

  .topbar {
    padding: 20px 24px 0;
  }

  .topbar__logo img {
    width: 132px;
  }

  .container {
    padding: 32px 24px 0;
  }

  .section {
    margin-top: 48px;
  }

  .type-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 20px 16px 0;
  }

  .container {
    padding: 32px 16px 0;
  }

  .hero {
    padding: 72px 16px 40px;
  }

  .site-footer {
    padding: 0 16px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
