/*
 * MARK: Transitions
 * Keeps transitions from happening on page load
 */

body {
  --transition-duration-15: 0s;
  --transition-duration-30: 0s;
  transition: all var(--transition-duration-15) ease;
}

body.enable-transitions {
  --transition-duration-15: 0.15s;
  --transition-duration-30: 0.30s;
}

/* 
 * MARK: Colors
 */

:root {
  --orange-color: #943D33;
  --maroon-color: #722E26;
  --grey-50-color: rgba(0,0,0,0.5);
  --grey-40-color: rgba(0,0,0,0.1);
  --grey-10-color: rgba(0,0,0,0.1);


  --grey-color: #878F99;
  --dark-color: #212329;
  --light-grey-color: #F2F2F2;
  --beige-color: #F1F0EC;
  --beige-dark-color: #D9D6CE;

  --accent-color: #943D33;
  --accent-color-opposite: #FFFFFF;

  --background-color: #FFFFFF;
  --background-color-0: #FFFFFF00;

  --foreground-color: #212329;
  --foreground-color-5: #2123290D;
  --foreground-color-15: #21232926;
  --foreground-color-25: #21232940;
  --foreground-color-33: #21232954;
  --foreground-color-50: #21232980;
}

/* @media (prefers-color-scheme: dark) {
  :root {
    --blue-color: rgb(0, 99, 247);
    --grey-color: #878F99;
    --dark-color: #212329;
    --beige-color: #F1F0EC;
    --beige-dark-color: #D9D6CE;
  
    --accent-color: rgb(0, 99, 247);
    --accent-color-opposite: #212329;
  
    --background-color: #212329;
    --background-color-0: #21232900;
  
    --foreground-color: #FFFFFF;
    --foreground-color-5: #FFFFFF0D;
    --foreground-color-15: #FFFFFF26;
    --foreground-color-25: #FFFFFF40;
    --foreground-color-33: #FFFFFF54;
    --foreground-color-50: #FFFFFF80;
  }
} */

::selection {
  background: var(--accent-color);
  color: var(--accent-color-opposite);
}

.muted {
  color: var(--grey-color);
}

/* 
 * MARK: Typography
 */

.sans, body, article .sans p, 
             article .sans ol, 
             article .sans ul {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "slnt" 0;

  font-size: 1.4rem;
  line-height: 1.4;
}

