:root {
  --white: #f8f5ef;
  --bg: #191016;
  --bg-raised: #281924;
  --plum: #321c2c;
  --accent: #c47768;
  --rose: #d8a197;
  --line: rgba(248, 245, 239, 0.06);
  --container: 1200px;
}

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

html, body { margin: 0; }

html { overflow-x: clip; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--bg);
  color: var(--white);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

p, h1, h2, h3, h4, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 4px 120px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(45, 25, 40, 0), rgba(45, 25, 40, 0.23));
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.header__inner {
  max-width: var(--container);
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo__mark {
  display: block;
  flex-shrink: 0;
  color: var(--white);
}

.logo__text {
  font-size: 31px;
  font-weight: 600;
  line-height: 31px;
  letter-spacing: -1px;
}

/* Layout & type */
.container {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--flush { padding: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Form error message (contact and subscribe forms) */
.form-status {
  color: #ff8a80;
  font-size: 14px;
  line-height: 21px;
}

.h-display {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -3px;
}

.h-section {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -2px;
}

.h-sub {
  font-size: 36px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -2px;
}

.h-item {
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: 0;
}

.lead {
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -1px;
}

.text {
  line-height: 24px;
  opacity: 0.8;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack--16 { gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 24px;
  border: 0;
  border-radius: 999px;
  color: var(--plum);
  font: 600 16px/24px "Instrument Sans", system-ui, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn:hover { filter: brightness(0.94); }

.btn--light { background: var(--white); }

.btn--gradient { background: linear-gradient(to right, #ebe3d4, #fff 122.43%); }

.glow {
  position: absolute;
  border-radius: 600px;
  filter: blur(125px);
  pointer-events: none;
}

/* Header navigation */
.header__inner { justify-content: space-between; }

.header .logo { width: 185px; }

.nav { display: contents; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  position: relative;
  display: block;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.nav__link:hover,
.nav__link.is-active { opacity: 1; }

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: url("../assets/nav-dot.svg") center / contain no-repeat;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 11px 6px;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}

.header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Site footer */
.site-footer {
  padding: 36px 120px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .logo { width: 191px; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.site-footer__links a {
  display: block;
  padding: 3px 0 2px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.site-footer__links a:hover { opacity: 1; }

.site-footer__copy {
  font-size: 12px;
  line-height: 24px;
  opacity: 0.5;
}

@media (max-width: 1248px) {
  .container--flush { padding: 0 24px; }
}

@media (max-width: 1180px) {
  .header { padding-left: 0; padding-right: 0; }
  .site-footer { padding: 36px 24px; }
}

@media (max-width: 900px) {
  .header .logo { width: auto; }

  .burger { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .header.is-open .nav { display: flex; }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav__link { font-size: 20px; }

  .nav__link.is-active::after {
    left: -12px;
    bottom: 50%;
    margin: 0 0 -2px;
  }
}

@media (max-width: 640px) {
  .header { padding: 12px 20px; }
  .header__inner { height: auto; padding: 0; }
  .logo__text { font-size: 24px; line-height: 24px; }

  .container,
  .container--flush { padding: 0 20px; }

  .h-display {
    font-size: 34px;
    letter-spacing: -2px;
  }

  .h-section,
  .h-sub {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -2px;
  }

  .lead {
    font-size: 18px;
    line-height: 27px;
    letter-spacing: -1px;
  }

  .site-footer { padding: 36px 20px; }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .site-footer__links {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 16px 40px;
    width: 100%;
  }

  .site-footer__links a { padding: 0; }
}
