@import 'tokens.css';

/* Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--f-body);
  background-color: var(--c-paper);
  color: var(--c-ink);
  line-height: 1.6;
  font-size: var(--fs-base);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  line-height: 1.2;
  margin-bottom: var(--s-3);
  color: var(--c-slate-dark);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }

a {
  color: var(--c-turf);
  text-decoration: underline;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--c-turf-light);
}

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

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-4);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--c-turf);
  color: white;
  padding: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* Header */
.site-header {
  background-color: var(--c-sand-light);
  border-bottom: 2px solid var(--c-sand);
  padding: var(--s-3) 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  font-weight: bold;
  color: var(--c-turf);
  text-decoration: none;
}
.site-nav ul {
  display: flex;
  list-style: none;
  gap: var(--s-4);
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--c-slate);
}
.site-nav li.active a {
  color: var(--c-turf);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Footer */
.site-footer {
  background-color: var(--c-slate-dark);
  color: var(--c-sand-light);
  padding: var(--s-12) 0 var(--s-4);
  margin-top: var(--s-16);
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s-8);
  margin-bottom: var(--s-8);
}
.footer-col strong {
  display: block;
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  margin-bottom: var(--s-4);
  color: var(--c-paper);
}
.footer-col ul {
  list-style: none;
}
.footer-col a {
  color: var(--c-sand);
  text-decoration: none;
}
.footer-col a:hover {
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--c-slate);
  padding-top: var(--s-4);
  font-size: var(--fs-sm);
}

/* Hero */
.hero-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-12) var(--s-4);
}
.hero-content {
  max-width: 600px;
}
.lead {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-6);
  color: var(--c-slate);
}
.btn-primary {
  display: inline-block;
  background-color: var(--c-turf);
  color: var(--c-paper);
  padding: var(--s-3) var(--s-6);
  text-decoration: none;
  font-weight: bold;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: var(--c-turf-light);
  color: var(--c-paper);
}

@media (max-width: 768px) {
  .hero-spread {
    grid-template-columns: 1fr;
  }
  h1 { font-size: var(--fs-3xl); }
}
