/* =============================================
   THE HOLIDAY INN GREAT SIGN
   Art direction: Vintage Americana / Neon Night
   Palette: deep warm black + amber gold + Holiday Inn green
   Fonts: Boska (display) + Switzer (body)
   ============================================= */

/* --- DESIGN TOKENS --- */
:root {
  --font-display: 'Boska', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --content-narrow: 700px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* --- DARK (DEFAULT: VINTAGE NIGHT) --- */
:root, [data-theme="dark"] {
  --color-bg: #110f0c;
  --color-surface: #1a1714;
  --color-surface-2: #221f1a;
  --color-border: #3a3530;
  --color-divider: #2d2924;
  --color-text: #e8e0d4;
  --color-text-muted: #9e9588;
  --color-text-faint: #6b6359;
  --color-primary: #d4a43a;       /* amber/gold neon */
  --color-primary-hover: #e8bc52;
  --color-green: #3bb85e;         /* Holiday Inn green neon */
  --color-green-dim: #2a7a3f;
  --color-red: #c44b3f;           /* sign red spine */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
  --glow-primary: 0 0 40px rgba(212,164,58,.15);
  --glow-green: 0 0 40px rgba(59,184,94,.1);
}

/* --- LIGHT MODE --- */
[data-theme="light"] {
  --color-bg: #f5f0e8;
  --color-surface: #fffcf5;
  --color-surface-2: #ebe6dc;
  --color-border: #d2cbc0;
  --color-divider: #ddd7cd;
  --color-text: #1a1710;
  --color-text-muted: #6b6358;
  --color-text-faint: #9e9588;
  --color-primary: #9a7520;
  --color-primary-hover: #7a5c15;
  --color-green: #257a3a;
  --color-green-dim: #1b5e2c;
  --color-red: #9e3830;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --glow-primary: none;
  --glow-green: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #f5f0e8;
    --color-surface: #fffcf5;
    --color-surface-2: #ebe6dc;
    --color-border: #d2cbc0;
    --color-divider: #ddd7cd;
    --color-text: #1a1710;
    --color-text-muted: #6b6358;
    --color-text-faint: #9e9588;
    --color-primary: #9a7520;
    --color-primary-hover: #7a5c15;
    --color-green: #257a3a;
    --color-green-dim: #1b5e2c;
    --color-red: #9e3830;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
    --glow-primary: none;
    --glow-green: none;
  }
}

/* --- BASE RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  min-height: 100dvh;
  line-height: 1.7;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
::selection { background: rgba(212,164,58,.25); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, [role="button"] { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive), opacity var(--transition-interactive); }
button { cursor: pointer; background: none; border: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.site-header.hidden { transform: translateY(-100%); }
.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo svg { color: var(--color-primary); }
.main-nav {
  display: flex;
  gap: var(--space-5);
  flex: 1;
  justify-content: center;
  overflow-x: auto;
}
.main-nav a {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.theme-toggle {
  flex-shrink: 0;
  color: var(--color-text-muted);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}
.theme-toggle:hover { color: var(--color-primary); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-bg) 0%,
    rgba(17,15,12,.82) 20%,
    rgba(17,15,12,.35) 50%,
    rgba(17,15,12,.15) 75%,
    rgba(17,15,12,.25) 100%
  );
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    to top,
    var(--color-bg) 0%,
    rgba(245,240,232,.82) 20%,
    rgba(245,240,232,.40) 50%,
    rgba(245,240,232,.15) 75%,
    rgba(245,240,232,.30) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-default);
  padding: var(--space-12) var(--space-6) var(--space-16);
  text-align: center;
}
.hero-kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.0;
  margin-bottom: var(--space-6);
}
.hero-title em {
  font-style: italic;
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto var(--space-6);
  line-height: 1.5;
}
.hero-byline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: .04em;
  margin-bottom: var(--space-3);
}
.hero-meta {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-meta .dot { opacity: .5; }
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-faint);
  animation: bobble 2s ease-in-out infinite;
}
@keyframes bobble { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* --- ARTICLE LAYOUT --- */
.article-wrap {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

/* --- TOC SIDEBAR --- */
.toc {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}
.toc-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: var(--space-4);
}
.toc nav { display: flex; flex-direction: column; gap: var(--space-2); }
.toc-link {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  border-left: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.toc-link:hover { color: var(--color-primary); }
.toc-link.active { color: var(--color-primary); border-left-color: var(--color-primary); }
.toc-sources { margin-top: var(--space-4); opacity: .7; }

@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; padding-top: var(--space-10); }
  .toc { display: none; }
}

/* --- ARTICLE BODY --- */
.article-body { max-width: var(--content-narrow); }
.article-section { margin-bottom: var(--space-16); }
.article-section p {
  margin-bottom: var(--space-5);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
}
.article-section a {
  color: var(--color-primary);
  text-decoration-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
  text-underline-offset: 3px;
}
.article-section a:hover { text-decoration-color: var(--color-primary); }
.article-section strong { font-weight: 600; }

/* --- SECTION HEADINGS --- */
.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.section-heading--small {
  font-size: var(--text-lg);
  border-bottom-color: var(--color-divider);
}

/* --- PULL QUOTES --- */
.pull-quote {
  margin: var(--space-10) 0;
  padding: var(--space-8) var(--space-6);
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--glow-primary);
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  max-width: none;
}
.pull-quote cite {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-style: normal;
  color: var(--color-text-faint);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* --- IMAGES --- */
.image-float {
  margin: var(--space-8) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.image-float img {
  width: 100%;
  height: auto;
}
.image-float figcaption, .full-bleed-figure figcaption {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  line-height: 1.5;
}
.full-bleed-figure {
  margin: var(--space-4) 0 var(--space-16);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.full-bleed-figure img { width: 100%; height: auto; }

/* --- DESIGN ELEMENTS GRID --- */
.design-elements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin: var(--space-8) 0;
}
.design-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color .2s, box-shadow .2s;
}
.design-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
}
.design-card-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.design-card-icon svg { width: 100%; height: 100%; }
.design-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.design-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- SOURCES --- */
.sources-section { border-top: 1px solid var(--color-divider); padding-top: var(--space-8); }
.sources-list {
  list-style: decimal;
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.sources-list li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.sources-list a { color: var(--color-text-muted); text-decoration-color: color-mix(in srgb, var(--color-text-muted) 40%, transparent); }
.sources-list a:hover { color: var(--color-primary); }

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-16) var(--space-6);
  text-align: center;
}
.footer-inner { max-width: var(--content-default); margin: 0 auto; }
.footer-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.footer-sub { font-size: var(--text-xs); color: var(--color-text-faint); margin-bottom: var(--space-2); }
.footer-credit { font-size: var(--text-xs); color: var(--color-text-faint); }

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- MOBILE --- */
@media (max-width: 600px) {
  .header-inner { padding: var(--space-2) var(--space-4); }
  .main-nav { gap: var(--space-3); }
  .hero-content { padding: var(--space-8) var(--space-4) var(--space-12); }
  .hero-meta { flex-wrap: wrap; justify-content: center; }
  .article-body { max-width: 100%; }
  .design-elements { grid-template-columns: 1fr; }
  .pull-quote { padding: var(--space-5) var(--space-4); margin: var(--space-6) 0; }
}

/* --- MOBILE NAV HIDDEN --- */
@media (max-width: 720px) {
  .main-nav { display: none; }
  .site-logo span { display: none; }
}
