:root {
  --gap: 16px;
}

/************ ELEMENTS ************/

body {
  background-color: #000;
  color: #f8f9fa;
  margin: 0;
  font-family: Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2; /* Adjust between 1.1 and 1.3 as needed */
}

h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5em;
}

h3 {
  margin-top: 0;
  font-size: 1.5em;
}

p {
  margin: 0 0 1rem 0;
}

p.no-gap {
  margin-bottom: 0;
}

/************ END ELEMENTS ************/


/************ LAYOUT ************/

/* Centered page wrapper with uniform horizontal gutters */
.wrapper {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px; /* inset/gutter */
  box-sizing: border-box;
}

/* Reusable card look for header, footer, and content cards */
.card {
  border: none; /* remove border */
  border-radius: 8px;
  background: #f9f9f9;
  padding: 16px;
  box-sizing: border-box;
  color: #000; /* black text */
}

.card.bg1 {
  background-color: #f8f9fa;
} /* light grey */

.card.bg2 {
  background-color: #fff44f;
} /* lemon */

.card.bg3 {
  background-color: #c41e3a;
  color: #f8f9fa;
} /* cardinal */

.card.bg4 {
  background-color: #0047ab;
  color: #f8f9fa;
} /* cobalt */

/* Header inner layout now vertical */
.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* Logo styling */
.site-logo {
  max-height: 50px;
  width: auto;
  display: block;
}

/* Brand line styling */
.brand {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.3px;
}

/* Navigation links centered */
.site-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Nav links styled for dark header */
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover {
  text-decoration: underline;
}

/* Header / Footer inner layout */
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

/* Footer tweaks */
.site-footer__inner {
  justify-content: center;
  color: #ccc;
  font-size: 0.9rem;
}

/* Spacing around header/footer cards */
.header-block {
  margin-block: 20px;
}
.footer-block {
  margin-block: 20px;
}

.card.header-block,
.card.footer-block {
  background: #000;
  border: none;
  color: #f8f9fa;
}

/************ END LAYOUT ************/


/************ BREAKPOINTS ************/

/* Base flex layout */
.layout {
  display: flex;
  gap: var(--gap, 16px);
  align-items: stretch;
}

/* Columns can hold multiple cards */
.col {
  display: flex;
  flex-direction: column;
  gap: var(--gap, 16px);
  min-width: 0;
}

/* ==================== 1 COLUMN (≤600px) ==================== */
@media (max-width: 600px) {
  .layout { flex-direction: column; }

  /* Col 1: full width */
  .col--1 { flex: 0 1 100%; }

  /* The stack becomes a real column and fills full width */
  .stack {
    display: flex;
    flex-direction: column;
    gap: var(--gap, 16px);
    flex: 0 1 100%;
    min-width: 0;
  }
  .stack > .col { flex: 0 1 100%; }
}

/* ==================== 2 COLUMNS (601–900px) ==================== */
/* Left = 50%, Right = 50%, both gap-aware so the outer gap doesn't push the right edge */
@media (min-width: 601px) and (max-width: 900px) {
  .layout { flex-direction: row; gap: var(--gap,16px); }

  .col--1 {
    flex: 0 0 calc((100% - var(--gap,16px)) / 2);
    min-width: 0;
  }

  .stack {
    display: flex;
    flex-direction: column; /* 2 & 3 stacked */
    gap: var(--gap,16px);
    flex: 0 0 calc((100% - var(--gap,16px)) / 2);
    min-width: 0;
  }
}

/* ==================== 3 COLUMNS (>900px) ==================== */
/* Col 1 = 1/3; the .stack takes 2/3 and lays out its children side-by-side (1/3 each) */
@media (min-width: 901px) {
  .layout { 
    flex-direction: row; 
    gap: var(--gap,16px); 
  }

  /* Column 1 locked to one-third (gap-aware) */
  .col--1 {
    flex: 0 0 calc((100% - 2 * var(--gap,16px)) / 3);
    min-width: 0;
  }

  /* -------- SEPARATE MODE (3 distinct columns) -------- */
  .stack.stack--flatten,
  .stack.stack-flatten {
    display: flex;
    flex-direction: row;
    gap: var(--gap,16px);
    flex: 0 0 calc(2 * (100% - 2 * var(--gap,16px)) / 3 + var(--gap,16px));
    min-width: 0;
  }

  /* Each inner column is 1/3 total width in flatten mode */
  .stack.stack--flatten > .col,
  .stack.stack-flatten > .col {
    flex: 0 0 calc((100% - var(--gap,16px)) / 2);
    min-width: 0;
  }

  /* -------- GROUPED MODE (cols 2+3 stacked in right 2/3) -------- */
  .stack.stack--grouped {
    display: flex;
    flex-direction: column;   /* stack col-2 over col-3 */
    gap: var(--gap,16px);
    flex: 0 0 calc(2 * (100% - 2 * var(--gap,16px)) / 3 + var(--gap,16px));
    min-width: 0;
  }

  /* Col-2 and Col-3 both fill full 2/3 width inside grouped area */
  .stack.stack--grouped > .col {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
  }
}

/************ END BREAKPOINTS ************/


/************ FONTS ************/

.inknut-antiqua-light {
  font-family: "Inknut Antiqua", serif;
  font-weight: 300;
  font-style: normal;
}

.inknut-antiqua-regular {
  font-family: "Inknut Antiqua", serif;
  font-weight: 400;
  font-style: normal;
}

.inknut-antiqua-medium {
  font-family: "Inknut Antiqua", serif;
  font-weight: 500;
  font-style: normal;
}

.inknut-antiqua-semibold {
  font-family: "Inknut Antiqua", serif;
  font-weight: 600;
  font-style: normal;
}

.inknut-antiqua-bold {
  font-family: "Inknut Antiqua", serif;
  font-weight: 700;
  font-style: normal;
}

.inknut-antiqua-extrabold {
  font-family: "Inknut Antiqua", serif;
  font-weight: 800;
  font-style: normal;
}

.inknut-antiqua-black {
  font-family: "Inknut Antiqua", serif;
  font-weight: 900;
  font-style: normal;
}

p, ul,
.domine-regular {
  font-family: "Domine", serif;
  font-weight: 400;
  font-style: normal;
}

.domine-medium {
  font-family: "Domine", serif;
  font-weight: 500;
  font-style: normal;
}

.domine-semibold {
  font-family: "Domine", serif;
  font-weight: 600;
  font-style: normal;
}

.domine-bold {
  font-family: "Domine", serif;
  font-weight: 700;
  font-style: normal;
}

.baloo-regular {
  font-family: "Baloo 2", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.baloo-medium {
  font-family: "Baloo 2", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.baloo-semibold {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-style: normal;
}

h2, h3, h4, h5, h6,
.baloo-bold {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.baloo-extrabold {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-style: normal;
}

/************ END FONTS ************/


/************ MODIFIERS ************/

.text-center {
  text-align: center;
}


/************ END MODIFIERS ************/

