/* ==========================================================================
   Base: reset, typography primitives, and the shared layout/utility classes
   every section leans on.
   ========================================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--c-bone);
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--c-navy);
  text-decoration: none;
}

a:hover {
  color: var(--c-steel);
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  margin: 0;
  text-wrap: pretty;
}

p {
  margin: 0;
}

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

/* --- Layout ---------------------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

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

.section--anchored {
  scroll-margin-top: var(--anchor-offset);
}

.section--dark {
  background: var(--c-navy);
}

.section--ink {
  background: var(--c-ink);
}

.section--light {
  background: var(--c-bone);
}

/* Sections that sit directly under another of the same background collapse
   their top padding, matching the source layout. */
.section--tight-top {
  padding-top: 8px;
}

.section--no-top {
  padding-top: 0;
}

.rule-amber {
  height: var(--rule-thick);
  background: var(--c-amber);
}

/* Auto-fit card grids. `--min` sets the column floor per section. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr));
  gap: var(--gap, 20px);
}

/* Hairline grid: 1px gaps over a rule-colored bed read as table borders. */
.grid--hairline {
  gap: 1px;
  background: var(--c-rule);
  border: 1px solid var(--c-rule);
}

/* --- Typography roles ------------------------------------------------------ */

.h1 {
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-tight);
  color: var(--c-white);
}

.h2 {
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-snug);
  color: var(--c-ink);
  max-width: var(--maxw-prose);
  margin-bottom: 44px;
}

.h2--display {
  font-weight: 800;
  font-size: var(--fs-h2-dark);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  color: var(--c-white);
  margin-bottom: 20px;
}

.h3 {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: var(--ls-card);
  line-height: 1.25;
}

.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

.label {
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--c-slate);
}

/* Superscript dagger marking any figure that is still a placeholder. */
.on-dark {
  color: var(--c-white);
  opacity: var(--o-body-dark);
}

.on-light {
  color: var(--c-ink);
  opacity: var(--o-body-light);
}

.muted {
  color: var(--c-slate);
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 18px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 120ms ease, color 120ms ease;
}

.btn--primary {
  background: var(--c-amber);
  color: var(--c-ink);
}

.btn--primary:hover {
  background: var(--c-amber-hover);
  color: var(--c-ink);
}

.btn--ghost {
  border: 1px solid var(--c-steel);
  color: var(--c-white);
  font-weight: 500;
  padding: 15px 24px;
}

.btn--ghost:hover {
  background: var(--c-steel);
  color: var(--c-white);
}

/* The same secondary button for light surfaces. */
.btn--ghost-dark {
  border: 1px solid var(--c-steel);
  color: var(--c-ink);
  font-weight: 500;
  padding: 15px 24px;
}

.btn--ghost-dark:hover {
  background: var(--c-steel);
  color: var(--c-white);
}

.btn--lg {
  font-size: 17px;
  padding: 16px 26px;
}

.btn--xl {
  font-size: 18px;
  padding: 18px 34px;
}

/* --- Media placeholders ---------------------------------------------------- */

/* The diagonal hatch stands in for photography and video until real assets
   land. Delete these two rules once the shoot is in. */
.placeholder {
  background-color: var(--c-placeholder);
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--c-steel) 14%, transparent) 0 2px,
    transparent 2px 9px
  );
  border: 1px solid var(--c-rule);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.placeholder--dark {
  background-color: var(--c-navy-tint);
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--c-white) 6%, transparent) 0 2px,
    transparent 2px 9px
  );
  border-color: var(--c-steel);
}

.placeholder__note {
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-mono);
  color: var(--c-steel);
  line-height: 1.7;
  padding: 0 18px;
}

.placeholder--dark .placeholder__note {
  color: var(--c-slate);
}

.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;
}