@font-face {
  font-family: "Beiruti";
  src: url("../fonts/Beiruti-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("../fonts/Literata72pt-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("../fonts/Literata72pt-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --color-base: #ffffff;
  --color-contrast: #111111;
  --color-muted: #686868;
  --color-footer: #00000008;
  --content-width: 1340px;
  --space-20: 10px;
  --space-30: 20px;
  --space-40: 30px;
  --space-50: clamp(30px, 5vw, 50px);
  --space-60: clamp(30px, 7vw, 70px);
  --font-size-small: 0.9rem;
  --font-size-body: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.314), 1.2rem);
  --font-size-h1: clamp(2rem, 2rem + ((1vw - 0.2rem) * 1.255), 2.8rem);
  --font-size-h2: clamp(1.8rem, 1.8rem + ((1vw - 0.2em) * 0.627), 2.2rem);
  --border-radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-base);
  color: var(--color-contrast);
  font-family: "Literata", serif;
  font-size: var(--font-size-body);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Beiruti", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: pretty;
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

p {
  margin: 0;
  text-wrap: pretty;
}

iframe {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 12px 16px;
  background: #eee;
}

.site-header {
  padding: var(--space-30) 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  position: relative;
}

.site-title {
  font-family: "Beiruti", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-decoration: none;
  text-transform: uppercase;
}

.site-title--small {
  font-size: var(--font-size-small);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-20);
}

.site-nav a {
  text-decoration: none;
}

.site-main {
  padding: var(--space-30) 0 var(--space-60);
}

.page-label {
  margin-bottom: var(--space-50);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-50);
  align-items: end;
}

.hero__media img {
  object-fit: cover;
}

.hero__content {
  display: grid;
  gap: 1rem;
}

.content-section {
  margin-top: 64px;
}

.content-section--narrow {
  max-width: 760px;
  margin-top: 0;
}

.content-section > h2,
.content-section--narrow > h1 {
  margin-bottom: 1rem;
}

.content-section--narrow > p {
  margin-bottom: var(--space-30);
}

.embed-frame iframe {
  border: 0;
  border-radius: var(--border-radius);
}

.site-footer {
  background: var(--color-footer);
  padding: var(--space-50) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-50);
  align-items: start;
}

.footer-label {
  margin-bottom: 8px;
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.039), 0.9rem);
  font-family: "Literata", serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: var(--font-size-small);
}

.footer-copy {
  font-size: var(--font-size-small);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-30);
  margin-top: var(--space-50);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 16px;
    background: var(--color-base);
    border: 1px solid rgba(17, 17, 17, 0.08);
  }

  .site-nav a {
    width: 100%;
    padding: 8px 0;
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
