/*-- -------------------------- -->
<---           Fonts             -->
<--- -------------------------- -*/

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham-300.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham-regular-italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*-- -------------------------- -->
<---        Global Tokens        -->
<--- -------------------------- -*/

/* Palette: matched to the SO Studio reference Jacob sent -- near-black ink,
   warm cream, forest green, mustard, and a rust/burnt-orange accent, with
   two extra one-off decorative hues (blue, brick red) for the confetti-style
   shapes on the hero. Token names follow the same convention as the client
   template (--navy, --secondary, etc.) even where the literal colour isn't
   navy, since that's just "the site's ink colour" in this system. */
:root {
  --primary: #2f4d3a;
  --primaryDark: #1f3a2e;
  --primaryLight: #c9d6c2;
  --secondary: #dba514;
  --secondaryDark: #b8890a;
  --secondaryLight: #f3e3b0;
  --headerColor: #1c1a16;
  --bodyTextColor: #4a453c;
  --bodyTextColorWhite: #faf7f2;
  --navy: #1c1a16;
  --accentText: #c1602e;
  --accentTextDark: #9c4b25;
  --accentBlue: #3b5a8a;
  --accentRed: #b03a2e;
  --cream: #efe9d8;
  --footerBg: #1c1a16;

  /* Tileable grayscale fractal-noise SVG, layered over a flat colour with
     background-blend-mode: overlay to give hero shapes a mottled, painted
     grain instead of a flat vector fill. Paired with the #cs-paint-edge
     filter (defined inline in index.html) for the rough-cut edges. */
  --cs-paint-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Same idea, lower-opacity, for washing a flat background in a subtle
     charcoal grain rather than the bolder grain used on the shapes. */
  --cs-charcoal-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)' opacity='0.4'/%3E%3C/svg%3E");

  --headingFont: 'Corben', serif;
  --bodyFont: 'Gotham', sans-serif;

  --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
  --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem);
  --bodyFontSize: 1rem;
  --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--bodyFont);
}

button, input, textarea, select {
  font-family: inherit;
}

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

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

/* Nav text */
#cs-navigation .cs-li-link {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 13px;
  line-height: 21.45px;
  letter-spacing: 1.04px;
  word-spacing: 0;
}

/*-- -------------------------- -->
<---            Logo            -->
<--- -------------------------- -*/

#cs-navigation .cs-logo {
  gap: 0.625rem;
  text-decoration: none;
}

.cs-logo-text {
  font-family: var(--headingFont);
  font-size: clamp(1.5rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
}

.cs-logo-text span {
  color: var(--secondaryDark);
}

/*-- -------------------------- -->
<---          Button 1          -->
<--- -------------------------- -*/

.cs-button-solid {
  font-family: var(--bodyFont);
  font-size: 13px;
  font-weight: 700;
  line-height: 3rem;
  letter-spacing: 1.04px;
  word-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  min-width: 9.375rem;
  margin: 0;
  padding: 0 2rem;
  background-color: var(--navy);
  color: #fff;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.cs-button-solid:before {
  content: "";
  width: 0%;
  height: 100%;
  background: var(--primaryDark);
  opacity: 1;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: width 0.3s;
}

.cs-button-solid:hover:before {
  width: 100%;
}

.cs-button-solid:hover {
  color: #fff;
}

/*-- -------------------------- -->
<---          Button 2          -->
<--- -------------------------- -*/

.cs-button-outline {
  font-family: var(--bodyFont);
  font-size: 13px;
  font-weight: 700;
  line-height: calc(3rem - 4px);
  letter-spacing: 1.04px;
  word-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  min-width: 9.375rem;
  margin: 0;
  padding: 0 2rem;
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  box-sizing: border-box;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s, border-color 0.3s;
}

.cs-button-outline:before {
  content: "";
  width: 0%;
  height: 100%;
  background: var(--navy);
  opacity: 1;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: width 0.3s;
}

.cs-button-outline:hover {
  color: #fff;
}

.cs-button-outline:hover:before {
  width: 100%;
}

/*-- -------------------------- -->
<---       Button Group         -->
<--- -------------------------- -*/

.cs-button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/*-- -------------------------- -->
<---      Shared Content         -->
<--- -------------------------- -*/

.cs-topper {
  font-size: var(--topperFontSize);
  line-height: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accentText);
  margin: 0 0 1rem;
  display: block;
}

.cs-title {
  font-family: var(--headingFont);
  font-size: var(--headerFontSize);
  font-weight: 400;
  line-height: 1.2em;
  margin: 0 0 1rem;
  color: var(--navy);
}

.cs-title em {
  color: var(--accentTextDark);
  font-style: italic;
}

.cs-text {
  font-family: var(--bodyFont);
  font-size: var(--bodyFontSize);
  line-height: 1.6em;
  width: 100%;
  max-width: 40.625rem;
  margin: 0;
  color: var(--bodyTextColor);
}
