html {
  scroll-behavior: smooth;
}

html,
body {
  background-color: var(--bg-light);
}

body {
  /* Font */
  font-family: var(--font-sans);
  font-optical-sizing: var(--font-optical-sizing);
  font-weight: var(--fw-regular);
  font-style: var(--font-style-normal);

  font-feature-settings: "palt" 1;
  line-break: strict;
  word-break: auto-phrase;
  text-autospace: normal;

  /* Parts */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;

  /* Disable mobile menu */
  -webkit-touch-callout: none;
}

::selection {
  background-color: var(--selection-bg);
  color: var(--selection-text);
}

/* Prevent image dragging and saving */
img {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

a {
  text-decoration: none;
}
a:visited {
  color: inherit;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 28px;
}

.site-main {
  flex: 1;
  background-color: var(--bg-main);
}

.site-header {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 18px 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-logo {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  font-weight: var(--fw-bold);
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-logo:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.site-nav a:hover {
  color: var(--text);
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-light);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 92px;
}

.footer-grid {
  max-width: 800px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-title {
  font-weight: var(--fw-bold);
  font-size: 1.25rem;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-nav-group {
  display: flex;
  gap: 68px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  display: block;
  margin-bottom: 18px;
}

.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col-list a:hover {
  color: var(--text);
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 60px 0 32px;
  }
  .footer-inner {
    gap: 56px;
  }
  .footer-grid {
    flex-direction: column;
    gap: 40px;
  }
  .footer-nav-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
