/* base.css -- Custom properties, reset, fonts */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Work+Sans:wght@400;500;600;700&display=swap');

/* ── Custom Properties ── */
:root {
  /* Colours */
  --c-bg: #0C0F14;
  --c-surface: #151820;
  --c-surface-2: #1D2028;
  --c-text: #EDE9E3;
  --c-text-dim: #8E8A82;
  --c-accent: #9B3557;
  --c-accent-hover: #B8476C;
  --c-accent-sec: #D4C9A8;
  --c-accent-sec-text: #E0D6BA;
  --c-border: #1E2128;
  --c-win: #3B8868;
  --c-loss: #C44B4B;
  --c-error: #C44B4B;

  /* Typography */
  --f-heading: 'Crimson Pro', serif;
  --f-body: 'Work Sans', sans-serif;

  /* Spacing */
  --s-4: 0.25rem;
  --s-8: 0.5rem;
  --s-12: 0.75rem;
  --s-16: 1rem;
  --s-20: 1.25rem;
  --s-24: 1.5rem;
  --s-32: 2rem;
  --s-40: 2.5rem;
  --s-48: 3rem;
  --s-64: 4rem;
  --s-80: 5rem;
  --s-96: 6rem;

  /* Radius */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 8px;

  /* Transition */
  --dur: 240ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-w: 1200px;
  --header-h: 64px;
}

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

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

body {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--c-accent-hover);
}

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  line-height: 1.2;
  color: var(--c-text);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
}

p + p {
  margin-top: 1rem;
}
