/*
 * SK Finance — base reset and typography.
 * Depends on tokens.css.
 */

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

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg);
  font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  padding-left: var(--sp-4);
}

/* ── Skip link ───────────────────────────────────────────────────────────── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--sp-6);
  z-index: 9999;
  padding: var(--sp-2) var(--sp-6);
  background: var(--gold);
  color: var(--surface-1);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-to-content:focus {
  top: var(--sp-4);
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 18px;
  line-height: 1.35;
}

p {
  margin: 0 0 1em;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--gold-light);
}

strong, b {
  font-weight: 600;
  color: var(--text-primary);
}

small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Tabular numerals for financial figures */
.tabular {
  font-feature-settings: "tnum";
}

/* ── Eyebrow label ───────────────────────────────────────────────────────── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: inline-block;
  margin-bottom: var(--sp-4);
}

/* ── Lead text ───────────────────────────────────────────────────────────── */
.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: 400;
}

@media (max-width: 768px) {
  .lead {
    font-size: 18px;
  }
}

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

/* ── Section base ────────────────────────────────────────────────────────── */
section {
  padding: var(--section-pad-desktop) 0;
  position: relative;
}

@media (max-width: 1024px) {
  section {
    padding: var(--section-pad-tablet) 0;
  }
}

@media (max-width: 640px) {
  section {
    padding: var(--section-pad-mobile) 0;
  }
}

/* ── Section head ────────────────────────────────────────────────────────── */
.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--sp-16);
}

.section-head h2 {
  margin-bottom: var(--sp-4);
}

.section-head p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Dividers ────────────────────────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-8) 0;
}

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

/* ── 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-width: 0;
}

/* ── WP core alignment helpers ───────────────────────────────────────────── */
.alignleft  { float: left;  margin-right: var(--sp-6); }
.alignright { float: right; margin-left:  var(--sp-6); }
.aligncenter { display: block; margin-inline: auto; text-align: center; }

/* ── WP captions ─────────────────────────────────────────────────────────── */
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--sp-2);
}
