/*
Theme Name: Danger Unified
Theme URI: https://dangerdistillery.com/
Description: A modern, accessible standalone theme connecting Danger Distillery, Springs Theater, and Danger Systems.
Author: Danger Distillery
Version: 2.1.0
Text Domain: danger-unified
*/

:root {
  --danger-ink: #0a0a0a;
  --danger-paper: #f3eee4;
  --danger-cream: #fffaf0;
  --danger-rust: #a84524;
  --danger-gold: #d8a84e;
  --danger-muted: #b9b1a3;
  --danger-line: rgba(255, 250, 240, 0.16);
  --danger-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--danger-ink);
  color: var(--danger-cream);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; top: 12px; left: 12px; z-index: 9999;
  width: auto; height: auto; padding: .75rem 1rem; margin: 0;
  clip: auto; background: var(--danger-cream); color: var(--danger-ink);
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.94);
  border-bottom: 1px solid var(--danger-line);
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: var(--danger-max); margin: 0 auto; min-height: 78px;
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { object-fit: contain; }
.brand .brand-mark { width: 90px; height: 46px; }
.brand .brand-wordmark { width: 210px; height: 70px; }
.brand-copy { display: grid; line-height: 1; text-transform: uppercase; letter-spacing: .08em; }
.brand-copy span { margin-top: 6px; color: var(--danger-gold); font-size: .67rem; letter-spacing: .22em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-size: .82rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--danger-gold); }
.nav-cta { padding: 10px 15px; border: 1px solid var(--danger-gold); }
.menu-toggle { display: none; background: transparent; color: #fff; border: 1px solid var(--danger-line); padding: 9px 12px; font: inherit; }

.danger-hero {
  position: relative; min-height: 82vh; display: grid; align-items: end;
  background: #070707; overflow: hidden;
}
.hero-still { position: absolute; inset: 0 auto 0 0; width: 74%; height: 100%; object-fit: cover; object-position: center; background: #070707; }
.danger-hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(7,7,7,.02) 0%, rgba(7,7,7,.06) 40%, rgba(7,7,7,.78) 59%, #070707 75%); pointer-events: none; }
.danger-hero::after {
  content: ""; position: absolute; z-index: 1; inset: 0;
  background: linear-gradient(0deg, #0a0a0a 0%, transparent 42%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--danger-max); width: 100%; margin: 0 auto; padding: 110px 24px 90px 58%; }
.eyebrow { color: var(--danger-gold); text-transform: uppercase; letter-spacing: .24em; font-size: .76rem; font-weight: 800; }
.danger-hero h1 {
  max-width: 840px; margin: 16px 0 22px; color: #fff;
  font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 8vw, 7.6rem); line-height: .92; letter-spacing: -.055em;
}
.hero-lede { max-width: 650px; margin: 0 0 34px; color: #e7dfd2; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center;
  padding: 12px 20px; border: 1px solid var(--danger-gold); background: var(--danger-gold); color: #111;
  text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 900;
}
.button:hover, .button:focus-visible { background: var(--danger-cream); border-color: var(--danger-cream); }
.button.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.still-proof { padding: 22px 24px; background: var(--danger-gold); color: #111; }
.still-proof p { margin: 0; font-size: 1rem; letter-spacing: .02em; }
.still-proof strong { font-family: Georgia, serif; font-size: 1.25rem; }

.danger-section { padding: 92px 24px; }
.danger-section.light { background: var(--danger-paper); color: #171513; }
.section-inner { max-width: var(--danger-max); margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: .8fr 1.6fr; gap: 60px; align-items: start; margin-bottom: 50px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.04em; }
.section-heading p { max-width: 660px; margin: 0; font-size: 1.12rem; }

.spirit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.spirit-card { min-height: 410px; padding: 28px; display: flex; flex-direction: column; justify-content: end; position: relative; overflow: hidden; background: #171513; color: #fff; }
.spirit-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.92), rgba(0,0,0,.08)); z-index: 1; }
.spirit-card > * { position: relative; z-index: 2; }
.spirit-card:nth-child(1) { background: url("assets/images/springs-artisan-label-detail.jpg") center/cover; }
.spirit-card:nth-child(2) { background: url("assets/images/springs-tropical-label-detail.jpg") center/cover; }
.spirit-card small { color: var(--danger-gold); letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.spirit-card h3 { margin: 8px 0 4px; font-family: Georgia, serif; font-size: 2rem; }
.spirit-card p { margin: 0; color: #dfd7ca; }

.future-products { background: #111; }
.future-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.future-card { position: relative; margin: 0; padding: 12px 12px 22px; border: 1px solid var(--danger-line); background: #080808; }
.future-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.future-card span { position: absolute; z-index: 2; top: 24px; left: 24px; padding: 8px 12px; background: var(--danger-gold); color: #111; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.future-card h3 { margin: 18px 8px 0; font-family: Georgia, serif; font-size: 1.35rem; }

.gallery-section { background: #0d0d0d; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery-grid figure { margin: 0; border: 1px solid var(--danger-line); background: #080808; }
.gallery-grid img { width: 100%; height: 360px; object-fit: cover; }
.gallery-grid .gallery-ship { grid-column: 1 / -1; }
.gallery-grid .gallery-ship img { height: min(560px, 58vw); object-position: center; }
.gallery-grid figcaption { padding: 14px 18px 18px; color: var(--danger-muted); font-size: .9rem; }

.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.code-card { padding: 36px; border: 1px solid var(--danger-line); background: #111; }
.code-card span { color: var(--danger-gold); font-size: .8rem; font-weight: 900; letter-spacing: .18em; }
.code-card h3 { margin: 10px 0; font-family: Georgia, serif; font-size: 1.7rem; }
.code-card p { margin: 0; color: var(--danger-muted); }

.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.family-card { padding: 34px; border: 1px solid rgba(0,0,0,.16); background: rgba(255,255,255,.42); }
.family-card[aria-current="page"] { background: #171513; color: #fff; }
.family-card h3 { margin: 10px 0; font-family: Georgia, serif; font-size: 1.7rem; }
.family-card p { min-height: 86px; }
.family-card a { font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; text-underline-offset: 5px; }

.visit-band { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center; }
.visit-band h2 { margin: 0 0 18px; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; }
.visit-details { padding: 28px; border-left: 3px solid var(--danger-gold); }
.visit-details p { margin: 0 0 9px; }
.visit-details a { color: var(--danger-gold); }

.site-footer { border-top: 1px solid var(--danger-line); background: #060606; }
.footer-inner { max-width: var(--danger-max); margin: 0 auto; padding: 50px 24px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-content: start; justify-content: flex-end; }
.footer-links a { color: var(--danger-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer p { color: var(--danger-muted); margin: 10px 0 0; font-size: .85rem; }

.site-content { max-width: 960px; margin: 0 auto; padding: 70px 24px; background: var(--danger-ink); color: var(--danger-cream); }
.site-content h1, .site-content h2, .site-content h3 { font-family: Georgia, serif; }
.site-content input, .site-content textarea, .site-content select { max-width: 100%; padding: 12px; border: 1px solid #777; background: #fff; color: #111; }

.story-hero { min-height: 66vh; display: flex; align-items: end; background: linear-gradient(90deg, rgba(7,7,7,.3), rgba(7,7,7,.94)), url("assets/images/danger-copper-still-hero.png") 30% center/cover no-repeat; }
.story-hero-inner { width: 100%; max-width: var(--danger-max); margin: 0 auto; padding: 120px 24px 82px 50%; }
.story-hero h1 { margin: 12px 0 22px; max-width: 760px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .9; text-transform: uppercase; }
.story-intro { max-width: 680px; color: var(--danger-paper); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.story-section h2 { margin: 10px 0 24px; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: .95; text-transform: uppercase; }
.story-section p { font-size: 1.08rem; line-height: 1.75; }
.story-profile { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(38px, 7vw, 90px); }
.story-photo { aspect-ratio: 4/5; overflow: hidden; border: 1px solid rgba(20,18,15,.2); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.story-copy { max-width: 880px; }
.story-theater { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: center; gap: clamp(40px, 8vw, 100px); }
.story-theater blockquote { margin: 0; padding: 40px; border-left: 4px solid var(--danger-rust); background: #171513; color: var(--danger-cream); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25; }
.story-theater cite { display: block; margin-top: 22px; color: var(--danger-gold); font-size: .8rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.story-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.story-contact { margin-top: 28px; color: var(--danger-muted); }
.story-contact a { color: var(--danger-gold); }

@media (max-width: 860px) {
	.story-hero { min-height: 560px; background-position: 36% center; }
	.story-hero-inner { padding: 210px 20px 64px; }
	.story-profile, .story-theater { grid-template-columns: 1fr; }
	.story-photo { max-height: 520px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 78px 0 auto; display: none; padding: 28px 24px 34px; background: #0a0a0a; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .section-heading, .visit-band { grid-template-columns: 1fr; gap: 24px; }
  .spirit-grid, .future-grid, .family-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .gallery-ship { grid-column: auto; }
  .code-grid { grid-template-columns: 1fr; }
  .family-card p { min-height: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .hero-inner { padding-left: 24px; }
  .hero-still { width: 100%; opacity: .58; object-fit: cover; object-position: center; }
  .danger-hero::before { background: linear-gradient(90deg, rgba(7,7,7,.94), rgba(7,7,7,.55)); }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand .brand-mark { display: none; }
  .brand .brand-wordmark { width: 150px; height: 58px; }
  .brand-copy span { display: none; }
  .danger-section { padding: 68px 20px; }
  .hero-inner { padding: 90px 20px 68px; }
  .button { width: 100%; }
  .spirit-card { min-height: 350px; }
  .code-card, .family-card { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
