@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&family=Montserrat:wght@400;500;600&display=swap');
@import url('./variables.css');

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

html, body { height: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-3xl); font-weight: 500; }
h2 { font-size: var(--fs-2xl); font-weight: 500; }
h3 { font-size: var(--fs-xl); font-weight: 500; }
h4 { font-size: var(--fs-lg); font-weight: 500; }

p { color: var(--text-primary); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.muted   { color: var(--text-secondary); }
.serif   { font-family: var(--font-display); }
.center  { text-align: center; }

/* Layout primitives */
.page {
  display: flex;
  min-height: 100vh;
}
.main {
  flex: 1;
  min-width: 0;
  padding: var(--sp-7) var(--sp-7);
  max-width: 1400px;
}
@media (max-width: 960px) {
  .main { padding: var(--sp-5) var(--sp-5); }
}
.main--narrow { max-width: 960px; }
.page-header {
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.page-header__eyebrow { margin-bottom: var(--sp-2); }
.page-header__title   { font-size: var(--fs-2xl); }
.page-header__sub     { margin-top: var(--sp-2); color: var(--text-secondary); font-size: var(--fs-md); }

/* Utilities */
.stack-2 > * + * { margin-top: var(--sp-2); }
.stack-3 > * + * { margin-top: var(--sp-3); }
.stack-4 > * + * { margin-top: var(--sp-4); }
.stack-5 > * + * { margin-top: var(--sp-5); }
.stack-6 > * + * { margin-top: var(--sp-6); }

.row-3 { display: flex; gap: var(--sp-3); align-items: center; }
.row-4 { display: flex; gap: var(--sp-4); align-items: center; }
.row-5 { display: flex; gap: var(--sp-5); align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }

/* Selection */
::selection { background: var(--navy); color: var(--marble); }

/* Scrollbars — subtle */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--silver); border: 3px solid var(--bg-primary); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }
