/* Red Rock World guides — shares the homepage palette and type. Layout: one reading column, 44rem, with a slim header and footer. */
:root {
  color-scheme: dark;
  --night: #0c0708;
  --panel: #170b0d;
  --panel-2: #1f0e11;
  --cream: #f8f0e7;
  --body: #d9c8c0;
  --muted: #b3a19b;
  --gold: #f3bf71;
  --red: #df2331;
  --red-bright: #ff4150;
  --line: rgba(255, 236, 218, 0.15);
  --serif: "DM Sans", Arial, sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--body); font: 400 1.0625rem/1.75 var(--sans); }
a { color: var(--gold); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffd79a; outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(72rem, 100%); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.skip-link { position: absolute; left: 1rem; top: -4rem; padding: 0.6rem 1rem; background: #fff; color: #160c0d; z-index: 20; }
.skip-link:focus { top: 1rem; }

.g-header { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #16090b, var(--night)); }
.g-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.g-logo img { display: block; width: 4.25rem; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 12px rgba(243, 191, 113, 0.28)); }
.g-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.g-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; color: #f7f4ee; text-decoration: none; }
.g-nav a:hover { color: var(--gold); }
.g-nav a[aria-current="page"] { color: var(--gold); }

.crumbs { margin: 2rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--muted); font-size: 0.8125rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.4rem; color: #7d6b66; }
.crumbs a { color: var(--muted); }

.article { width: min(44rem, 100%); margin: 0 auto; padding-bottom: 4rem; }
.article-head { padding: 1.75rem 0 1.5rem; }
.kicker { margin: 0 0 0.85rem; color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3 { color: var(--cream); text-wrap: balance; }
h1 { margin: 0 0 1rem; font: 600 clamp(2.5rem, 6vw, 3.9rem)/1.02 var(--serif); letter-spacing: -0.035em; }
.byline { margin: 0; color: var(--muted); font-size: 0.875rem; }
.hero-figure { margin: 0 0 2rem; overflow: hidden; border: 1px solid rgba(243, 191, 113, 0.35); border-radius: 0.9rem; background: var(--panel); }
.hero-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article h2 { margin: 2.75rem 0 0.75rem; font: 600 clamp(1.85rem, 3.6vw, 2.35rem)/1.1 var(--serif); letter-spacing: -0.02em; scroll-margin-top: 1.5rem; }
.article p, .article li { max-width: 68ch; }
.article p { margin: 0 0 1.1rem; }
.article ul, .article ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.article li { margin-bottom: 0.45rem; }
.article strong { color: var(--cream); }
.lead { color: #eee0d6; font-size: 1.2rem; line-height: 1.65; }

.toc { margin: 1.5rem 0 2rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--panel); }
.toc > p { margin: 0 0 0.5rem; color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: 0.2rem 0; font-size: 0.95rem; }
.toc a { color: #eadbd1; text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; }

.example { position: relative; padding: 2.4rem 1.25rem 1.15rem; border: 1px solid rgba(243, 191, 113, 0.3); border-radius: 0.8rem; background: linear-gradient(145deg, #241011, #140a0b); color: #f1e2d6; font-size: 1rem; }
.example span { position: absolute; top: 0.9rem; left: 1.25rem; color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.table-wrap { margin: 0 0 1.4rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 0.8rem; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
th, td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--panel-2); color: var(--gold); font-size: 0.8125rem; letter-spacing: 0.04em; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--cream); font-weight: 600; }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

.cta { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: 1.5rem; align-items: center; margin: 3rem 0 0; padding: 1.75rem; border: 1px solid rgba(243, 191, 113, 0.45); border-radius: 1rem; background: radial-gradient(circle at 90% 10%, rgba(235, 41, 53, 0.28), transparent 16rem), linear-gradient(110deg, #2a1013, #14090a); }
.cta h2 { margin: 0 0 0.5rem !important; font-size: clamp(1.7rem, 3.4vw, 2.2rem) !important; }
.cta p { margin: 0 0 1.1rem; color: #e3cfc5; }
.cta img { width: 7.5rem; filter: drop-shadow(0 0 12px rgba(235, 45, 53, 0.4)); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.button { display: inline-flex; min-height: 3rem; align-items: center; gap: 0.5rem; padding: 0.75rem 1.2rem; border-radius: 0.65rem; background: var(--red); color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none; box-shadow: 0 4px 18px rgba(223, 35, 49, 0.25); }
.button:hover { background: var(--red-bright); }
.text-link { font-weight: 700; font-size: 0.95rem; }

.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related > p { margin: 0 0 1rem; color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.g-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 0.85rem; background: linear-gradient(160deg, #1d0d10, #110a0c); color: inherit; text-decoration: none; transition: border-color 160ms ease, transform 160ms ease; }
.g-card:hover { border-color: rgba(243, 191, 113, 0.6); transform: translateY(-3px); }
.g-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.g-card span { display: flex; flex: 1; flex-direction: column; gap: 0.45rem; padding: 1rem 1.15rem 1.2rem; }
.g-card strong { color: var(--cream); font-size: 1.1rem; line-height: 1.3; }
.g-card small { color: #c9b8b3; font-size: 0.9rem; line-height: 1.55; }
.g-card em { margin-top: auto; padding-top: 0.4rem; color: var(--gold); font-size: 0.875rem; font-style: normal; font-weight: 700; }

.index-head { width: min(44rem, 100%); padding: 1.75rem 0 2rem; }
.index-head p:last-child { margin: 0; color: #e3d3ca; font-size: 1.15rem; }
.index-list { padding-bottom: 4rem; }
.index-list .card-grid { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

.g-footer { border-top: 1px solid var(--line); background: #0a0506; color: var(--muted); font-size: 0.875rem; }
.g-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; }
.g-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.g-footer a { display: inline-flex; min-height: 2.75rem; align-items: center; color: #e6d6cb; text-decoration: none; }
.g-footer a:hover { color: var(--gold); }
.g-footer .wordmark { color: #f7e9da; font-weight: 700; letter-spacing: 0.06em; }
.g-footer .wordmark span { color: var(--gold); }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .lead { font-size: 1.1rem; }
  .g-nav { gap: 0 1rem; font-size: 0.75rem; letter-spacing: 0.1em; }
  .g-logo img { width: 3.5rem; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-card, .g-card:hover { transition: none; transform: none; }
}
.article h3 { margin: 1.6rem 0 0.4rem; font: 700 1.1rem/1.35 var(--sans); }
.article .crumbs { margin: 2rem 0 0; padding-left: 0; }

.site-notice { padding: 0.55rem max(16px, env(safe-area-inset-right, 0px)) 0.55rem max(16px, env(safe-area-inset-left, 0px)); background: #2a1013; color: #f3dcc0; font: 500 0.8125rem/1.45 var(--sans); text-align: center; border-bottom: 1px solid rgba(243, 191, 113, 0.3); }
.site-notice a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }

/* v6: bold modern headings to match the homepage */
h1, .article h2, .cta h2 { font-weight: 700 !important; letter-spacing: -0.04em !important; }
