/* ==========================================================================
   Wayfare — Global tag styles
   Phase B: Webflow tag selectors (Body (All Pages), All H1–H6, All Paragraphs,
   All Links, All Lists, All Blockquotes, All Images, Strong, Emphasis).
   Fonts in Webflow: Site settings → Fonts → Google Fonts.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@600;700&family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600&display=swap");

/* Mirrors Webflow's built-in normalize (border-box on every element) — not rebuilt in Phase B */
* {
  box-sizing: border-box;
}

/* ---------- Body ---------- */
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body-m);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;   /* allowed exception: font smoothing */
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--size-display-l);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--font-body);
  font-size: var(--size-h4);
  font-weight: 600;
  line-height: 1.3;
}

h5 {
  font-family: var(--font-body);
  font-size: var(--size-body-m);
  font-weight: 600;
  line-height: 1.4;
}

h6 {
  font-family: var(--font-mono);
  font-size: var(--size-mono-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Text ---------- */
p {
  margin-top: 0;
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

a:hover {
  text-decoration-color: var(--signal);
}

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ---------- Lists ---------- */
ul, ol {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: var(--space-24);
}

li {
  margin-bottom: var(--space-8);
  padding-left: var(--space-4);
}

/* ---------- Blockquote ---------- */
blockquote {
  margin: 0;
  padding: var(--space-8) 0 var(--space-8) var(--space-32);
  border-left: 2px solid var(--signal);
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---------- Media ---------- */
img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: var(--space-12);
  font-family: var(--font-mono);
  font-size: var(--size-mono-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Form elements (base; styled by form_ classes in utilities.css) ---------- */
label {
  display: block;
}

button {
  font-family: inherit;
}

/* ---------- Responsive tag sizes ---------- */
@media (max-width: 991px) {
  h1 { font-size: var(--size-display-l-tablet); }
  h2 { font-size: var(--size-h2-tablet); }
  h3 { font-size: var(--size-h3-tablet); }
  h4 { font-size: var(--size-h4-tablet); }
  blockquote { font-size: var(--size-h3-tablet); }
}

@media (max-width: 767px) {
  h1 { font-size: var(--size-display-l-mobile); }
  h2 { font-size: var(--size-h2-mobile); }
  h3 { font-size: var(--size-h3-mobile); }
  h4 { font-size: var(--size-h4-mobile); }
  blockquote {
    font-size: var(--size-h3-mobile);
    padding-left: var(--space-24);
  }
}
