/* /nexus-brew -- deliberately NOT the site's cream/plum/rounded look. The story is set in
   a subterranean Brisbane bar (bare brick arches, lacquered beams, technicolour pipes, an
   illusion field hiding orcs and elves), so the page is that room: brick, dark timber,
   an amber neon sign. Palette borrows the original story's own teal / cream / amber.
   Old Standard TT is the original's chosen face, self-hosted (SIL OFL). Loaded only on
   this page (functions.php). */
@font-face { font-family: 'Old Standard TT'; font-weight: 400; font-style: normal; font-display: swap;
	src: url(fonts/old-standard-tt/OldStandardTT-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Old Standard TT'; font-weight: 400; font-style: italic; font-display: swap;
	src: url(fonts/old-standard-tt/OldStandardTT-Italic.woff2) format('woff2'); }
@font-face { font-family: 'Old Standard TT'; font-weight: 700; font-style: normal; font-display: swap;
	src: url(fonts/old-standard-tt/OldStandardTT-Bold.woff2) format('woff2'); }

.nb { --lacquer: #1a100b; --timber: #26170f; --cream: #E5D0B4; --amber: #ffb040; --amber-d: #cc8929;
      --teal: #2F6C67; --teal-l: #7fc4bb; --rose: #c2568a; --muted: #b9a88c;
      background: var(--lacquer); color: var(--cream); margin: 0;
      font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif; font-size: 1.2rem; line-height: 1.75; }
.nb *, .nb *::before, .nb *::after { box-sizing: border-box; }
.nb a { color: var(--amber); text-decoration-color: rgba(255, 176, 64, 0.45); text-underline-offset: 4px; }
.nb a:hover, .nb a:focus-visible { color: #fff; text-decoration-color: var(--amber); }
.nb a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.nb p { margin: 0 0 1.1em; }
.nb-wrap { max-width: 40rem; margin: 0 auto; padding: 0 1.4rem; }
.nb-label { font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--amber-d); margin: 0 0 1rem; }

/* ---------- title card: the hard break out of the site's style into the bar ---------- */
.nb-hero { position: relative; overflow: hidden; text-align: center; padding: 0 0 clamp(3.5rem, 9vw, 6rem);
	background-color: #2b120c;
	background-image:
		radial-gradient(ellipse at 50% 42%, rgba(26, 16, 11, 0.35) 0%, rgba(26, 16, 11, 0.93) 78%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Crect width='96' height='48' fill='%232b120c'/%3E%3Cg fill='%237a3222'%3E%3Crect x='2' y='2' width='44' height='20' rx='1'/%3E%3Crect x='50' y='2' width='44' height='20' rx='1'/%3E%3Crect x='26' y='26' width='44' height='20' rx='1'/%3E%3Crect x='-22' y='26' width='44' height='20' rx='1'/%3E%3Crect x='74' y='26' width='44' height='20' rx='1'/%3E%3C/g%3E%3Cg fill='%23984230' opacity='.45'%3E%3Crect x='50' y='2' width='44' height='20' rx='1'/%3E%3Crect x='-22' y='26' width='44' height='20' rx='1'/%3E%3C/g%3E%3C/svg%3E"); }
.nb-pipes { display: grid; gap: 7px; padding-top: 1.6rem; margin-bottom: clamp(3rem, 8vw, 5.5rem); }
.nb-pipes span { display: block; height: 11px; border-radius: 6px; background: linear-gradient(rgba(255,255,255,0.38), rgba(255,255,255,0) 45%, rgba(0,0,0,0.3)), var(--c);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.nb-pipes span:nth-child(1) { --c: var(--teal); margin-right: 14%; }
.nb-pipes span:nth-child(2) { --c: var(--amber-d); margin-left: 9%; margin-right: 4%; }
.nb-pipes span:nth-child(3) { --c: var(--rose); margin-left: 22%; }
.nb-sign { display: inline-block; margin-top: 0; margin: 0 0 1.2rem; padding: 0.35em 0.55em 0.3em; font-weight: 700; text-transform: uppercase;
	font-size: clamp(2.6rem, 10vw, 6.2rem); line-height: 1.05; letter-spacing: 0.13em; color: var(--amber);
	border-top: 2px solid rgba(255, 176, 64, 0.65); border-bottom: 2px solid rgba(255, 176, 64, 0.65);
	text-shadow: 0 0 6px rgba(255, 176, 64, 0.9), 0 0 22px rgba(255, 176, 64, 0.55), 0 0 60px rgba(204, 137, 41, 0.5);
	animation: nbFlicker 7s infinite; }
@keyframes nbFlicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20% { opacity: 0.72; } 63% { opacity: 0.85; } }
.nb-tagline { font-style: italic; font-size: clamp(1.25rem, 3.2vw, 1.7rem); margin: 0 0 0.6rem; }
.nb-meta { font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin: 0 0 2.2rem; }
.nb-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.nb-btn { display: inline-block; padding: 0.85rem 1.5rem; border: 2px solid var(--amber); color: var(--amber) !important; text-decoration: none !important;
	font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; background: rgba(26, 16, 11, 0.6); transition: background 0.25s, color 0.25s; }
.nb-btn:hover, .nb-btn:focus-visible { background: var(--amber); color: var(--lacquer) !important; }
.nb-btn.is-quiet { border-color: rgba(229, 208, 180, 0.5); color: var(--cream) !important; }
.nb-btn.is-quiet:hover, .nb-btn.is-quiet:focus-visible { background: var(--cream); color: var(--lacquer) !important; border-color: var(--cream); }

/* ---------- the book ---------- */
.nb-play { padding: clamp(3rem, 8vw, 5.5rem) 1.25rem; text-align: center; scroll-margin-top: 1rem;
	background: radial-gradient(ellipse 62% 58% at 50% 48%, rgba(204, 137, 41, 0.2), transparent 72%), var(--lacquer); }
.nb-book { max-width: 52rem; margin: 0 auto; border: 10px solid #3a2215; border-radius: 6px; background: #f3e7cf;
	box-shadow: 0 0 0 2px #120a06, 0 0 60px rgba(204, 137, 41, 0.18), 0 30px 80px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255,255,255,0.05); }
.nb-book iframe { display: block; width: 100%; height: min(84vh, 54rem); height: min(84dvh, 54rem); min-height: 28rem; border: 0; background: #f3e7cf; }
.nb-play .nb-label { margin-bottom: 1.3rem; }
.nb-fine { max-width: 40rem; margin: 1.4rem auto 0 !important; font-size: 0.9rem; font-style: italic; color: var(--muted); }

/* ---------- end credits ---------- */
.nb-credits { padding: clamp(3.5rem, 9vw, 6rem) 1.4rem; text-align: center; border-top: 3px solid #120a06;
	background: linear-gradient(var(--lacquer), #120a06); }
.nb-credits h2 { margin: 0 0 2.6rem; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 400; font-style: italic; color: var(--amber); }
.nb-credit { margin: 0 auto 2.4rem; max-width: 34rem; }
.nb-credit h3 { margin: 0 0 0.5rem; font-size: 0.74rem; font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase; color: var(--amber-d); }
.nb-credit ul { list-style: none; margin: 0; padding: 0; }
.nb-credit li { font-size: 1.4rem; line-height: 1.7; }
.nb-credit p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--cream); }
.nb-rights { max-width: 36rem; margin: 3.5rem auto 0; padding-top: 2rem; border-top: 1px solid rgba(229, 208, 180, 0.22); font-size: 0.95rem; line-height: 1.7; color: var(--muted); text-align: left; }
.nb-rights p { margin: 0 0 0.9em; }
.nb-rights h3 { margin: 0 0 0.8rem; font-size: 0.74rem; font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase; color: var(--amber-d); text-align: center; }
.nb-foot { margin-top: 3rem; font-size: 0.95rem; }

@media (max-width: 40rem) { .nb { font-size: 1.1rem; } .nb-book { border-width: 6px; } .nb-credit li { font-size: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .nb-sign { animation: none; } .nb-btn { transition: none; } }
