/* NovoCapsid Technologies — site styles */

:root {
  /* Brand colours (from the logo) */
  --brand-teal: #008ab8;
  --brand-indigo: #283890;
  --brand-orange: #f7941d;

  /* Page palette */
  --color-bg: #0b1230;
  --color-bg-glow: #17235c;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.14);
  --color-text: #eef2fa;
  --color-muted: #b7c2d9;
  --color-accent: var(--brand-orange);
  --color-accent-hover: #ffad4d;
  --color-on-accent: #0b1230;
  --color-focus: #6fd0f2;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 60rem;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  background-image: radial-gradient(ellipse 80% 60% at 15% 0%, var(--color-bg-glow) 0%, transparent 70%);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Decorative watermark: the NC hexagon mark, large and faint, cropped off the right edge */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  right: -14vmin;
  bottom: -12vmin;
  width: min(95vmin, 56rem);
  aspect-ratio: 1111 / 1292;
  background: url("assets/brand/nct-mark-color.png") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .container {
    padding: 0 2rem;
  }
}

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--color-focus);
  border-radius: 4px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  text-align: center;
}

.logo {
  margin: 0 auto 2rem;
  width: min(100%, 34rem);
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.tagline {
  margin: 0 auto 3rem;
  max-width: 36rem;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  line-height: 1.4;
  color: var(--color-text);
}

/* Contact */
.contact {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--brand-orange);
  border-radius: 8px;
}

.contact h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.contact p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
}

.button {
  display: inline-block;
  max-width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.button:hover {
  background: var(--color-accent-hover);
}

@media (max-width: 30rem) {
  .hero {
    padding: 3rem 0;
  }

  .contact {
    padding: 1.25rem 1rem;
  }

  .button {
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
