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

* {
  margin: 0;
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

a:hover,
a:focus-visible {
  color: var(--purple-deep);
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}

p {
  font-size: var(--fs-body);
}

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

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

/* Page scaffolding */
main {
  flex: 1 0 auto;
}

/* Section wrappers */
.section {
  padding-block: var(--sp-8);
}

.section--tight {
  padding-block: var(--sp-6);
}

.section--pad-lg {
  padding-block: var(--sp-9);
}

/* Themed section surfaces (magazine color blocking) */
.section--sand {
  background: var(--sand);
}

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

.section--ink a {
  color: var(--yellow);
}

.section--ink a:hover,
.section--ink a:focus-visible {
  color: #fff;
}

.section--ink .section-label {
  color: var(--yellow);
}

.section--ink .meta {
  color: color-mix(in srgb, var(--cream) 75%, transparent);
}

/* Section header row: eyebrow label + optional trailing meta */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid currentColor;
  opacity: 1;
}

.section-head > * {
  margin: 0;
}

.section-head__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--ink .section-head__meta {
  color: color-mix(in srgb, var(--cream) 70%, transparent);
}

/* Section eyebrow / label */
.section-label {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
}

/* Eyebrow (hero) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 22%, transparent);
}

/* Meta / captions */
.meta {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Highlighter — djpardis.com DNA */
.hl {
  background: var(--yellow);
  padding: 0.05em 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hl-pink {
  background: var(--pink);
  color: #fff;
  padding: 0.05em 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Screen reader only */
.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;
}
