/* Reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer,
header, hgroup, menu, nav, output, ruby, section,
summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  -webkit-text-size-adjust: none;
}

mark {
  background-color: transparent;
  color: inherit;
}

input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input[type="text"],
input[type="email"],
select,
textarea {
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  appearance: none;
}

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

/* Variables */

:root {
  --background-height: 100vh;
  --site-language-alignment: left;
  --site-language-direction: ltr;
  --site-language-flex-alignment: flex-start;
  --site-language-indent-left: 1;
  --site-language-indent-right: 0;
  --site-language-margin-left: 0;
  --site-language-margin-right: auto;
  --viewport-height: 100vh;
}

/* Base */

html {
  font-size: 16pt;
}

body {
  line-height: 1;
  min-height: var(--viewport-height);
  min-width: 320px;
  overflow-x: hidden;
  word-wrap: break-word;
  background-color: #f7f7f7;
}

body::before {
  background-attachment: scroll;
  content: "";
  display: block;
  height: var(--background-height);
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: scale(1);
  width: 100vw;
  z-index: 0;
  background-image: url("../images/bg.svg");
  background-size: 100% 150%;
  background-position: center;
  background-repeat: no-repeat;
}

body::after {
  background-color: #f7f7f7;
  content: "";
  display: block;
  pointer-events: none;
  position: fixed;
  transform: scale(1);
  z-index: 1;
  height: 100%;
  left: 0;
  opacity: 0;
  top: 0;
  transition: opacity 1s ease-in-out 0s, visibility 1s 0s;
  visibility: hidden;
  width: 100%;
}

body.is-loading::after {
  opacity: 1;
  visibility: visible;
}

/* Typography */

u {
  text-decoration: underline;
}

strong {
  color: inherit;
  font-weight: bolder;
}

em {
  font-style: italic;
}

code {
  background-color: rgba(144, 144, 144, 0.25);
  border-radius: 0.25em;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.9em;
  font-weight: normal;
  letter-spacing: 0;
  margin: 0 0.25em;
  padding: 0.25em 0.5em;
  text-indent: 0;
}

mark {
  background-color: rgba(144, 144, 144, 0.25);
}

s {
  text-decoration: line-through;
}

sub {
  font-size: smaller;
  vertical-align: sub;
}

sup {
  font-size: smaller;
  vertical-align: super;
}

a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.25s ease;
}

a[onclick]:not([href]) {
  cursor: pointer;
}

/* Layout */

.site-wrapper {
  -webkit-overflow-scrolling: touch;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--viewport-height);
  overflow: hidden;
  position: relative;
  z-index: 2;
  padding: 0;
}

.site-main {
  --alignment: left;
  --flex-alignment: flex-start;
  --indent-left: 1;
  --indent-right: 0;
  --margin-left: 0;
  --margin-right: auto;
  --border-radius-tl: 0;
  --border-radius-tr: 0;
  --border-radius-br: 0;
  --border-radius-bl: 0;
  align-items: center;
  display: flex;
  flex-grow: 0;
  flex-shrink: 0;
  justify-content: center;
  max-width: 100%;
  position: relative;
  text-align: var(--alignment);
  z-index: 1;
  transition: opacity 0.625s ease 0.125s, transform 0.625s ease 0.125s;
}

.site-main > .inner {
  --padding-horizontal: 4rem;
  --padding-vertical: 0;
  --spacing: 1.5rem;
  --width: 40rem;
  border-radius: var(--border-radius-tl) var(--border-radius-tr)
    var(--border-radius-br) var(--border-radius-bl);
  max-width: 100%;
  position: relative;
  width: var(--width);
  z-index: 1;
  padding: var(--padding-vertical) var(--padding-horizontal);
}

.site-main > .inner > * {
  margin-top: var(--spacing);
  margin-bottom: var(--spacing);
}

.site-main > .inner > :first-child {
  margin-top: 0 !important;
}

.site-main > .inner > :last-child {
  margin-bottom: 0 !important;
}

.site-main > .inner > .full {
  margin-left: calc(var(--padding-horizontal) * -1);
  max-width: calc(100% + calc(var(--padding-horizontal) * 2) + 0.4725px);
  width: calc(100% + calc(var(--padding-horizontal) * 2) + 0.4725px);
}

.site-main > .inner > .full:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  margin-top: calc(var(--padding-vertical) * -1) !important;
}

.site-main > .inner > .full:last-child {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  margin-bottom: calc(var(--padding-vertical) * -1) !important;
}

.site-main > .inner > .full.screen {
  border-radius: 0 !important;
  max-width: 100vw;
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  right: auto;
}

