/* SHADE — base reset + typography + layout primitives */

@font-face {
  font-family: "Venice Blvd";
  src: url("../assets/fonts/VeniceBlvd-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Venice Blvd";
  src: url("../assets/fonts/VeniceBlvd-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Venice Blvd";
  src: url("../assets/fonts/VeniceBlvd-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Venice Blvd";
  src: url("../assets/fonts/VeniceBlvd-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Venice Blvd";
  src: url("../assets/fonts/VeniceBlvd-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

html, body { margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--teal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Belt-and-braces safety against any element pushing beyond viewport on mobile. */
@media (max-width: 480px) {
  h1, h2, h3, p { overflow-wrap: break-word; word-break: break-word; }
  .positioning__line,
  .for__heading,
  .contact__heading { hyphens: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

button, input, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
}

button { cursor: pointer; }

input, textarea { -webkit-appearance: none; appearance: none; border-radius: 0; }

::selection { background: var(--sand); color: var(--teal); }

/* Headings — Venice Blvd, set per-element below */
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-weight: 900; font-size: var(--fs-h1); }
h2 { font-weight: 700; font-size: var(--fs-h2); }
h3 { font-weight: 600; font-size: var(--fs-h3); }

p {
  max-width: 60ch;
  overflow-wrap: break-word;
}

/* Layout primitives */
.container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.eyebrow {
  font-size: clamp(0.8125rem, 0.7rem + 0.2vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  display: inline-block;
}

/* .reveal kept as a hook for future motion work, but no hiding by default.
   This guarantees content is always visible, even with JS off. */
.reveal { /* no-op for now */ }

/* Hairline rule */
.rule {
  display: block;
  width: 100%;
  height: var(--hairline);
  background: currentColor;
  opacity: 0.18;
  border: 0;
  margin: 0;
}

/* Visually hidden (a11y) */
.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;
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}
