/* Site nav (shared on every page) */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: var(--cream);
  border-bottom: var(--border-w) solid var(--ink);
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--cream);
  color: var(--ink);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-hard-sm);
  transition:
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.monogram:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.monogram:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: lowercase;
}
.nav-links a {
  position: relative;
  padding: 4px 2px;
  color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition:
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--ghost {
  background: transparent;
}
.btn--lg {
  padding: 14px 22px;
  font-size: 0.95rem;
}

/* Theme toggle */
.theme-toggle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--cream);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  transition:
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.theme-toggle:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.theme-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .sun {
  display: none;
}
.theme-toggle .moon {
  display: block;
}
[data-theme="dark"] .theme-toggle .sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .moon {
  display: none;
}

/* Frame — Brayden-style hard-bordered box */
.frame {
  background: var(--cream);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: clamp(20px, 3vw, 36px);
}
.frame--soft {
  box-shadow: none;
}
.frame--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Pill / tag */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
}
.pill--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.pill--accent .dot {
  background: var(--accent-ink);
}

/* Tag (smaller, square corners) */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
}

/* Card */
.card {
  background: var(--cream);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  padding: 24px;
  transition:
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.card--clickable {
  cursor: pointer;
}
.card--clickable:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}

/* Image slot (placeholder until real image arrives) */
.img-slot {
  position: relative;
  width: 100%;
  background: var(--cream-soft);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-slot::before {
  content: attr(data-slot);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  pointer-events: none;
}
.img-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-orientation: from-image;
  position: relative;
  z-index: 1;
}
.img-slot object,
.img-slot iframe,
.img-slot embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  z-index: 1;
}
.img-slot img[src=""],
.img-slot img:not([src]) {
  display: none;
}

/* Section divider */
.divider {
  height: var(--border-w);
  background: var(--ink);
  border: 0;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: var(--border-w) solid var(--ink);
  padding: 28px var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a {
  color: var(--ink);
}
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Toast (copy email confirmation) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Visually hidden (accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