body.is-loading .site-main {
  opacity: 0;
  transform: translateY(1.6875rem);
}

/* Portrait canvas */

#portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  box-shadow: 0.707rem 0.707rem 0.875rem 0rem #d1d1d1;
  position: relative;
  top: -15px;
}

/* Loader */

body #loader {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: block;
  height: 3rem;
  left: calc(50% - 1.5rem);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: calc(50% - 1.5rem);
  transition: opacity 1s ease, visibility 1s;
  visibility: hidden;
  width: 3rem;
  z-index: 100000;
}

body.with-loader #loader {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iOTZweCIgaGVpZ2h0PSI5NnB4IiB2aWV3Qm94PSIwIDAgOTYgOTYiIHpvb21BbmRQYW49ImRpc2FibGUiPjxzdHlsZT5jaXJjbGUgeyBmaWxsOiB0cmFuc3BhcmVudDsgc3Ryb2tlOiAjMDAwMDAwMEQ7IHN0cm9rZS13aWR0aDogMnB4OyB9PC9zdHlsZT48ZGVmcz48Y2xpcFBhdGggaWQ9ImNvcm5lciI+PHBvbHlnb24gcG9pbnRzPSIwLDAgNDgsMCA0OCw0OCA5Niw0OCA5Niw5NiAwLDk2IiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjb3JuZXIpIj48Y2lyY2xlIGN4PSI0OCIgY3k9IjQ4IiByPSIzMiIgdmVjdG9yLWVmZmVjdD0ibm9uLXNjYWxpbmctc3Ryb2tlIiAvPjxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgYXR0cmlidXRlVHlwZT0iWE1MIiB0eXBlPSJyb3RhdGUiIGZyb209IjAgNDggNDgiIHRvPSIzNjAgNDggNDgiIGR1cj0iMXMiIHJlcGVhdER1cj0iaW5kZWZpbml0ZSIgLz48L2c+PC9zdmc+");
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

body.is-loading {
  pointer-events: none;
}

body.is-playing.with-loader #loader {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s ease, transform 0.75s ease, visibility 0.25s;
  visibility: hidden;
}

body.is-instant .site-main,
body.is-instant .site-main > .inner > *,
body.is-instant .site-main > .inner > section > * {
  transition: none !important;
}

body.is-instant::after {
  display: none !important;
  transition: none !important;
}

/* Text */

.text-component {
  direction: var(--site-language-direction);
  position: relative;
}

.text-component span.p {
  display: block;
  position: relative;
}

.text-component span[style],
.text-component strong,
.text-component a,
.text-component code,
.text-component mark {
  -webkit-text-fill-color: currentcolor;
}

/* Heading (style-2): PT Serif bold, large */
.text-component.style-2:not(:first-child) {
  margin-top: 2rem !important;
}

.text-component.style-2:not(:last-child) {
  margin-bottom: 2rem !important;
}

.text-component.style-2 {
  color: #1c1c1c;
  font-family: "PT Serif", serif;
  font-size: 2.375em;
  line-height: 1;
  font-weight: 700;
}

h1.text-component.style-2 {
  margin: 0 !important;
  padding: 1.5rem 0;
  position: relative;
  top: 1px;
}

.text-component.style-2 a {
  color: #33ada9;
  text-decoration: underline;
}

.text-component.style-2 a:hover {
  text-decoration: none;
}

.text-component.style-2 span.p:nth-child(n + 2) {
  margin-top: 2.5rem;
}

/* Body text (style-1): Fraunces light */
.text-component.style-1 {
  color: #212121;
  font-family: "Fraunces", serif;
  font-size: 1.125em;
  line-height: 1.875;
  font-weight: 300;
}

.text-component.style-1 a {
  color: #33ada9;
  text-decoration: underline;
}

.text-component.style-1 a:hover {
  text-decoration: none;
}

.text-component.style-1 span.p:nth-child(n + 2) {
  margin-top: 2.5rem;
}

/* Subheading (style-4): PT Serif bold, medium */
.text-component.style-4:not(:first-child) {
  margin-top: 2rem !important;
}

.text-component.style-4:not(:last-child) {
  margin-bottom: 2rem !important;
}

.text-component.style-4 {
  color: #1c1c1c;
  font-family: "PT Serif", serif;
  font-size: 1.625em;
  line-height: 1.875;
  font-weight: 700;
}

.text-component.style-4 a {
  color: #33ada9;
  text-decoration: underline;
}

.text-component.style-4 a:hover {
  text-decoration: none;
}

.text-component.style-4 span.p:nth-child(n + 2) {
  margin-top: 2.5rem;
}