.serif {
  font-family: "Andada Pro", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.serif-2 {
  font-family: "Crimson Pro", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;

  font-size: 1.8rem;
  line-height: 1.25;
}

.mono {
  font-family: ServerMono, mono;
  font-weight: 400;
  font-style: normal;
}

code {
  background-color: #f4f4f4;
  border-radius: 4px;
  color: #333;
  font-family: ServerMono, 'Courier New', Courier, monospace;
  font-size: 0.9em;
  padding: 2px 4px;
}

pre code {
  display: block;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  overflow-x: auto;
  line-height: 1.4;
}

b,
strong,
.strong {
  font-weight: bold;
}

.italic {
  font-style: italic;
}

.underline {
  text-decoration: underline;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 14px;
  font-size: 1.4rem;

  color: var(--foreground-color);
  background: var(--background-color);
}

p,
h2, h3, h4 {
  margin: 0;
  margin-bottom: 1.2rem;
}

.no-margin {
  margin: 0;
}

a:not(.no-link-style) {
  color: var(--foreground-color);
  text-decoration: underline;
  transition: color 0.15s ease;
}

a:not(.no-link-style):hover {
  color: var(--accent-color);
}

a.no-link-style {
  color: var(--foreground-color);
  text-decoration: none;
}

a.no-underline {
  text-decoration: none;
}

a[disabled] {
  opacity: 0.5;
  pointer-events: none;
  text-decoration: none;
}

.bold {
  font-weight: bold;
}

.small {
  font-size: 1.2rem;
}

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

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

@media (max-width: 760px) {
  .text-center_sm {
    text-align: center;
  }
}

article .sans ul,
article .sans ol {
  padding-left: 0;
  margin-left: 0;
}

img {
  max-width: 100%;
}

/* 
 * MARK: Layout
 */

.container {
  width: 103.0rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

/* .container-xl {
  width: 110.0rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
} */

.container-full {
  width: 100%;
  padding: 1.5rem;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

@media (max-width: 760px) {
  .static_sm {
    position: static;
  }
}

.hide {
  display: none;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.justify-space {
  justify-content: space-between;
}

.justify-space-around {
  justify-content: space-around;
}

.justify-stretch {
  justify-content: stretch;
}

@media (max-width: 760px) {
  .justify-space_sm {
    justify-content: space-between;
  }
}

.align-start {
  align-items: start;
}

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

.align-end {
  align-items: end;
}

.flex-equal > * {
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
}

.spacer {
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-col_sm {
  flex-direction: row;
}

@media (max-width: 760px) {
  .flex-col_sm {
    flex-direction: column;
    align-items: stretch;
  }

  .flex-row_sm {
    flex-direction: row;
  }

  .order-first_sm {
    order: -1;
  }

  .order-second_sm {
    order: 2;
  }

  .order-third_sm {
    order: 3;
  }

  .align-center_sm {
    align-items: center;
  }
}

.grow {
  flex-grow: 1;
}

.justify-between {
  justify-content: space-between;
}

.gap-0 {
  gap: 0;
}

.gap-1 {
  gap: 1em;
}

.gap-2 {
  gap: 2em;
}

.gap-3 {
  gap: 3em;
}

.gap-4 {
  gap: 4em;
}

.gap-16px {
  gap: 16px;
}

.gap-32px {
  gap: 32px;
}

.gap-64px {
  gap: 64px;
}

.gap-5px {
  gap: 5px;
}

.gap-1rem {
  gap: 1rem;
}

.gap-2rem {
  gap: 2rem;
}

@media (max-width: 760px) {
  .gap-0_sm {
    gap: 0;
  }

  .gap-1rem_sm {
    gap: 1rem;
  }

  .gap-3rem_sm {
    gap: 3rem;
  }
}

.space-6 {
  width: 6px;
  height: 6px;
}

.space-8 {
  width: 8px;
  height: 8px;
}

.space-12 {
  width: 12px;
  height: 12px;
}

.space-24 {
  width: 24px;
  height: 24px;
}

.space-48 {
  width: 48px;
  height: 48px;
}

.space-72 {
  width: 72px;
  height: 72px;
}

.space-100 {
  width: 100px;
  height: 100px;
}

@media (max-width: 760px) {
  .space-72 {
    width: 56px;
    height: 56px;
  }

  .space-100 {
    width: 72px;
    height: 72px;
  }

  .block_sm {
    display: block;
  }
}

@media (max-width: 760px) {
  .hide_sm {
    display: none;
  }
}

@media (min-width: 761px) {
  .hide_lg {
    display: none;
  }
}

/* 
 * MARK: Elements
 */

hr {
  background: none;
  border: none;

  border-top: 1px solid var(--foreground-color-15);
}

input.rounded,
textarea.rounded,
button.rounded,
a.rounded {
  -webkit-appearance: none;
  display: block;
  /* box-sizing: border-box; */
  text-decoration: none;
  border: none;
  margin: 0;
  background: var(--beige-color);
  color: var(--foreground-color);
  border-radius: 8px;
  padding: 10px;

  font-size: 14px;
  line-height: 16px;
}

button.rounded,
input[type="checkbox"],
a.rounded {
  padding: 10px 15px;
  font-weight: 500;

  transition: background-color 0.15s ease,
              color 0.15s ease;
}

.rounded.large {
  font-size: 1.6rem;
  line-height: 1.8rem;
  padding: 1.4rem 1.8rem;
}

.rounded.primary {
  background: var(--accent-color-opposite);
  color: var(--accent-color);
}


button.rounded:hover,
input[type="checkbox"]:hover,
a.rounded:hover {
  background: var(--accent-color);
  color: var(--accent-color-opposite);
}

input[type="checkbox"].rounded {
  position: relative;
  cursor: pointer;
}

input[type="checkbox"].rounded:checked::after {
  content: "\2713"; /* Unicode checkmark character */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.4rem;
  color: var(--foreground-color);
}


/**
 * MARK: Shared 
 */

/* Videos & embeds */

.image-container {
  display: flex;
  gap: 1.2rem;
}

.image-container img {
  max-width: 100%;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer */

footer a:not(:hover),
footer i {
  color: var(--grey-50-color) !important;
}