/* Reset + primitives shared by every section. */

/* Core stretches links inside a Buttons block; section rules below set widths where wanted. */
.wp-block-buttons .wp-block-button__link { width: auto; }
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--cream);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }

:focus-visible {
  outline: 2px solid var(--gold-lift);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: var(--ink-900); }

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

.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

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

.section--tight { padding-block: calc(var(--section-y) * 0.66); }

/* ---------- Type primitives ---------- */

.display,
.h2,
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display { font-size: var(--t-display); line-height: 0.98; }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); line-height: 1.15; }

.display em,
.h2 em,
.h3 em { font-style: italic; color: var(--gold-lift); }

.lede {
  max-width: 46ch;
  color: var(--cream-dim);
  font-size: var(--t-lede);
  line-height: 1.65;
  text-wrap: pretty;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  color: var(--gold);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.muted { color: var(--cream-mute); font-size: var(--t-small); }

@media (max-width: 40rem) {
  .hide-sm { display: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--gold);
  color: var(--ink-900);
  font-size: var(--t-small);
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus-visible { transform: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--fast) ease, color var(--fast) ease,
    border-color var(--fast) ease, transform var(--fast) ease;
}

.btn:active { transform: scale(0.98); }

.btn--gold { background: var(--gold); color: var(--ink-900); }
.btn--gold:hover { background: var(--gold-lift); }

.btn--ghost { border-color: var(--line-strong); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lift); }

.btn--solid { background: var(--cream); color: var(--ink-900); }
.btn--solid:hover { background: #fff; }

.btn__icon { font-size: 1.05em; line-height: 1; }

/* The standard pair of actions: one solid primary, one outlined secondary.
   Side by side on a desktop; stacked and full width on a phone, so the thumb
   gets two targets of equal size instead of a button and an afterthought. */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.actions--center { justify-content: center; }

@media (max-width: 40rem) {
  .actions { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .actions .btn { width: 100%; }
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color var(--fast) ease, color var(--fast) ease;
}

.link:hover { border-color: var(--gold); color: var(--gold-lift); }

/* ---------- Small shared pieces ---------- */

.rule {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--cream-mute);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tag,
.areas > li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cream-dim);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex: none;
  background: var(--cream-mute);
}

.dot--open { background: #43b075; box-shadow: 0 0 0 3px rgba(67, 176, 117, 0.18); }
.dot--closed { background: var(--gold); box-shadow: 0 0 0 3px rgba(202, 158, 1, 0.16); }

/* The stars' colour is chosen in the editor (Highlight → Text). */
.stars { letter-spacing: 0.1em; }
