/* ============================================================
   Founding Self, PLLC — Base styles
   Self-hosted fonts, reset, typography, layout primitives.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/fraunces-normal-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/fraunces-italic-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2");
}

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

* {
  margin: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

/* The [hidden] attribute must always win over a class's own `display`
   rule (e.g. .admin-header-actions { display: flex }), which otherwise
   silently overrides it at equal CSS specificity. */
[hidden] {
  display: none !important;
}

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

a {
  color: var(--link-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

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

/* ---- Typography ---- */
h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-6xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}

em,
.accent-word {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-medium);
}

p {
  max-width: 60ch;
}

p + p {
  margin-top: var(--space-4);
}

.text-secondary {
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--eyebrow-color);
  margin-bottom: var(--space-3);
}

.on-deep .eyebrow {
  color: var(--eyebrow-color-on-deep);
}

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

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-7);
  }
}

.container-narrow {
  max-width: var(--container-narrow);
}

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

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

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

.on-deep {
  background: var(--bg-deep);
  color: var(--bg-deep-text);
}

.on-deep h1,
.on-deep h2,
.on-deep h3,
.on-deep p {
  color: var(--bg-deep-text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-modal);
  background: var(--ink);
  color: var(--oat-milk);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  transition: top var(--duration-fast) var(--ease-standard);
}

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