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

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

body {
  background-color: var(--bg);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Typography helpers ── */
.font-display  { font-family: var(--font-display); }
.font-body     { font-family: var(--font-body); }
.font-mono     { font-family: var(--font-mono); }
.font-icon     { font-family: var(--font-icon); }

.text-hero-lg    { font-size: var(--text-hero);    line-height: 1; letter-spacing: -0.02em; }
.text-hero { font-size: var(--text-hero-cs); line-height: 1; letter-spacing: -0.02em; }
.text-section { font-size: var(--text-section); line-height: 1.2; }
.text-card    { font-size: var(--text-card);    line-height: 1.2; }
.text-body-lg { font-size: var(--text-body-lg); line-height: 1.5; }
.text-body    { font-size: var(--text-body);    line-height: 1.5; }
.text-label   { font-size: var(--text-label);   line-height: 1.5; }
.text-tag     { font-size: var(--text-tag);     line-height: 1.5; letter-spacing: 0.02em; }
.text-stat    { font-size: var(--text-stat);    line-height: 1.2; letter-spacing: -0.01em; }

.color-mid  { color: var(--mid); }
.color-dark { color: var(--dark); }

/* ── Page wrapper ── */
.page-content {
  max-width: calc(var(--content-max) + var(--page-margin) * 2);
  margin: 0 auto;
  padding: 0 var(--page-margin);
}

/* ── Section spacing ── */
.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: var(--section-gap);
  padding-bottom: 2.5rem;
}

.section-header__date {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--mid);
}

/* ── Tags / Pills ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0.25rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-tag);
  font-family: var(--font-mono);
  font-size: var(--text-tag);
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--black);
  background: transparent;
  border-color: var(--sand);
}

.tag--filled {
  background-color: var(--sand);
  border-color: var(--sand);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-body);
  letter-spacing: 0.025em;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn--black {
  background-color: var(--black);
  color: var(--white);
}

.btn--outline {
  border: 1px solid var(--black);
  color: var(--black);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

.divider--black {
  background: var(--black);
}

/* ── Image cover container ── */
.img-cover {
  overflow: hidden;
  position: relative;
}

.img-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.img-cover:hover img {
  transform: scale(1.03);
}
