/* KNO3 Robotics - plain HTML and CSS only.
   No external fonts, no CDNs, no JavaScript, so it works fully offline.

   Typography note: headings and body copy are a local serif stack, and only the
   small interface bits (nav, labels, buttons, footer) use the system sans. */

:root {
  --bg: #0e110b;
  --bg-soft: #151a0f;
  --accent: #b6ff00;
  --text: #e8ecdd;
  --text-dim: #9aa483;
  --line: #2a3020;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

/* The logo art sits on black, which blends into the header, so the sunburst reads
   as the mark itself rather than a square image. */
.brand-logo {
  width: 26px;
  height: 26px;
}

.site-header nav {
  display: flex;
  gap: 1.35rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--accent);
}

/* Layout */

main {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

main > section:last-of-type {
  border-bottom: none;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  margin-bottom: 0.9rem;
}

section p {
  color: var(--text-dim);
  max-width: 62ch;
  margin-bottom: 1rem;
}

section p:last-child {
  margin-bottom: 0;
}

section strong {
  color: var(--text);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--sans);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin-bottom: 0.7rem;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  max-width: 32ch;
}

.hero-photo img {
  width: 100%;
  border: 1px solid var(--line);
}

/* Photo grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

/* Buttons */

.button {
  display: inline-block;
  font-family: var(--sans);
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.2rem;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--accent);
  color: #101408;
  text-decoration: none;
}

.mailto {
  font-weight: 700;
}

/* Footer */

.site-footer {
  font-family: var(--sans);
  text-align: left;
  padding: 1.75rem clamp(1.25rem, 5vw, 4rem);
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Small screens */

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tagline {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  section,
  .hero {
    padding: 2.5rem 0;
  }
}
