/*
  Shared chrome across pages: header, page background, common buttons.
*/

:root {
  --cream-1: #FAF4E6;
  --cream-2: #F1E8D1;
  --cream-3: #E2D5B6;
  --cream-deep: #C9B98F;
  --ink: #2A2520;
  --ink-strong: #1A1612;
  --ink-soft: rgba(42, 37, 32, 0.62);
  --ink-faint: rgba(42, 37, 32, 0.32);
  --accent: #8a6f4e;
  --accent-deep: #6b5538;
}

.ns-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.6rem;
  pointer-events: none;
  font-family: 'DM Serif Display', Georgia, serif;
}

.ns-header > * { pointer-events: auto; }

.ns-header a {
  color: var(--ink);
  text-decoration: none;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: opacity 200ms ease;
}

.ns-header a:hover { opacity: 0.65; }

.ns-header .ns-brand {
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
}

.ns-header .ns-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .ns-header { padding: 0.8rem 1rem; }
  .ns-header a { font-size: 0.95rem; }
  .ns-header .ns-brand { font-size: 1rem; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1.1rem 2.2rem;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.04em;
  background: var(--ink-strong);
  color: var(--cream-1);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms ease;
  box-shadow: 0 12px 32px rgba(42, 37, 32, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
}

.btn-primary .arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85rem 1.6rem;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease;
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink-strong);
}

/* Mobile header — safe-area + truncate long display names */
@media (max-width: 640px) {
  .ns-header {
    padding-left: max(env(safe-area-inset-left), 1rem);
    padding-right: max(env(safe-area-inset-right), 1rem);
  }
  .ns-nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .ns-nav a {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
