/* Fronteira Labs — dark charcoal theme */

:root {
  --bg: #1E1E1C;
  --surface: #2A2A28;
  --text: #EDECE8;
  --text-secondary: rgba(237, 236, 232, 0.64);
  --accent: #4CAF7D; /* 6.1:1 on --bg, 5.3:1 on --surface (WCAG AA) */
  --rule: rgba(76, 175, 125, 0.35);
  --max-width: 40rem;
}

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

html {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  flex: 1;
}

/* Hero */

.hero {
  margin-bottom: 3rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mark {
  flex-shrink: 0;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 .accent {
  color: var(--accent);
}

.tagline {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  color: var(--text-secondary);
  max-width: 32rem;
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0 0 3rem;
}

/* Sections */

section {
  margin-bottom: 2.75rem;
}

h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

section p {
  color: var(--text);
  max-width: 36rem;
}

strong {
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 120ms ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--accent);
}

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

/* Footer */

footer {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(237, 236, 232, 0.08);
}

footer p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  main {
    padding-top: 6.5rem;
  }
}
