/* ========================================
   SITE
======================================== */

.site {
  min-height: 100vh;
}


/* ========================================
   HEADER
======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;
  height: var(--header-height);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 32px;

  background: var(--color-background);
  border-bottom: 1px solid var(--color-line);
}

.site-logo {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}


/* ========================================
   MAIN
======================================== */

.site-main {
  width: 100%;
}


/* ========================================
   SECTION
======================================== */

.section {
  width: 100%;
  padding: var(--space-section) 32px;
}

.section-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-number {
  margin-bottom: 8px;

  color: var(--color-text-muted);

  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 10px 24px;
  padding: 14px 32px;

  border-top: 1px solid var(--color-line);

  color: var(--color-text-muted);
  font-size: 0.7rem;
}

.footer-contact,
.footer-links,
.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-label {
  color: var(--color-text);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-links a + a::before,
.footer-meta span + span::before {
  content: "·";
  margin-right: 12px;
  color: var(--color-line);
}

.footer-meta {
  white-space: nowrap;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 720px) {
  :root {
    --space-section: 80px;
  }

  .site-header {
    height: auto;

    padding: 20px;

    align-items: flex-start;
  }

  .site-nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer {
    justify-content: flex-start;
    gap: 8px 18px;
    padding: 12px 20px;
  }

  .footer-contact {
    width: 100%;
  }

  .footer-links,
  .footer-meta {
    gap: 8px 10px;
  }

  .footer-meta {
    white-space: normal;
  }
}
