/* Ian Brady theme: pages other than the wave, in the same type and colors. */
:root {
  --bg: #fbfcfd; --ink: #11161b; --muted: #56616b; --rule: rgba(17, 22, 27, .14); --accent: #007bb6;
  --display: 'Montserrat', 'Gotham', 'Helvetica Neue', Arial, sans-serif;
  --label: 'Barlow Semi Condensed', 'DIN Alternate', 'Arial Narrow', sans-serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b0f13; --ink: #e6ecf1; --muted: #98a4ae; --rule: rgba(230, 236, 241, .16); --accent: #52b4e6; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0b0f13; --ink: #e6ecf1; --muted: #98a4ae; --rule: rgba(230, 236, 241, .16); --accent: #52b4e6; color-scheme: dark; }

body.ibt { margin: 0; background: var(--bg); color: var(--ink); font: 300 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
.ibt a { color: var(--accent); text-decoration: none; }
.ibt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ibt :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ibt img { max-width: 100%; height: auto; }

.ibt-top { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.ibt-brand { color: var(--ink) !important; display: grid; gap: 3px; justify-items: start; text-decoration: none !important; }
.ibt-brand .name { font-family: var(--display); font-size: 26px; font-weight: 300; letter-spacing: .02em; line-height: 1; }
.ibt-brand .name b { font-weight: 700; }
.ibt-brand .sub { font-family: var(--label); font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; line-height: 1.1; }
.ibt-back { color: var(--ink) !important; display: block; padding: 8px 0; }
.ibt-back svg { width: 64px; height: 24px; display: block; overflow: visible; transition: transform .25s ease; }
.ibt-back path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ibt-back:hover svg { transform: translateX(-6px); }

.ibt-main { max-width: 760px; margin: 0 auto; padding: 64px max(16px, env(safe-area-inset-right, 0px)) 96px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 56px; }
.ibt-entry h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -.01em; margin: 0 0 18px; }
.ibt-entry h2 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; margin: 0 0 10px; }
.ibt-entry h2 a { color: var(--ink); }
.ibt-eyebrow { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.ibt-content > * + * { margin-top: 1em; }
.ibt-content h2, .ibt-content h3 { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin: 2em 0 .5em; }
.ibt-content blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 2px solid var(--rule); color: var(--muted); }
.ibt-content iframe, .ibt-content video { max-width: 100%; }
.ibt .nav-links { display: flex; gap: 18px; font-family: var(--label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 720px) { .ibt-brand .name { font-size: 22px; } .ibt-main { padding-top: 40px; gap: 40px; } }
.ibw-video { margin: 1.5em 0; position: relative; aspect-ratio: 16 / 9; background: #000; }
.ibw-video iframe, .ibw-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* sunset (chosen on the wave): the same orange-to-purple sky, dimmed so long text stays easy to read */
:root[data-theme="sunset"] { --bg: #3a1550; --ink: #fff; --muted: rgba(255, 255, 255, .8); --rule: rgba(255, 255, 255, .3); --accent: #ffc56b; color-scheme: dark; background-color: #3a1550; }
:root[data-theme="sunset"] body.ibt { background-color: transparent; }
:root[data-theme="sunset"] body.ibt::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(34, 12, 48, .62), rgba(34, 12, 48, .62)), linear-gradient(135deg, #f37a1d 0%, #e5532f 32%, #a9327a 66%, #4d1e90 100%); }
