/* Open Sauce Sans – SIL OFL 1.1 */
@font-face {
  font-family: "Open Sauce Sans";
  font-style: normal;
  font-weight: 300;
  font-display: fallback;
  src: url("../fonts/open-sauce-sans_normal_300.ttf") format("truetype");
}

@font-face {
  font-family: "Open Sauce Sans";
  font-style: italic;
  font-weight: 300;
  font-display: fallback;
  src: url("../fonts/open-sauce-sans_italic_300.ttf") format("truetype");
}

@font-face {
  font-family: "Open Sauce Sans";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("../fonts/open-sauce-sans_normal_400.ttf") format("truetype");
}

@font-face {
  font-family: "Open Sauce Sans";
  font-style: italic;
  font-weight: 400;
  font-display: fallback;
  src: url("../fonts/open-sauce-sans_italic_400.ttf") format("truetype");
}

@font-face {
  font-family: "Open Sauce Sans";
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: url("../fonts/open-sauce-sans_normal_700.ttf") format("truetype");
}

@font-face {
  font-family: "Open Sauce Sans";
  font-style: italic;
  font-weight: 700;
  font-display: fallback;
  src: url("../fonts/open-sauce-sans_italic_700.ttf") format("truetype");
}

:root {
  --color-background: #20263e;
  --color-foreground: #f7fff0;
  --color-primary: #f7fff0;
  --color-secondary: #9395b1;
  --spacing-40: 2.5rem;
  --spacing-50: 1.5rem;
  --spacing-60: 2.25rem;
  --spacing-80: 5.06rem;
  --content-size: 820px;
  --font-size-huge: clamp(5.5rem, 5.5rem + ((1vw - 0.2rem) * 2.353), 6.5rem);
  --font-size-large: clamp(1.6rem, 1.6rem + ((1vw - 0.2rem) * 0.941), 2rem);
  --font-size-medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.588), 1.25rem);
  --font-size-body: clamp(1.092rem, 1.092rem + ((1vw - 0.2rem) * 1.431), 1.7rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: "Open Sauce Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--font-size-body);
  font-weight: 300;
  line-height: 1.5;
  padding: var(--spacing-60) var(--spacing-50);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 0.1em;
}

a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--color-foreground);
  color: var(--color-background);
}

/* Layout */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header,
.site-footer {
  padding-left: var(--spacing-50);
  padding-right: var(--spacing-50);
}

.site-main {
  flex: 1;
  padding-left: var(--spacing-50);
  padding-right: var(--spacing-50);
}

/* Home header */
.site-header--home .site-title {
  margin: 0;
  font-size: var(--font-size-huge);
  font-weight: 400;
  line-height: 1.125;
}

.site-header--home .site-title a {
  text-decoration: none;
}

.site-header--home .site-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.01em;
  text-underline-offset: 0.15em;
}

/* Inner page header */
.page-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.page-header__title,
.page-header__page {
  flex: 1 1 50%;
  margin: 0;
  font-size: var(--font-size-huge);
  line-height: 1.125;
}

.page-header__title {
  font-weight: 400;
}

.page-header__title a {
  text-decoration: none;
}

.page-header__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.01em;
  text-underline-offset: 0.15em;
}

.page-header__page {
  font-weight: 300;
  text-align: right;
}

.separator {
  border: none;
  border-top: 1px solid var(--color-foreground);
  margin: 1.5rem 0 0;
  width: 100%;
}

/* Home navigation */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list__item {
  margin: 0;
}

.nav-list__link {
  display: block;
  font-size: var(--font-size-huge);
  font-weight: 300;
  line-height: 1.125;
  padding: var(--spacing-40) 0;
  text-decoration: none;
}

.nav-list__link:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.01em;
  text-underline-offset: 0.15em;
}

/* Content */
.content {
  max-width: var(--content-size);
  margin-top: 6.25rem;
  margin-bottom: 6.25rem;
  min-height: 43.75rem;
}

.content--home {
  min-height: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.content p {
  font-size: var(--font-size-large);
  font-weight: 300;
  line-height: 1.5;
  margin: 1.5rem 0 0;
  max-width: var(--content-size);
}

.content h2 {
  font-size: var(--font-size-large);
  font-weight: 400;
  line-height: 1.125;
  margin: 1.5rem 0 0;
}

.content h2:first-child {
  margin-top: 0;
}

.content ul {
  font-size: var(--font-size-large);
  font-weight: 300;
  line-height: 1.5;
  margin: 1.5rem 0 0;
  padding-left: 1.5rem;
}

.content li {
  margin-top: 0.5rem;
}

.content li:first-child {
  margin-top: 0;
}

.content figure {
  margin: 0;
}

.content figure img {
  width: 768px;
  max-width: 100%;
}

.content small {
  font-size: var(--font-size-medium);
}

.content em {
  font-style: italic;
}

/* Details / toggles */
details {
  margin-top: 1.5rem;
  font-size: var(--font-size-large);
  font-weight: 300;
  line-height: 1.5;
}

details:first-child {
  margin-top: 0;
}

summary {
  cursor: pointer;
  font-size: var(--font-size-large);
  font-weight: 300;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details .details-content {
  margin-top: 1rem;
  padding-left: 1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
}

.spacer {
  height: var(--spacing-80);
}

.footer-legal {
  font-size: 0.6rem;
  margin: 0;
  text-align: left;
}

/* Contact actions */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid var(--color-foreground);
  border-radius: 4px;
  color: var(--color-foreground);
  text-decoration: none;
}

.contact-action:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-background);
}

.contact-action:focus-visible {
  outline: 1px dotted var(--color-primary);
  outline-offset: 4px;
}

.contact-action svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

@media (max-width: 781px) {
  .page-header__title,
  .page-header__page {
    flex: 1 1 100%;
    text-align: left;
  }

  .page-header__page {
    margin-top: 0.5rem;
  }
}
