/* Northstar component styles. Values come from tokens.css; production loads the Adobe Fonts kit (use.typekit.net/app6ccp.css) and the stand-ins above fall away. */
body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.ns-demo { padding: var(--space-10); display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.ns-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Wordmark */
.ns-wordmark { display: inline-flex; align-items: center; gap: 0.3em; color: var(--logo-ink); font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.04em; line-height: 1; text-decoration: none; }
.ns-wordmark svg { height: 1.12em; width: auto; display: block; }
.ns-star { display: block; line-height: 0; color: var(--logo-ink); }
.ns-star svg { height: 1em; width: auto; display: block; }

/* Buttons */
.ns-btn { font-family: var(--font-sans); font-size: 17px; line-height: 1.3; font-weight: 500; border: 0; border-radius: var(--radius-pill); padding: 15px 26px; min-height: 48px; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.ns-btn--primary { background: var(--primary); color: var(--on-primary); }
.ns-btn--secondary { background: var(--surface); color: var(--text); }
[data-theme="dark"] .ns-btn--secondary, .ns-btn--secondary.on-dark { background: var(--raised); }
.ns-btn--outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--control-border); }
.ns-link { font-size: 17px; font-weight: 500; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Global nav */
.ns-nav { background: var(--stage); color: var(--text); border-bottom: 1px solid var(--line); }
.ns-nav__inner { max-width: var(--content-max); margin: 0 auto; min-height: 72px; padding: 0 var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.ns-nav__links { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.ns-nav__links a { color: var(--text); text-decoration: none; }

/* Product bar */
.ns-productbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; background: var(--surface); border-radius: var(--radius-bar); padding: 14px 14px 14px 28px; }
.ns-productbar__name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }

/* Feature pill */
.ns-pill { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-sans); font-size: 21px; font-weight: 600; border: 0; border-radius: var(--radius-pill); padding: 18px 28px 18px 20px; background: var(--raised); color: var(--text); cursor: pointer; }
.ns-pill svg { width: 22px; height: 22px; }

/* Section header */
.ns-section-header { display: flex; flex-direction: column; gap: 20px; max-width: 1100px; }
.ns-section-header .eyebrow { color: var(--text-secondary); margin: 0; }
.ns-section-header .headline { margin: 0; }
.ns-section-header .intro { color: var(--text-secondary); margin: 0; max-width: 820px; }

/* Card and tile */
.ns-card { background: var(--surface); border-radius: var(--radius-card); padding: var(--space-10); display: flex; flex-direction: column; gap: var(--space-3); }
.ns-card p { margin: 0; color: var(--text-secondary); }
.ns-tile { border-radius: var(--radius-tile); padding: var(--space-12); min-height: 460px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; overflow: hidden; background: var(--surface); color: var(--text); }
.ns-tile--studio { background: linear-gradient(100deg, var(--studio-light) 0%, var(--studio-mid) 55%, var(--studio-shadow) 100%); color: #111111; }
.ns-tile p { margin: 0; opacity: 0.78; }

/* Stat */
.ns-stat { background: var(--surface); border-radius: var(--radius-card); padding: 36px; display: flex; flex-direction: column; gap: 10px; }
.ns-stat__value { font-size: 80px; line-height: 0.95; font-weight: 700; letter-spacing: -0.055em; }
.ns-stat__label { font-size: 21px; color: var(--text-secondary); }

/* Quote */
.ns-quote { margin: 0; font-family: var(--font-serif); font-size: 36px; line-height: 1.3; font-weight: 400; }
.ns-quote em, .ns-accent { font-family: var(--font-serif); font-style: italic; }
.ns-editorial { font-family: var(--font-editorial); font-size: 64px; line-height: 1.06; letter-spacing: -0.015em; font-weight: 400; margin: 0; }

/* Fields */
.ns-field { display: flex; flex-direction: column; gap: 10px; font-size: 19px; font-weight: 600; color: var(--text); }
.ns-field input { font-family: var(--font-sans); font-size: 19px; border: 1px solid var(--control-border); border-radius: var(--radius-field); padding: 18px 20px; background: var(--raised); color: var(--text); }
.ns-field input::placeholder { color: var(--text-secondary); }
.ns-askbar { display: flex; align-items: center; gap: var(--space-3); background: var(--raised); border-radius: var(--radius-pill); padding: 8px 8px 8px 24px; box-shadow: inset 0 0 0 1px var(--line); }
.ns-askbar input { flex: 1; min-width: 0; font-family: var(--font-sans); font-size: 19px; border: 0; background: transparent; color: var(--text); }
.ns-askbar input::placeholder { color: var(--text-secondary); }
.ns-askbar button { width: 48px; height: 48px; border-radius: 24px; border: 0; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ns-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Tab bar */
.ns-tabbar { display: inline-flex; gap: 6px; background: var(--surface); border-radius: var(--radius-pill); padding: 6px; }
.ns-tabbar a { font-size: 17px; font-weight: 600; color: var(--text); padding: 12px 22px; border-radius: var(--radius-pill); text-decoration: none; }
.ns-tabbar a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }

/* Media controls */
.ns-media { display: flex; align-items: center; gap: var(--space-3); }
.ns-media__play { width: 60px; height: 60px; border-radius: 30px; border: 0; background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ns-media__dots { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius-pill); height: 60px; padding: 0 24px; }
.ns-media__dots span { width: 10px; height: 10px; border-radius: 5px; background: var(--text-secondary); }
.ns-media__dots span[aria-current="true"] { width: 44px; background: var(--text); }

/* Record */
.ns-record { display: block; border-radius: 50%; box-shadow: var(--shadow-record); width: 280px; height: 280px; }
.ns-records { display: flex; align-items: center; justify-content: center; }
.ns-records > * + * { margin-left: -34px; }

/* Light */
.ns-stage { background: var(--stage); color: var(--text); border-radius: var(--radius-tile); position: relative; overflow: hidden; }
.ns-ribbon { position: relative; height: 300px; width: 100%; overflow: hidden; pointer-events: none; }
.ns-ribbon i { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%) rotate(-5deg); }
.ns-ribbon .haze { width: 120%; height: 80%; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(255,255,255,0.14), rgba(255,255,255,0) 70%); }
.ns-ribbon .band { width: 100%; height: 70px; background: linear-gradient(90deg, rgba(255,255,255,0), var(--ribbon-cool) 28%, #FFFFFF 50%, var(--ribbon-warm) 72%, rgba(255,255,255,0)); opacity: 0.75; filter: blur(16px); }
.ns-ribbon .core { width: 62%; height: 18px; background: linear-gradient(90deg, rgba(255,255,255,0), #FFFFFF 50%, rgba(255,255,255,0)); filter: blur(5px); }
.ns-horizon { position: absolute; left: 50%; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 50% 30%, #F0A27F, var(--product-redrocks) 45%, #5A1F0E 75%); box-shadow: var(--glow-horizon); pointer-events: none; }

/* Detail and item type */
.ns-detail { font-family: var(--font-mono); font-size: 24px; letter-spacing: 0.12em; text-transform: uppercase; }
.ns-item-title { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.04em; line-height: 0.92; text-transform: uppercase; }

/* Footer */
.ns-footer { background: var(--stage); color: var(--text); padding: var(--space-16) var(--space-6); }
.ns-footer__inner { max-width: var(--content-max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
