/*
 * Buscher global styles
 */

/* Local fonts
--------------------------------------------- */

/* Local fonts
--------------------------------------------- */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald/Oswald-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

/* 1. Global variables
--------------------------------------------- */

:root {
  /* Colors */
  --color-background: #0b0b0b;
  --color-surface: #141414;
  --color-surface-light: #1c1c1c;

  --color-gold: #c9a55c;
  --color-gold-light: #e0c27a;
  --color-gold-dark: #9f7d3b;

  --color-text: #f3f0e8;
  --color-text-muted: #b5b1a8;
  --color-border: rgba(201, 165, 92, 0.28);

  /* Typography */
  --font-heading: "Oswald", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  /* Font sizes */
  --font-size-small: 0.875rem;
  --font-size-body: 1rem;
  --font-size-lead: 1.125rem;

  --font-size-h1: clamp(2.75rem, 7vw, 5.5rem);
  --font-size-h2: clamp(2rem, 5vw, 3.75rem);
  --font-size-h3: clamp(1.375rem, 3vw, 2rem);
  --font-size-h4: 1.25rem;

  /* Layout */
  --container-width: 75rem;
  --container-padding: 1.25rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Other */
  --radius-small: 0.25rem;
  --radius-medium: 0.5rem;
  --transition: 180ms ease;
}

/* 2. Base typography
--------------------------------------------- */

body {
  min-height: 100vh;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
 
h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

p {
  margin-block: 0;
  /* max-width: 70ch; */
  color: var(--color-text);
  font-size: var(--font-size-body);
  line-height: 1.7;
}

p + p {
  margin-top: var(--space-sm);
}

.lead {
  max-width: 60ch;
  color: var(--color-text-muted);
  font-size: var(--font-size-lead);
  line-height: 1.7;
}

.eyebrow {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: var(--font-size-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

small {
  font-size: var(--font-size-small);
}

strong,
b {
  font-weight: 700;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold-light);
}

::selection {
  background-color: var(--color-gold);
  color: var(--color-background);
}

/* 3. Global layout
--------------------------------------------- */

.container {
  width: min(
    calc(100% - (var(--container-padding) * 2)),
    var(--container-width)
  );
  margin-inline: auto;
}

.section {
	padding-block: 2.25rem;
}

.section--surface {
  background-color: var(--color-surface);
}

.section-heading {
  max-width: 50rem;
  margin-bottom: var(--space-lg);
}

.section-heading h2 {
  margin-bottom: var(--space-sm);
}

/* 4. Responsive global styles
--------------------------------------------- */

@media (max-width: 48rem) {
  :root {
    --container-padding: 1rem;
    --space-lg: 3rem;
    --space-xl: 4.5rem;
	}

	.section {
		padding-block: 1.75rem;
	}
}
