/* ============================================================
   SELECTED WORK — Brand world shell (shared chrome only)
   Scoped to House attribution layer. Does NOT style brand interior.
   Do NOT import main.css or house-editorial.css into brand worlds.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.brand-world {
  margin: 0;
  /* Font, color, and background are owned by page-specific brand CSS */
}

/* — House global navigation: shared hierarchy above each brand world — */
.sw-house-nav {
  --sw-paper: #ECE5D6;
  --sw-ink: #16150E;
  --sw-ink-soft: #5C584D;
  --sw-line: rgba(22, 21, 14, 0.18);
  --sw-gold: #A3813F;
  --sw-gold-text: #765B25;
  --sw-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  min-height: var(--sw-house-nav-height, 57px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px clamp(24px, 6vw, 96px);
  background: rgba(236, 229, 214, 0.94);
  color: var(--sw-ink);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sw-line);
}

.sw-house-nav a { color: inherit; text-decoration: none; }

.sw-house-nav .nav-word {
  font: 500 12.5px/1.4 var(--sw-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sw-house-nav .nav-links,
.sw-house-nav .nav-house-links {
  display: flex;
  align-items: center;
}

.sw-house-nav .nav-house-links { gap: 30px; }

.sw-house-nav .nav-house-links a,
.sw-house-nav .nav-item-disabled,
.sw-house-nav .nav-alive-entry,
.sw-house-nav .nav-toggle {
  font: 500 11.5px/1.4 var(--sw-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sw-house-nav .nav-house-links a {
  color: var(--sw-ink-soft);
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}

.sw-house-nav .nav-house-links a:hover,
.sw-house-nav .nav-house-links a:focus-visible { opacity: 1; }

.sw-house-nav .nav-house-links a[aria-current="page"] {
  color: var(--sw-ink);
  opacity: 1;
  position: relative;
}

.sw-house-nav .nav-house-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--sw-gold);
  transform: scaleX(.38);
  transform-origin: left;
}

.sw-house-nav .nav-item-disabled {
  color: var(--sw-ink-soft);
  opacity: .42;
  cursor: default;
}

.sw-house-nav .nav-alive-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: clamp(20px, 2.5vw, 36px);
  padding: 10px 14px 10px clamp(20px, 2.5vw, 36px);
  border: 1px solid rgba(126, 92, 34, .32);
  border-left-color: var(--sw-line);
  color: var(--sw-gold-text);
  min-height: 44px;
  background: linear-gradient(90deg, transparent, rgba(163, 129, 63, .07));
}

.sw-house-nav .nav-alive-arrow { font-size: 12px; letter-spacing: 0; }

.sw-house-nav .nav-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* — Skip link — */
.sw-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  padding: 12px 18px;
  font: 500 13px/1.4 system-ui, sans-serif;
  background: #fff;
  color: #111;
  text-decoration: none;
}

.sw-skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  overflow: visible;
}

/* — House attribution layer (technical hook — visual treatment TBD) — */
.sw-attribution {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 4vw, 28px);
  font: 500 11px/1.4 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* Neutral until final attribution design is supplied */
  background: rgba(255, 255, 255, 0.92);
  color: rgba(16, 15, 9, 0.72);
  border-bottom: 1px solid rgba(16, 15, 9, 0.08);
}

.sw-attribution a {
  color: inherit;
  text-decoration: none;
}

.sw-attribution a:hover,
.sw-attribution a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.sw-attribution-back::before {
  content: "← ";
}

/* — Brand content drop zone — */
.brand-main {
  min-height: 100vh;
  padding-top: calc(var(--sw-house-nav-height, 57px) + var(--sw-context-nav-height, 60px));
}

.brand-content-slot {
  /* Intentionally unstyled — bespoke brand HTML/CSS owns this region */
}

/* — Development placeholder (remove when brand profile is integrated) — */
.brand-shell-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--sw-attribution-height, 40px));
  padding: clamp(24px, 6vw, 48px);
  font: 400 14px/1.5 system-ui, sans-serif;
  color: rgba(16, 15, 9, 0.45);
  text-align: center;
}

@media (max-width: 640px) {
  .sw-attribution {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

@media (max-width: 720px) {
  .sw-house-nav { padding-inline: 24px; }
  .sw-house-nav .nav-toggle { display: block; }
  .sw-house-nav .nav-links {
    position: fixed;
    top: var(--sw-house-nav-height, 57px);
    left: 0;
    right: 0;
    z-index: 501;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    background: var(--sw-paper);
    border-bottom: 1px solid var(--sw-line);
    transition: max-height .35s ease;
  }
  .sw-house-nav .nav-links.open { max-height: 520px; }
  .sw-house-nav .nav-house-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .sw-house-nav .nav-house-links a,
  .sw-house-nav .nav-item-disabled {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--sw-line);
  }
  .sw-house-nav .nav-house-links a[aria-current="page"] {
    padding-left: 36px;
    background: rgba(163, 129, 63, .055);
  }
  .sw-house-nav .nav-house-links a[aria-current="page"]::after { display: none; }
  .sw-house-nav .nav-alive-entry {
    min-height: 52px;
    margin-left: 0;
    padding: 16px 24px;
    border: 0;
    border-top: 1px solid var(--sw-line);
    background: linear-gradient(90deg, rgba(126, 92, 34, .1), rgba(126, 92, 34, .025));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw-house-nav .nav-links { transition: none; }
}