/* Image */

.image-component {
  display: block;
  line-height: 0;
  max-width: 100%;
  position: relative;
}

.image-component > .frame {
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: top;
  width: 100%;
}

.image-component > .frame > img {
  border-radius: 0 !important;
  max-width: 100%;
  vertical-align: top;
  width: inherit;
}

.image-component.full > .frame {
  display: block;
}

.image-component.full:first-child > .frame {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.image-component.full:last-child > .frame {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.image-component.style-1 {
  text-align: center;
}

.image-component.style-1:not(:first-child) {
  margin-top: 3rem !important;
}

.image-component.style-1:not(:last-child) {
  margin-bottom: 3rem !important;
}

.image-component.style-1 > .frame {
  max-width: 100%;
  width: auto;
  border-radius: 0.75rem;
  border-color: rgba(176, 56, 56, 0.09);
  border-style: solid;
  border-width: 1px;
  box-shadow: 0.707rem 0.707rem 0.875rem 0rem #d1d1d1;
  transition: none;
}

.image-component.style-1 > .frame > img:first-child {
  border-radius: calc(0.75rem - 1px) !important;
}

.image-component.style-1 > .frame > img {
  border-radius: inherit !important;
  padding: 0.25rem;
  transition: none;
}

/* Divider */

.divider-component {
  align-items: center;
  border: 0;
  display: flex;
  justify-content: var(--flex-alignment);
  min-height: 1rem;
  padding: 0;
  position: relative;
  width: 100%;
}

.divider-component::before {
  content: "";
  width: 100%;
  border-top: dashed 1px #8a8a8a;
  height: 1px;
}

/* Responsive */

@media (max-width: 1680px) {
  html {
    font-size: 12pt;
  }
}

@media (max-width: 1280px) {
  html {
    font-size: 12pt;
  }
}

@media (max-width: 980px) {
  html {
    font-size: 10pt;
  }
}

@media (max-width: 736px) {
  html {
    font-size: 14pt;
  }

  .site-wrapper {
    padding: 0;
  }

  .site-main > .inner {
    --padding-horizontal: 1.75rem;
    --padding-vertical: 3rem;
    --spacing: 1.5rem;
  }

  .text-component.style-2:not(:first-child) { margin-top: 1.5rem !important; }
  .text-component.style-2:not(:last-child) { margin-bottom: 1.5rem !important; }
  .text-component.style-2 { letter-spacing: 0; width: 100%; font-size: 2.375em; line-height: 1.875; }

  .text-component.style-1 { letter-spacing: 0; width: 100%; font-size: 1.125em; line-height: 1.875; }

  .text-component.style-4:not(:first-child) { margin-top: 1.5rem !important; }
  .text-component.style-4:not(:last-child) { margin-bottom: 1.5rem !important; }
  .text-component.style-4 { letter-spacing: 0; width: 100%; font-size: 1.625em; line-height: 1.875; }

  .image-component.style-1:not(:first-child) { margin-top: 2.25rem !important; }
  .image-component.style-1:not(:last-child) { margin-bottom: 2.25rem !important; }
}

@media (max-width: 480px) {
  .site-wrapper {
    padding: 0;
  }

  .site-main > .inner {
    --spacing: 1.3125rem;
  }
}

@media (max-width: 360px) {
  .site-wrapper {
    padding: 0;
  }

  .site-main > .inner {
    --padding-horizontal: 1.3125rem;
    --padding-vertical: 2.25rem;
    --spacing: 1.125rem;
  }

  .text-component.style-2 { font-size: 2em; }
  .text-component.style-1 { font-size: 1.125em; }
  .text-component.style-4 { font-size: 1.5em; }
}

.site-main > .inner > :nth-child(3) {
  background-color: #ffffff;
  box-shadow: 0rem 1.75rem 2rem 0rem rgba(0, 0, 0, 0.051);
  border: solid 1px rgba(0, 0, 0, 0.09);
  padding: 2rem;
  border-radius: 0.75rem;
  position: relative;
  top: -7px;
}

.site-main > .inner > :nth-child(4) {
  margin-bottom: 0 !important;
  font-size: 0.85em;
  color: #999;
  letter-spacing: 0.05em;
  text-align: center;
  position: relative;
  top: -10px;
}

.site-main > .inner > :nth-child(4) a {
  color: #999;
  text-decoration: none;
}

.site-main > .inner > :nth-child(4) a:hover {
  color: #33ada9;
}

/* Debug (Cmd+D) */

body.debug * {
  outline: 1px solid rgba(0, 150, 255, 0.3);
}

/* Noscript fallback (applied via <noscript> in HTML) */
