/* EpochLemon site styles. Tokens (colour, space, type, radius) come from tokens.css.
   Rules from the brand book: dark default, square corners, no shadows or gradients,
   one lemon moment per view (the primary button), Ion only for live things. */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

.muted { color: var(--text-muted); }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* Skip link */
.skip {
  position: absolute;
  left: var(--space-4);
  top: -80px;
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}
.skip:focus { top: var(--space-4); }

/* Wordmark: EPOCH in Bone, LEMON in Lemon, set live in Unbounded 600 */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark--sm { font-size: 14px; }
.wordmark__lemon { color: var(--lemon); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* 30% of the mark height */
  min-height: 44px;
}
.brand--footer { gap: 8px; }
.brand__mark { width: 32px; height: 32px; }
.brand--footer .brand__mark { width: 24px; height: 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 120ms ease;
}
.nav__link:hover { color: var(--text); }
.nav__link--strong { color: var(--text); font-weight: 600; }

/* Buttons: 44px tall, square, sentence case */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-none);
  cursor: pointer;
}
.btn--primary { background: var(--signal); color: var(--on-signal); }
.btn--primary:hover { background: var(--bone); }
.btn--secondary { border-color: var(--text); color: var(--text); }
.btn--secondary:hover { background: var(--surface-raised); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-7);
  align-items: center;
  padding-block: var(--space-8);
  min-height: min(680px, calc(100vh - 72px));
}
.hero__stamp { color: var(--link); margin-bottom: var(--space-5); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -0.03em;
}
.hero__lede {
  color: var(--text-muted);
  max-width: 460px;
  margin-top: var(--space-5);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Orbit: the brand device. Rings centre on the mark and bleed off the edge. */
.hero__art {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1;
  justify-self: end;
  margin-right: -96px;
}
.orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.orbit circle { fill: none; stroke: var(--line); stroke-width: 1; }
.orbit .orbit__dot { fill: var(--lemon); stroke: none; }
.hero__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 27.8%;
  height: auto;
  transform: translate(-50%, -50%);
}

/* Sections */
.section { padding-block: 96px; }
.section--ruled { border-top: 1px solid var(--line); }
.section__title { margin-top: var(--space-3); max-width: 720px; }

.grid { display: grid; gap: var(--space-5); margin-top: var(--space-7); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Card: raised panel, 1px line, no shadow */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-none);
}
.card .body { color: var(--text-muted); }

.principle {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.principle .body { color: var(--text-muted); }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-7);
  align-items: end;
}
.contact__lede { color: var(--text-muted); margin-top: var(--space-4); max-width: 460px; }
.contact__value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-7) var(--space-6); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
}
.site-footer__tagline { color: var(--text); }
.site-footer__legal { margin-top: var(--space-6); }

/* Tablet */
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-6); min-height: 0; padding-block: var(--space-7); }
  .hero__title { font-size: 44px; line-height: 48px; }
  .hero__art { justify-self: center; max-width: 480px; margin-right: 0; }
  .contact { grid-template-columns: 1fr; align-items: start; gap: var(--space-6); }
}

/* Phone */
@media (max-width: 719px) {
  .container { padding-inline: var(--space-4); }
  .nav { gap: var(--space-4); }
  .nav__link--secondary { display: none; }
  .hero__title { font-size: 32px; line-height: 36px; }
  .hero__art { max-width: 360px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section { padding-block: var(--space-8); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; margin-top: var(--space-6); }
  .heading-1 { font-size: 32px; line-height: 36px; }
  /* heading-2 keeps its token size (28px): the brand never sets Unbounded below 28px. */
}
