/* ============================================
   STEAM COFFEE CO — Reset + Base Typography
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  color: var(--color-espresso);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-gold);
  color: var(--color-espresso);
  padding: var(--space-2) var(--space-4);
  font-weight: var(--fw-bold);
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 9999;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  color: var(--color-espresso);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

@media (min-width: 1024px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-2xl); }
}

/* Paragraphs */
p {
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--color-forest);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-forest-light);
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Lists */
ul, ol {
  list-style: none;
}

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

/* Buttons base reset */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Form elements */
input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* Strong */
strong {
  font-weight: var(--fw-bold);
}

/* Small caps label style */
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-espresso-light);
}

/* Gold rule decoration */
.gold-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-gold);
  margin: var(--space-3) auto;
}

.gold-rule--left {
  margin-left: 0;
}

/* Section heading pattern */
.section-heading {
  text-align: center;
}

.section-heading .label {
  display: block;
  margin-bottom: var(--space-2);
}

.section-heading h2 {
  margin-bottom: var(--space-2);
}

.section-heading .gold-rule {
  margin-bottom: var(--space-3);
}

.section-heading .subheading {
  font-size: var(--text-lg);
  color: var(--color-espresso-light);
  max-width: 540px;
  margin: 0 auto;
}

/* Utility: hidden */
.hidden {
  display: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
