/* =========================================================
   NAMI — SHARED SITE STYLES
   Use on every page before the page-specific stylesheet.
   ========================================================= */

:root {
  --nami-black: #111111;
  --nami-white: #ffffff;
  --nami-paper: #f4f1ea;
  --nami-card: #fbfaf7;
  --nami-rule: #d4cec4;
  --nami-muted: #655f57;
  --nami-max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
}

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

a {
  color: inherit;
}

/* ---------- Shared header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 62px;

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

  padding: 14px 28px;

  background: var(--nami-black);
  color: var(--nami-white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  color: var(--nami-white);
  text-decoration: none;

  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px 24px;
}

.site-nav a {
  color: var(--nami-white);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;

  font-size: 10px;
  letter-spacing: .15em;

  opacity: .95;
  padding-bottom: 3px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: .62;
}

.site-nav a.active {
  border-bottom: 1px solid currentColor;
}

/* ---------- Shared footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  padding: 24px 32px;

  background: var(--nami-black);
  color: var(--nami-white);

  font-size: 12px;
  letter-spacing: .08em;

  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-home {
  color: var(--nami-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.footer-home:hover,
.footer-home:focus-visible {
  opacity: .65;
}

.footer-credit {
  opacity: .78;
  text-align: right;
}

/* ---------- Shared buttons and links ---------- */

.button {
  display: inline-block;
  padding: 12px 18px;

  border: 1px solid var(--nami-black);
  background: var(--nami-black);
  color: var(--nami-white);

  text-decoration: none;
  text-transform: uppercase;

  font-size: 11px;
  letter-spacing: .15em;
}

.button-outline {
  background: transparent;
  color: var(--nami-black);
}

.text-link {
  display: inline-block;
  padding-bottom: 3px;

  text-decoration: none;
  border-bottom: 1px solid currentColor;

  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ---------- Responsive shared header/footer ---------- */

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
  }

  .brand span {
    display: none;
  }

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

  .site-nav {
    max-width: calc(100vw - 72px);
    gap: 7px 13px;
  }

  .site-nav a {
    font-size: 8px;
    letter-spacing: .1em;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 20px;
  }

  .footer-credit {
    text-align: left;
  }
}
