:root {
  --bg: #FCF1E1;
  --bg-footer: #F9E8A6;
  --title: #8AD1FF;
  --body: #D1EDFF;
  --page: #8AD1FF;
  --logo: #8AD1FF;
  --pmw: 1248px;

  --font-family-title: "Hepta Slab";
  --font-family-body: "Wix Madefor Display";
  
  --font-size-h1: 96px;
  --font-size-h2: 40px;
  --font-size-h2-info: 20px;
  --font-size-h3: 48px;
  --font-letter-spacing: 0px;
  --font-size-body: 24px;
  --logo-width: 128px;
  --max-body-width: 800px;

  --p-0: 4px;
  --p-1: 16px;
  --p-2: 32px;
  --p-3: 48px;
  --p-4: 64px;
  --p-5: 96px;
  --p-6: 128px;
  --p-7: 192px;
  --title-h: 100px;
  --pg: 10px;
  --content-padding: 0px;
  --page-margin: 96px;

  /* Theme colors (light) */
  color-scheme: light;
  --text: #111111;
  --text-muted: #555049;
  --accent: #0070f3;
  --surface: #ffffff;
  --border: #222222;
  --button-bg: #222222;
  --button-bg-hover: #000000;
  --button-text: var(--bg);
  --menu-shadow: rgba(0, 0, 0, 0.04);
  --card-shadow: rgba(0, 0, 0, 0.06);
  --card-shadow-hover: rgba(0, 0, 0, 0.1);
  --error-bg: #fde2e2;
  --error-text: #8a1c1c;
  --paper: transparent;
}

/* Dark theme: follows the system unless the visitor picked a theme (data-theme on <html>) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1a1612;
    --bg-footer: #2e2716;
    --text: #f4ebdd;
    --text-muted: #b3a99a;
    --accent: #8AD1FF;
    --surface: #241f19;
    --border: #f4ebdd;
    --button-bg: #f4ebdd;
    --button-bg-hover: #ffffff;
    --button-text: #1a1612;
    --menu-shadow: rgba(0, 0, 0, 0.4);
    --card-shadow: rgba(0, 0, 0, 0.35);
    --card-shadow-hover: rgba(0, 0, 0, 0.5);
    --error-bg: #4a1f1f;
    --error-text: #ffd4d4;
    --paper: #FCF1E1;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1612;
  --bg-footer: #2e2716;
  --text: #f4ebdd;
  --text-muted: #b3a99a;
  --accent: #8AD1FF;
  --surface: #241f19;
  --border: #f4ebdd;
  --button-bg: #f4ebdd;
  --button-bg-hover: #ffffff;
  --button-text: #1a1612;
  --menu-shadow: rgba(0, 0, 0, 0.4);
  --card-shadow: rgba(0, 0, 0, 0.35);
  --card-shadow-hover: rgba(0, 0, 0, 0.5);
  --error-bg: #4a1f1f;
  --error-text: #ffd4d4;
  --paper: #FCF1E1;
}

@media screen and (max-width: 1024px) {
  :root {
  --font-size-h1: 80px;
  --font-size-h2: 36px;
  --font-size-h2-info: 18px;
  --font-size-h3: 40px;
  --font-letter-spacing: 0px;
  --font-size-body: 22px;
  }
}
@media screen and (max-width: 800px) {
  :root {
  --font-size-h1: 64px;
  --font-size-h2: 28px;
  --font-size-h2-info: 16px;
  --font-size-h3: 36px;
  --font-letter-spacing: 0px;
  --font-size-body: 20px;
  --p-0: 2px;
  --p-1: 12px;
  --p-2: 28px;
  --p-3: 36px;
  --p-4: 48px;
  --p-5: 64px;
  --p-6: 80px;
  --p-7: 128px;
  }
}
@media screen and (max-width: 640px) {
  :root {
  --font-size-h1: 56px;
  --font-size-h2: 24px;
  --font-size-h2-info: 16px;
  --font-size-h3: 28px;
  --font-letter-spacing: 0px;
  --font-size-body: 18px;
  --p-0: 2px;
  --p-1: 12px;
  --p-2: 24px;
  --p-3: 32px;
  --p-4: 40px;
  --p-5: 56px;
  --p-6: 64px;
  --p-7: 72px;
  }
}
@media screen and (max-width: 480px) {
  :root {
  --font-size-h1: 48px;
  --font-size-h2: 20px;
  --font-size-h2-info: 15px;
  --font-size-h3: 20px;
  --font-letter-spacing: 0px;
  --font-size-body: 17px;
  --p-0: 2px;
  --p-1: 12px;
  --p-2: 20px;
  --p-3: 24px;
  --p-4: 32px;
  --p-5: 40px;
  --p-6: 48px;
  --p-7: 64px;
  }
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  background-color: var(--bg);
}
body {
  /* align our svg to the center of the viewport both horizontally and vertically */
  font-family: "Wix Madefor Display", sans-serif;
  font-optical-sizing: auto;
  background-color: var(--bg);
  color: var(--text);
  padding-top: 64px
}
a {
  color: inherit;
  text-decoration: none;
}
a.external {
  background-color: var(--bg-footer);
  text-decoration: underline;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
 }
.contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 80vh;
}
h1 {
  font-family: var(--font-family-title);
  font-size: var(--font-size-h1);
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 128px */
  letter-spacing: var(--font-letter-spacing);
  text-transform: uppercase;
  padding: var(--p-4) var(--p-4) 0 var(--p-4);
  text-align: center;
  padding: 0 var(--p-2);
}
h2 {
  font-family: var(--font-family-title);
  font-size: var(--font-size-h2);
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 128px */
  letter-spacing: var(--font-letter-spacing);
  text-align: center;
  padding: 0 var(--p-2);
}
h2.info {
  font-family: var(--font-family-body);
  font-size: var(--font-size-h2-info);
}
h3 {
  font-family: var(--font-family-title);
  font-size: var(--font-size-h3);
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 128px */
  letter-spacing: var(--font-letter-spacing);
  padding: var(--p-1) 0 var(--p-2) 0;
  text-align: center;
}
h3.thumb {
  font-size: var(--font-size-body)
}
.title-thin {
  font-family: var(--font-family-title);
  font-size: var(--font-size-title);
  font-style: normal;
  font-weight: 200;
  line-height: 80%; /* 128px */
  letter-spacing: var(--font-letter-spacing);
  text-transform: uppercase;
}
section {
  padding: var(--p-4) var(--p-6);
  max-width: var(--pmw); /* or whatever you want */
}
section.images {
  padding: var(--p-2);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--p-1);
}
img, video {
  display: block;
  width: 100%;
  height: auto;
}
img.frame, video.frame {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;

}
img.anim, img.small, video.anim {
  max-height: 50vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;

}
p {
  max-width: var(--max-body-width);
  margin-inline: auto;
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  padding: var(--p-1) 0;
  text-align: left;
}
i {
  text-align: center
}
section > ul {
  list-style: disc;
  max-width: var(--max-body-width);
  margin-inline: auto;
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  padding: var(--p-1) var(--p-2);
  text-align: left;
}
.title-wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--p-0);
  align-self: stretch;
  color: var(--title);
  
}
.title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--p-1);
  align-self: stretch;
  
}
.title .title-thin,
.title .title-regular,
.title .title-bold,
.title span {
  padding: var(--p-1);
  background-color: var(--title-bg);
}
p code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8em;
  background-color: var(--bg-footer);
  padding: 0 0.25em;
}

/* Images with transparent, dark artwork get a light backdrop in dark mode */
img.on-paper {
  background-color: var(--paper);
  border-radius: 12px;
}

p.source {
  font-size: var(--font-size-h2-info);
  color: var(--text-muted);
}
