/* ==========================================================
   BASE STYLES - THE BARREL HOUSE
   Purpose: Global reset, typography, element defaults
   Scope: NO layout • NO components • NO sections
   ========================================================== */

/* ----------------------------------------------------------
   1. ROOT & DOCUMENT
---------------------------------------------------------- */

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65; /* slightly more breathable */
  color: var(--colour-text);
  background-color: var(--colour-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------
   2. MEDIA
---------------------------------------------------------- */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------------------------
   3. HEADINGS
---------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--colour-primary);
}

/* Fluid scale */
h1 {
  font-size: clamp(2.25rem, 3vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.1rem;
}

/* ----------------------------------------------------------
   4. BODY TEXT
---------------------------------------------------------- */

p {
  margin: 0 0 1rem;
  max-width: 65ch;
}

/* Slightly stronger lead copy (hero / intros opt-in) */
.lead,
.hero-intro {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Utility for readable blocks */
.text-measure {
  max-width: 65ch;
}

small {
  font-size: 0.875rem;
}

strong {
  font-weight: 600;
}

/* ----------------------------------------------------------
   5. LINKS
---------------------------------------------------------- */

a {
  color: var(--colour-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--colour-primary);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   6. LISTS
---------------------------------------------------------- */

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   7. FORM ELEMENT BASELINE
---------------------------------------------------------- */

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 1rem;
}

button {
  cursor: pointer;
}

/* ----------------------------------------------------------
   8. UTILITIES
---------------------------------------------------------- */

.hidden {
  display: none;
}

/* ----------------------------------------------------------
   END OF BASE STYLES
---------------------------------------------------------- */
