/* Reset + base typography */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

/* §3.3 Typography scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 {
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h2 {
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}

h4 {
  font-weight: 700;
  font-size: 1rem;
}

p {
  margin-block: 0;
}

.accent-text {
  font-family: var(--font-accent);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

/* Honeypot — visually hidden but not display:none (so bots see and fill it) */
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Section themes (match Squarespace section_theme classes) */
.section {
  padding-block: var(--space-8);
  padding-inline: var(--space-4);
}

.section--black,
.section--black-bold {
  background-color: var(--tta-black);
  color: var(--color-text-inverse);
}

.section--black-bold h2,
.section--black h2,
.section--black-bold h3,
.section--black h3 {
  color: var(--color-text-inverse);
}

.section--dark {
  background-color: #1A1C1B;
  color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-text-inverse);
}

.section--light {
  background-color: var(--tta-white);
  color: var(--color-text-primary);
}

.section--light-bold {
  background-color: #F4F4F4;
  color: var(--color-text-primary);
}

.section--bright {
  background-color: var(--tta-white);
  color: var(--color-text-primary);
}

.section--grey {
  background-color: #F4F4F4;
  color: var(--color-text-primary);
}

.section--red {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.section--red h2,
.section--red h3 {
  color: var(--color-text-inverse);
}

.section--red a:not(.btn) {
  color: var(--color-text-inverse);
  text-decoration: underline;
}

.section--tight {
  padding-block: var(--space-5);
}

@media (min-width: 768px) {
  .section--tight {
    padding-block: var(--space-5);
  }
}

/* Larger viewports */
@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }

  .section {
    padding-block: calc(var(--space-8) * 1.5);
  }
}

@media (min-width: 1024px) {
  h1 { font-size: 4.5rem; }
}
