/* ============================================================
   Mark Anupom Mollick — Base
   Self-hosted fonts, reset, element defaults, utilities.
   Load order: tokens.css → base.css → components.css
   ============================================================ */

/* ---- Fonts (self-hosted WOFF2, /assets/fonts/) -------------- */
@font-face {
  font-family: "Visby CF";
  src: url("../assets/fonts/visbycf-light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Visby CF";
  src: url("../assets/fonts/visbycf-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Visby CF";
  src: url("../assets/fonts/visbycf-medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Visby CF";
  src: url("../assets/fonts/visbycf-demibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Visby CF";
  src: url("../assets/fonts/visbycf-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Visby CF";
  src: url("../assets/fonts/visbycf-extrabold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Dhanikans Signature";
  src: url("../assets/fonts/signature-script.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---- Motion kill switch -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Selection / focus ---------------------------------------- */
::selection { background: var(--gold-500); color: var(--char-950); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--gold-500);
  color: var(--char-950);
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---- Headings & text ------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--color-ink);
  line-height: var(--lh-head);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; }

p { max-width: 68ch; }

a {
  color: var(--color-accent-hi);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--gold-300); }

strong { color: var(--color-ink); font-weight: 700; }

hr {
  border: none;
  height: 1px;
  background: var(--color-line);
  margin: var(--sp-7) 0;
}

/* ---- Utilities -------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); }
.container--wide   { width: min(100% - 2.5rem, var(--container-wide)); }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--color-surface); }
.section--deep {
  background: var(--grad-band);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.section--paper {
  background: var(--paper-bg);
  color: var(--paper-body);
}
.section--paper h1, .section--paper h2,
.section--paper h3, .section--paper h4 { color: var(--paper-ink); }
.section--paper strong { color: var(--paper-ink); }
.section--paper a { color: var(--gold-700); }
.section--paper a:hover { color: var(--gold-800); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-body);
}
.section--paper .lead { color: var(--paper-body); }

.grad-text {
  background: var(--grad-gold-bright);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section--paper .grad-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; }

/* Wordmark — Dhanikans signature. ONLY ever renders the name "Mark Anupom Mollick",
   and only in special placements. Never headings, body, or the tagline. */
.wordmark {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-script);
  line-height: 1.25;
  color: var(--gold-500);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.section--paper .wordmark { color: var(--gold-600); }

/* Tagline — "You're Just One IDEA Away..." — always exact, in Visby, NEVER Dhanikans. */
.tagline {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-lead);
  letter-spacing: 0.02em;
  color: var(--gold-300);
}
.section--paper .tagline { color: var(--gold-700); }

/* Signature swash divider */
.swash-divider {
  border: none;
  height: 12px;
  margin: var(--sp-7) auto;
  width: 7.5rem;
  background: var(--motif) center / contain no-repeat;
}

/* Motif list — gold diamond bullets */
.motif-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.motif-list li {
  padding-left: 1.5rem;
  position: relative;
}
.motif-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--motif-dot) center / contain no-repeat;
}

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
