/* Casinojournalen — editorial magazine theme */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #fbf6ec;
  --cream-2: #f2ebd9;
  --paper: #fefbf3;
  --forest: #1e3a2b;
  --forest-2: #2d5240;
  --forest-light: #4a6b57;
  --burgundy: #8b2635;
  --burgundy-dark: #6b1c28;
  --gold: #c9a961;
  --gold-dark: #a8863e;
  --ink: #1a1a1a;
  --ink-2: #3d3d3d;
  --ink-3: #6b6b6b;
  --line: #d9cfb8;
  --line-2: #e6ddc4;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand span {
  color: var(--burgundy);
  font-style: italic;
}

nav {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--forest);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}

nav a:hover { border-bottom-color: var(--gold); }
nav a.active { border-bottom-color: var(--burgundy); color: var(--burgundy); }

/* Breadcrumb */
.breadcrumb {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  color: var(--ink-3);
  padding: 20px 0 8px;
  font-style: italic;
}

.breadcrumb a {
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px dotted var(--forest);
}

.breadcrumb a:hover { color: var(--burgundy); }
.breadcrumb span { margin: 0 8px; }

/* Main content */
main {
  padding-bottom: 60px;
}

.content { max-width: 780px; margin: 0 auto; }

/* Editorial labels */
.eyebrow {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  padding: 20px 0 8px;
  display: inline-block;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--burgundy);
  margin-left: 12px;
  vertical-align: middle;
}

/* Headings */
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

h1 em {
  font-style: italic;
  color: var(--burgundy);
  font-weight: 400;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--forest);
  margin: 48px 0 20px;
  letter-spacing: -0.3px;
}

h2::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 16px;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  color: var(--forest-2);
  margin: 32px 0 12px;
}

.lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 32px;
  font-style: italic;
}

/* Drop cap on first paragraph after lead */
.intro p:first-child::first-letter {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  float: left;
  line-height: 0.85;
  margin: 8px 12px 0 0;
  color: var(--burgundy);
  font-weight: 700;
}

p { margin-bottom: 18px; }
p a { color: var(--burgundy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover { color: var(--burgundy-dark); text-decoration-thickness: 2px; }

strong { color: var(--forest); font-weight: 700; }
em { color: var(--burgundy); font-style: italic; }

ul, ol { margin: 20px 0 24px 0; padding-left: 28px; }
li { margin-bottom: 10px; }
li::marker { color: var(--gold-dark); }

/* Hero */
.hero-figure {
  margin: 32px 0 40px;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--paper);
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-figure figcaption {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  color: var(--ink-3);
  padding: 12px 4px 4px;
  font-style: italic;
  border-top: 1px solid var(--line-2);
  margin-top: 12px;
}

/* Pullquote / callout */
.pullquote {
  border-left: 4px solid var(--burgundy);
  background: var(--cream-2);
  padding: 24px 28px;
  margin: 32px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--forest);
  font-style: italic;
}

.pullquote strong { color: var(--burgundy); font-style: normal; }

/* Fact box */
.fact-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  padding: 24px 28px;
  margin: 32px 0;
}

.fact-box .label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.fact-box h3 {
  margin-top: 0;
  font-size: 20px;
  color: var(--forest);
}

/* TOC */
.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 32px;
  margin: 40px 0;
}

.toc-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.toc ol {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.toc li {
  break-inside: avoid;
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
  counter-increment: toc;
  font-size: 15px;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 13px;
}

.toc a {
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.toc a:hover { color: var(--burgundy); border-bottom-color: var(--burgundy); }

/* FAQ */
.faq { margin: 48px 0; }

.faq h2 { margin-bottom: 24px; }

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  padding: 0;
}

.faq summary {
  cursor: pointer;
  padding: 20px 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--forest);
  font-size: 18px;
  position: relative;
  list-style: none;
  padding-right: 60px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--burgundy);
  font-weight: 400;
  font-family: Georgia, serif;
}

.faq details[open] summary::after { content: "−"; }

.faq details[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--burgundy);
}

.faq details p {
  padding: 18px 28px 22px;
  margin: 0;
  color: var(--ink-2);
}

/* Author bio */
.author-bio {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  margin: 48px 0 32px;
}

.author-bio img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio .author-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 700;
  margin-bottom: 4px;
}

.author-bio .author-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 2px;
}

.author-bio .author-title {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 10px;
  font-style: italic;
}

.author-bio p { font-size: 15px; margin: 0; color: var(--ink-2); }

/* RG box */
.rg-box {
  background: var(--forest);
  color: var(--cream);
  padding: 24px 28px;
  margin: 40px 0;
  border-left: 4px solid var(--gold);
}

.rg-box strong { color: var(--gold); }
.rg-box a { color: var(--gold); text-decoration: underline; }

/* Related */
.related { margin: 56px 0 40px; }
.related h2 { margin-bottom: 24px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}

.related-card:hover {
  border-color: var(--burgundy);
  transform: translateY(-3px);
}

.related-card .label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 700;
  margin-bottom: 10px;
}

.related-card .rc-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.related-card p { font-size: 14px; margin: 0; color: var(--ink-3); }

/* Simple page */
.simple-page { max-width: 780px; margin: 0 auto; padding: 20px 0; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  margin: 32px 0;
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 8px;
}

.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  border-radius: 0;
}

.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  background: white;
}

.contact-form button {
  background: var(--burgundy);
  color: var(--cream);
  border: none;
  padding: 14px 32px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.contact-form button:hover { background: var(--burgundy-dark); }

/* Footer */
.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-brand span { color: var(--cream); font-style: italic; }

.footer-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--forest-light);
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.site-footer p { font-size: 14px; margin: 0; color: rgba(251, 246, 236, 0.75); }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--forest-light);
  font-size: 13px;
  color: rgba(251, 246, 236, 0.6);
}

.footer-bottom p { color: inherit; margin-bottom: 6px; font-size: 13px; }

/* Responsive */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-header .container { flex-direction: column; gap: 14px; }
  nav { gap: 16px; font-size: 13px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .lead { font-size: 18px; }
  .toc ol { columns: 1; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .author-bio { flex-direction: column; text-align: left; }
  .author-bio img { width: 80px; height: 80px; }
  .pullquote, .fact-box, .toc { padding: 20px; }
  .intro p:first-child::first-letter { font-size: 56px; }
}

/* Print */
@media print {
  .site-header, .site-footer, nav, .related { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  h1, h2, h3 { color: black; page-break-after: avoid; }
  .container { max-width: 100%; }
  a { color: black; text-decoration: underline; }
  .pullquote, .fact-box { border: 1px solid #999; background: #f5f5f5; }
}
