@font-face {
  font-family: "Aspekta";
  src: url("./assets/fonts/Aspekta-500.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aspekta";
  src: url("./assets/fonts/Aspekta-550.otf") format("opentype");
  font-weight: 550;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZT Formom";
  src: url("./assets/fonts/ZT Formom.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZT Formom";
  src: url("./assets/fonts/ZT Formom Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-text: #0a0a0a;
  --color-background: #ffffff;
  --color-muted: #6f6f6f;

  --font-heading: "ZT Formom", serif;
  --font-body: "Aspekta", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --page-max-width: 1040px;
  --page-padding: 32px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-background);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Navigation */

.site-nav {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 100;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

/* Page Layout */

main {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 160px var(--page-padding) 120px;
}

section {
  margin-bottom: 96px;
}

/* Typography */

h1 {
  margin: 0 0 48px;
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
  overflow: visible;
}

h2 {
  margin: 56px 0 16px;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

h3 {
  margin: 32px 0 12px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

p,
li {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

p {
  margin: 0 0 20px;
}

ul {
  margin: 0 0 24px 20px;
  padding: 0;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 550;
}

a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */

.site-footer {
  width: calc(100% - 80px);
  margin: 0 40px 20px;
  z-index: 100;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy,
.footer-credit {
  margin: 0;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.footer-credit {
  text-decoration: none;
  white-space: nowrap;
}

.footer-credit:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */

@media (max-width: 768px) {
  :root {
    --page-padding: 24px;
  }

  .site-nav {
    top: 24px;
    left: 24px;
  }

  main {
    padding: 120px var(--page-padding) 96px;
  }

  h1 {
    font-size: 44px;
    margin-bottom: 36px;
  }

  h2 {
    font-size: 20px;
    margin-top: 44px;
  }

  h3 {
    font-size: 17px;
  }

  p,
  li {
    font-size: 14px;
  }

  .site-footer {
    width: calc(100% - 20px);
    margin: 0 10px 20px;
    gap: 16px;
  }

  .footer-copy,
  .footer-credit {
    font-size: 14px;
  }

  .footer-copy {
    max-width: 190px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  :root {
    --page-padding: 20px;
  }

  .site-nav {
    top: 20px;
    left: 20px;
  }

  main {
    padding: 112px var(--page-padding) 96px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 19px;
  }

  p,
  li {
    font-size: 14px;
  }

  .site-footer {
    align-items: flex-end;
  }

  .footer-copy {
    max-width: 170px;
  }
}

/* Legal Index */

.legal-index {
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 250px;
}

.legal-index-section {
  width: 100%;
}

.legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 56px;
}

.legal-links a {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .legal-index {
    min-height: calc(100vh - 40px);
    padding-top: 180px;
  }

  .legal-links {
    gap: 16px;
    margin-top: 44px;
  }

  .legal-links a {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .legal-index {
    padding-top: 160px;
  }

  .legal-links a {
    font-size: 22px;
  }
}