/* =========================================================
   ROOT VARIABLES
   Design tokens: colors, spacing, layout, typography
   ========================================================= */

:root {

  /* ---------------------------------------------------------
     COLORS
     --------------------------------------------------------- */

  --off-white:   #FBF7F2;
  --beige:       #F4EFEA;
  --medium:      #D6D1CE;
  --medium-dark: #333333;
  --dark:        #111111;
  --black:       #050505;
  --white:       #FEFCFA;

  /* ---------------------------------------------------------
     SPACING SCALE
     --------------------------------------------------------- */

  --space-xxs: 3px;
  --space-xs:  5px;
  --space-sm:  10px;
  --space-md:  20px;
  --space-lg:  46px;
  --space-xl:  86px;
  --space-xxl: 116px;

  /* ---------------------------------------------------------
     CONTAINERS & LAYOUT
     --------------------------------------------------------- */

  --container-sm:   90vw;
  --container-md:   95vw;
  --container-blog: 70vw;
  --container-page: 1000px;
  --container-lg:   1350px;
  --container-xl:   1440px;

  --container-padding: 25px;
  --container-margin:  30px;

  /* ---------------------------------------------------------
     TYPOGRAPHY
     --------------------------------------------------------- */

  --font-base:    "DM Sans", serif;
  --font-display: "DM Serif Display", serif;
  --font-hand:    "Meow Script", cursive;

  --font-size-xxs: 10px;
  --font-size-xs:  12px;
  --font-size-sm:  14px;
  --font-size-md:  16px;
  --font-size-lg:  18px;
  --font-size-xl:  25px;
  --font-size-xxl: 40px;

  /* ---------------------------------------------------------
     TRANSITIONS & MOTION
     --------------------------------------------------------- */

  --transition-fast: 0.3s ease;
  --transition-base: 0.9s ease;

  /* ---------------------------------------------------------
     Z-INDEX LAYERS
     --------------------------------------------------------- */

  --z-menu:    1000;
  --z-modal:   2000;
  --z-overlay: 3000;
}

/* =========================================================
   GLOBAL RESET & DOCUMENT BEHAVIOR
   ========================================================= */

html {
  scroll-behavior: smooth;
  scroll-margin-top: 200px;
}

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

/* =========================================================
   BODY & BASE TEXT
   ========================================================= */

body {
  margin: 0;
  padding: 0;
  padding-top: var(--space-xxl);

  background: var(--off-white);
  color: var(--medium-dark);

  font-family: var(--font-base);
  font-size: 1em;
  line-height: 28px;
}

/* =========================================================
   BASIC ELEMENT RESETS
   ========================================================= */

button {
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
}

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

/* =========================================================
   HEADINGS
   Typographic hierarchy
   ========================================================= */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
}

h1 {
  font-size: 42px;
  line-height: 50px;
}

h2 {
  font-size: 38px;
  line-height: 40px;
}

h3 {
  font-size: 32px;
  line-height: 30px;
}

h4 {
  font-size: 25px;
  line-height: 28px;
}

h5,
h6 {
  font-family: var(--font-hand);
  margin: 0;
  padding: 0;
}

h5 {
  font-size: 40px;
  line-height: 30px;
}

h6 {
  font-size: 20px;
  line-height: 22px;
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */

.center {
  text-align: center;
  padding-bottom: 20px;
}

/* =========================================================
   EDITORIAL ORDERED LISTS
   Custom numeric styling for content
   ========================================================= */

ol {
  list-style: none;
  padding: 0;
  margin: 40px 0;

  counter-reset: editorial;
}

ol li {
  counter-increment: editorial;

  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  align-items: center;

  margin-bottom: 20px;

  font-size: 1rem;
  line-height: 1.7;
  color: var(--medium-dark);
}

/* ---------------------------------------------------------
   Numeric Marker
   --------------------------------------------------------- */

ol li::before {
  content: counter(editorial, decimal-leading-zero);

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--medium);
}

/* =========================================================
   LINKS INSIDE LIST ITEMS
   ========================================================= */

ol li a {
  color: inherit;
  text-decoration: none;
}

ol li a:hover {
  opacity: 0.8;
}
