﻿:root {
  --ink: #080b0d;
  --ink-2: #0d1215;
  --panel: #11181b;
  --panel-2: #151e21;
  --paper: #e9e4d8;
  --muted: #a7aaa5;
  --brass: #c6a45c;
  --brass-light: #ead28f;
  --burgundy: #6f2636;
  --line: rgba(232, 207, 143, .17);
  --max: 1240px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 0%, rgba(111,38,54,.13), transparent 28rem),
    linear-gradient(180deg, #090d0f 0%, #0c1113 45%, #080b0d 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--brass-light); }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.reading-progress { position: fixed; inset: 0 auto auto 0; width: 0; height: 2px; background: var(--brass); z-index: 99; }
.utility-bar { border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.age-badge { color: var(--brass-light); }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(8,11,13,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-main { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand-seal {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  aspect-ratio: 1;
  background: url('../images/talveri-nova-logo-256.png') center / contain no-repeat;
  color: transparent;
  font-size: 0;
  overflow: hidden;
}
.brand-word { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-word small { display: block; color: var(--muted); font: .54rem/1.2 var(--sans); letter-spacing: .2em; }
.nav-toggle { display: none; border: 1px solid var(--line); background: transparent; color: var(--paper); padding: .55rem .7rem; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 1.55rem; }
.site-nav a { color: #c8c8c0; font-size: .78rem; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--brass-light); }

.hero { min-height: 78vh; display: grid; align-items: end; position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('../images/hero-history.jpg') 50% 50% / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,8,9,.94) 0%, rgba(5,8,9,.6) 48%, rgba(5,8,9,.2) 100%), linear-gradient(0deg, #080b0d 0%, transparent 45%); }
.hero-content { padding: 9rem 0 6rem; max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.4rem; color: var(--brass-light); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 46px; height: 1px; background: var(--brass); }
h1,h2,h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 8vw, 7.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.2rem, 4vw, 4.3rem); letter-spacing: -.03em; }
h3 { font-size: 1.45rem; }
.hero-lede { max-width: 620px; margin: 1.7rem 0 2.2rem; color: #d3d1ca; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 48px; padding: .7rem 1.2rem; border: 1px solid var(--brass); color: var(--ink); background: var(--brass); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: .2s ease; }
.button:hover { color: var(--ink); background: var(--brass-light); transform: translateY(-2px); }
.button.ghost { color: var(--paper); background: rgba(8,11,13,.45); border-color: rgba(233,228,216,.35); }
.button.ghost:hover { color: var(--brass-light); border-color: var(--brass); }

.section { padding: clamp(5rem, 9vw, 9rem) 0; }
.section-compact { padding: 3rem 0; }
.section-rule { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 4rem; margin-bottom: 3.4rem; }
.section-heading p { max-width: 620px; margin: .35rem 0 0; color: var(--muted); }
.kicker { color: var(--brass); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--ink-2); padding: 2rem; position: relative; transition: background .25s ease; }
.card:hover { background: var(--panel); }
.card-number { color: var(--brass); font: italic 1rem var(--serif); }
.card h3 { margin: 3rem 0 1rem; }
.card p { color: var(--muted); margin: 0 0 1.4rem; }
.card-link { color: var(--brass-light); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.feature { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 520px; border: 1px solid var(--line); background: var(--panel); }
.feature-image { min-height: 400px; object-fit: cover; width: 100%; height: 100%; filter: saturate(.75) contrast(1.05); }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5rem); }
.feature-copy p { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--line); }
.fact { padding: 2rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; color: var(--brass-light); font: 2.3rem var(--serif); }
.fact span { color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }

.page-hero { position: relative; min-height: 500px; display: flex; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: var(--page-image, url('../images/casino-interior.jpg')) center / cover; opacity: .35; filter: saturate(.65); }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #080b0d 0%, rgba(8,11,13,.5) 70%, rgba(8,11,13,.2)); }
.page-hero-content { position: relative; z-index: 1; max-width: 900px; padding: 8rem 0 4rem; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); }
.page-summary { max-width: 760px; color: #d0cec7; font-size: 1.1rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.article-shell { display: grid; grid-template-columns: 230px minmax(0,760px); gap: clamp(2rem,7vw,7rem); justify-content: center; padding: 5rem 0 8rem; }
.toc { position: sticky; top: 120px; align-self: start; border-left: 1px solid var(--line); padding-left: 1.2rem; }
.toc-title { color: var(--brass); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.toc a { display: block; margin: .8rem 0; color: var(--muted); font-size: .8rem; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--brass-light); }
.article { min-width: 0; }
.article > p:first-of-type { color: #dad7ce; font: 1.38rem/1.65 var(--serif); }
.article h2 { margin: 4.5rem 0 1.4rem; padding-top: 1rem; font-size: clamp(2rem,4vw,3.2rem); }
.article h3 { margin: 2.5rem 0 1rem; color: var(--brass-light); }
.article p, .article li { color: #b8bbb6; }
.article li + li { margin-top: .6rem; }
.article blockquote { margin: 3rem 0; padding: 1.5rem 0 1.5rem 2rem; border-left: 2px solid var(--brass); color: var(--paper); font: 1.3rem/1.55 var(--serif); }
.callout { margin: 2.5rem 0; padding: 1.5rem; background: rgba(198,164,92,.07); border: 1px solid var(--line); }
.callout strong { color: var(--brass-light); }
.timeline { margin: 2rem 0; border-left: 1px solid var(--brass); }
.timeline-item { padding: 0 0 2rem 1.8rem; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -5px; top: .5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
.timeline-item time { color: var(--brass); font-size: .72rem; letter-spacing: .1em; }
.timeline-item h3 { margin: .35rem 0; color: var(--paper); }
.source-note { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding: 3rem; background: linear-gradient(135deg, #161d1f, #111416); border: 1px solid var(--line); }
.newsletter p { color: var(--muted); margin-bottom: 0; }
.newsletter-form { display: flex; gap: .6rem; }
.newsletter input { width: min(300px,50vw); border: 1px solid var(--line); background: #090d0e; color: var(--paper); padding: .8rem 1rem; }
.form-note { grid-column: 1/-1; min-height: 1.5rem; color: var(--brass-light); font-size: .8rem; }

.site-footer { border-top: 1px solid var(--line); background: #060809; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; padding: 5rem 0; }
.footer-main p { color: var(--muted); max-width: 360px; font-size: .88rem; }
.footer-heading { color: var(--brass); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-links a { display: block; margin: .65rem 0; color: var(--muted); font-size: .85rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding: 1.3rem 0; border-top: 1px solid var(--line); color: #777d79; font-size: .72rem; }
.legal-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem 1.6rem; padding: 1rem 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; letter-spacing: .06em; }
.legal-strip a { text-decoration: none; }
.back-top { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 25; width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(8,11,13,.9); color: var(--brass); cursor: pointer; opacity: 0; pointer-events: none; transition: .2s; }
.back-top.visible { opacity: 1; pointer-events: auto; }

.age-dialog { width: min(560px,calc(100% - 32px)); color: var(--paper); background: #0d1214; border: 1px solid rgba(198,164,92,.45); padding: 0; box-shadow: 0 30px 100px #000; }
.age-dialog::backdrop { background: rgba(2,4,5,.88); backdrop-filter: blur(8px); }
.dialog-inner { padding: clamp(2rem,7vw,4rem); }
.dialog-mark { color: var(--brass); font: 3rem var(--serif); }
.dialog-inner h2 { margin: 1rem 0; }
.dialog-inner p { color: var(--muted); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.legal { max-width: 820px; padding: 5rem 0 8rem; }
.legal h1 { font-size: clamp(3rem,7vw,5rem); }
.legal h2 { font-size: 2rem; margin: 3rem 0 1rem; }
.legal p, .legal li { color: var(--muted); }
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.not-found strong { display: block; color: var(--brass); font: clamp(6rem,18vw,14rem)/.8 var(--serif); opacity: .35; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 1.5rem 20px 2rem; background: #090d0f; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .site-nav.open { display: flex; }
  .section-heading, .feature, .article-shell, .footer-main { grid-template-columns: 1fr; }
  .toc { position: static; columns: 2; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .facts { grid-template-columns: repeat(2,1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .utility-inner span:last-child { display: none; }
  .header-main { min-height: 68px; }
  .brand-seal { width: 40px; }
  .brand-word { font-size: 1rem; }
  .hero { min-height: 690px; }
  .hero-content { padding-bottom: 4rem; }
  h1 { font-size: 3.3rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-heading { gap: 1.5rem; }
  .feature-copy { padding: 2rem; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .toc { columns: 1; }
  .article-shell { padding-top: 3rem; }
  .newsletter { padding: 2rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter input { width: 100%; }
  .footer-main { gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

