:root {
  --dark-bg: #fafafa;
  --dark-text: #444;
  --dark-doc-bg: #ffffff;
  --dark-light-bg: #ccc;
}

@font-face {
  font-family: "headline";
  src: url('fonts/advocate_ot_14_cond_reg.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "heliotrope";
  font-style: normal;
  font-weight: normal;
  font-stretch: normal;
  font-display: auto;
  src: url('fonts/heliotrope_ot_4_medium.woff2') format('woff2');
}

@font-face {
  font-family: "heliotrope";
  font-style: italic;
  font-weight: normal;
  font-stretch: normal;
  font-display: auto;
  src: url('fonts/heliotrope_ot_4_medium_italic.woff2') format('woff2');
}

@font-face {
  font-family: "heliotrope";
  font-style: normal;
  font-weight: bold;
  font-stretch: normal;
  font-display: auto;
  src: url('fonts/heliotrope_ot_6_semibold.woff2') format('woff2');
}

@font-face {
  font-family: "heliotrope";
  font-style: italic;
  font-weight: bold;
  font-stretch: normal;
  font-display: auto;
  src: url('fonts/heliotrope_ot_6_semibold_italic.woff2') format('woff2');
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: min(22px, max(16px, 2.4vw));
}

body {
  font-family: "heliotrope";
  font-feature-settings: 'ss01';
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1500px;
  -webkit-font-smoothing: subpixel-antialiased;
  background: #fafafa;
  color: #444;
  line-height: 1.4;
  padding-top: 2rem; 
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

html, body {
  height: 100%; 
}


#countdown-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #222;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0;
  z-index: 1000;
}

#countdown-banner .block {
  display: flex;
  align-items: baseline;
  margin: 0 0.75rem;
  gap: 0.25rem;
}

#countdown-banner .value {
  font-size: 1.25rem;
  font-weight: bold;
}

#countdown-banner .label {
  font-size: 0.75rem;
  text-transform: uppercase;
}

#doc {
  background: white;
  border: 0 solid #aaa;
  border-top: 0;
  width: auto;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 3rem;
  flex: 1;
}

#doc img {
  display: block;
  width: 75%;
  max-width: 100%;
  border: 1px solid #ccc;
  margin: 0 auto;
  margin-top: 0.5rem;
}

h1, h2, h3, .date {
  margin-bottom: 0.5em;
}

h1, h2 {
  line-height: 1.2em;
}

h1 {
  font-family: "headline";
  font-size: 2.6em;
  line-height: 0.9em;
  font-weight: lighter;
  font-feature-settings: 'case' 1;
  text-transform: uppercase;
}

.date {
  font-size: 1em;
  font-feature-settings: 'smcp' 1, 'c2sc' 1, 'ss01' 1;
  font-weight: bold;
}

h1 + .date {
  margin-top: -0.25em;
}

@media (min-aspect-ratio: 2/3) and (min-width: 800px) {
  #doc {
    max-width: 900px;
    gap: 2rem;
  }
}

@media all and (max-width: 600px) {
  #doc {
    padding: 1rem;
  }
}

#main-footer {
  font-family: "headline";
  position: static;
  margin-top: auto;
  text-align: center;
  padding: 0.5rem 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#main-footer p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.post-index {
  margin-bottom: 1.5rem;
}

.maple-leaf-icon {
  width: 1.2rem; 
  height: auto;
}

ul, ol {
  padding-left: 2em;
}

ol li, ul li {
  padding-left: -2em;
  list-style: none;
}

ul li::before {
  position: absolute;
  font-size: 1; 
  margin-left: -2em;
  content: "⁂";
}

ol li::before {
  float: left;
  position: relative;
  font-size: 1.3em;
  margin-left: -1.6em;
  top: -0.1em;
  counter-increment: foobar;
  content: counter(foobar);
  font-family: "concourse-index";
  font-feature-settings: 'ss01' 0;
}

a, a:visited {
  color: #0066B2;
  text-decoration: none;
}

a.subhead {
  color: inherit;
}

a:hover, a.chron-index:hover {
  opacity: 0.5;
}

p, div.p, blockquote, li {
  margin-bottom: 1rem;
  line-height: 1.42;
}

.highlight {
  margin: 0 -0.4em;
  padding: 0.01em 0.4em;
  border-radius: 0.8em 0.3em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgba(255, 0, 0, 0.1),
    rgba(255, 0, 0, 0.7) 4%,
    rgba(255, 0, 0, 0.3)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

table {
  border-collapse: collapse;
  font-size: 0.8rem;
  border: none;
  /* display: block; */
  /* overflow-y: auto; */
  /* white-space: nowrap; */
}

td, th {
  padding: 10px 20px;
}

th {
  font-feature-settings: 'smcp' 1, 'c2sc' 1, 'ss01' 1;
  font-weight: bold;
  padding-top: 1em;
  padding-bottom: 1em;
  border-bottom: 0.1em solid var(--dark-text);
}

td {
  padding-top: 1em;
  padding-bottom: 1em;
}

tr {
  border-bottom: 1px solid var(--dark-light-bg);
}

tr:last-child {
  border-bottom: none;
}