/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* Base Styles */
body {
  font-family: var(--f-body);
  background-color: var(--c-surface);
  color: var(--c-text);
  font-size: var(--t-base);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-base);
}

a {
  color: var(--c-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--c-accent);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Layout */
.site-header {
  border-bottom: 2px solid var(--c-base);
  background: var(--c-surface);
  padding: var(--s-3) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-md);
  text-decoration: none;
  color: var(--c-base);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--s-4);
}

.main-nav a {
  text-decoration: none;
  color: var(--c-text);
  font-weight: 500;
}

.main-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--c-accent);
}

.site-footer {
  border-top: 2px solid var(--c-base);
  padding: var(--s-8) 0;
  background: var(--c-base);
  color: var(--c-surface);
  margin-top: var(--s-10);
}

.site-footer a {
  color: var(--c-surface-alt);
}

.site-footer h4 {
  color: var(--c-surface);
  margin-bottom: var(--s-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: var(--s-2);
}

.copyright {
  border-top: 1px solid var(--c-text-muted);
  padding-top: var(--s-4);
  font-size: var(--t-xs);
  color: var(--c-text-muted);
}

/* Components */
.btn {
  display: inline-flex;
  background: var(--c-primary);
  color: var(--c-text-inverse);
  padding: var(--s-3) var(--s-5);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: background 0.2s;
  border: 2px solid var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-text-inverse);
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.btn-outline:hover {
  background: var(--c-primary);
  color: var(--c-text-inverse);
}

/* Standard Section Layouts */
.section {
  padding: var(--s-10) 0;
}

.section-alt {
  background: var(--c-surface-alt);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.editorial-spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  align-items: center;
}
@media (min-width: 768px) {
  .editorial-spread {
    grid-template-columns: 5fr 7fr;
    gap: var(--s-8);
  }
  .editorial-spread.reverse {
    grid-template-columns: 7fr 5fr;
  }
  .editorial-spread.reverse > :first-child {
    order: 2;
  }
}

/* Tool / Form */
.form-group {
  margin-bottom: var(--s-4);
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--s-1);
}
.form-control {
  width: 100%;
  padding: var(--s-2) var(--s-3);
  border: 2px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
}
.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--c-border);
  padding: var(--s-4) 0;
}
.faq-item h3 {
  font-family: var(--f-body);
  font-size: var(--t-md);
  margin-bottom: var(--s-2);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--s-6);
}
.data-table th, .data-table td {
  padding: var(--s-3);
  border-bottom: 1px solid var(--c-border);
  text-align: left;
}
.data-table th {
  font-weight: 600;
  background: var(--c-surface-alt);
  color: var(--c-base);
}

/* Motif */
.motif-border {
  border-left: 4px solid var(--c-accent);
  padding-left: var(--s-4);
}
