@import 'mediavine.css';

:root {
  /* TODO: Switch to comma separated values to programmatically apply alpha */
  --btk-main-color: #ffdd36ff;
  --btk-main-alpha-light: #ffdd3622;
  --btk-main-alpha-medium: #ffdd3655;
  --btk-stroke-width: 3px;
  --btk-black-alpha-light: #0002;
  --btk-secondary-color: #63474d;
  --btk-secondary-alpha-light: #63474d22;
  --btk-dark-color: #222;
  --btk-light-color: #fff;
  --btk-background-color: var(--btk-light-color);
  --btk-foreground-color: var(--btk-dark-color);
  --btk-foreground-alpha-light: #2221;
  --btk-foreground-alpha-medium: #2222;
  --btk-foreground-alpha-dark: #2228;
  /*
  --btk-back-button-width: 10px;
  --btk-back-button-spacing: 6px;
  --btk-bottom-nav-height: 80px;
  */
  --btk-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --number-size: 40px;
  --gutter-factor: 0.5;
  --bullet-size: 0.5em;
  --display-font: 'EB Garamond', serif;
  --body-font: 'Raleway', sans-serif;
  --navigation-z: 9999999999;
  --mobile-nav-height: 60px;
}

html, body {
  min-height: 100vh;
}

body {
  background-color: var(--btk-background-color);
  color: var(--btk-foreground-color);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.75;
}

::selection {
  background: var(--btk-main-alpha-medium);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  font-weight: 500;
  line-height: 1.25;
}

h1 { font-size: 3.00rem; }
h2 { font-size: 2.50rem; }
h3 { font-size: 2.00rem; }
h4 { font-size: 1.50rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.10rem; }

h1, h2, h3, h4, h5, h6, p {
  margin-bottom: 1.5rem;
}

h1.with-separator,
h2.with-separator,
h3.with-separator,
h4.with-separator,
h5.with-separator,
h6.with-separator {
  display: flex;
  gap: 0.75em;
  align-items: center;
}

h1.with-separator::after,
h2.with-separator::after,
h3.with-separator::after,
h4.with-separator::after,
h5.with-separator::after,
h6.with-separator::after {
  content: '';
  display: inline-block;
  height: 1px;
  background: var(--btk-black-alpha-light);
  flex-shrink: 1;
  flex-grow: 1;
}

button, input[type="submit"], input[type="image"] {
  cursor: pointer;
}

.icon {
  display: inline-block;
}

svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

strong, b {
  font-weight: 600;
}

h1 *,
h2 *,
h3 *,
h4 *,
h5 *,
h6 * {
  font-weight: inherit;
  font-style: inherit;
  text-decoration: inherit;
}

em, i {
  font-style: italic;
}

ul, ol {
  list-style: none;
}

ul:not(.no-bullet) {
  padding-left: var(--bullet-size);
}

ul li {
  margin-bottom: 0.75em;
}

ul:not(.no-bullet) li:not(.no-bullet)::before {
  content: '';
  background: var(--btk-main-color);
  border-radius: 50%;
  display: inline-block;
  margin-right: var(--bullet-size);
  vertical-align: baseline;
  width: var(--bullet-size);
  height: var(--bullet-size);
}

ol {
  counter-reset: ol-counter;
}

ol:not(.no-bullet)>li:not(:only-child):not(.no-bullet) {
  counter-increment: ol-counter;
  position: relative;
  padding-left: calc((1 + var(--gutter-factor)) * var(--number-size));
  margin-bottom: 30px;
}

ol:not(.no-bullet)>li.no-bullet {
  padding-left: calc((1 + var(--gutter-factor)) * var(--number-size));
}

ol:not(.no-bullet)>li:not(:only-child):not(.no-bullet)::before {
  background: var(--btk-main-color);
  border-radius: 50%;
  font-size: calc(var(--number-size) / 2);
  content: counter(ol-counter);
  color: var(--btk-dark-color);
  font-weight: bold;
  width: var(--number-size);
  height: var(--number-size);
  line-height: var(--number-size);
  display: block;
  text-align: center;
  position: absolute;
  left: 0;
  top: 0;
}

a {
  color: var(--btk-foreground-color);
}

a:focus-visible {
  background-color: var(--btk-main-alpha-light);
  filter: sepia(0.4);
}

a:not(:has(*)) {
  text-decoration: underline solid var(--btk-main-color) var(--btk-stroke-width);
  text-decoration-skip-ink: none;
  font-weight: bold;
}

a:not(:has(*)):hover {
  background-color: var(--btk-main-color);
  color: var(--btk-dark-color);
}

a:not(:has(*)):focus-visible {
  outline: 5px solid var(--btk-main-alpha-light);
  outline-offset: 0;
}

.featured-image {
  width: 100%;
}

.label-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-family: var(--body-font);
  font-weight: 600;
  letter-spacing: 2px;
}

.nowrap {
  white-space: nowrap;
  flex-wrap: nowrap;
}

.implicit-heading {
  visibility: 0;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  :root {
    --btk-background-color: var(--btk-dark-color);
    --btk-foreground-color: var(--btk-light-color);
    --btk-secondary-alpha-light: #0003;
    --btk-foreground-alpha-light: #fff1;
    --btk-foreground-alpha-medium: #fff2;
    --btk-foreground-alpha-dark: #fff8;
  }

  .icon {
    filter: invert(1);
  }
}

@media only screen and (max-width: 500px) {
  :root {
    font-size: 16px;
  }
}

