/* Sample Art marketing site
   • Brand blue: #003252
   • Brand orange: #FF9B00
   • Responsive, accessible, and fast.
*/

:root {
  --bg: #ffffff;
  --text: #0d1820;
  --muted: #516271;
  --card: #f5f7f9;
  --border: #e2e6ea;
  --blue: #003252;
  --orange: #FF9B00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1419;        /* very dark blueish gray */
    --text: #e9eef3;
    --muted: #9fb1c0;
    --card: #141b22;
    --border: #23303b;
  }
}

html, body {
  height: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute; left: -999px; top: -999px;
}
.skip-link:focus { left: 1rem; top: 1rem; background: var(--orange); color: #000; padding: .5rem .75rem; border-radius: .5rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0;
  gap: .75rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand-name { font-weight: 700; letter-spacing: .2px; }

.site-header nav a, .site-header nav button {
  margin-inline: .2rem;
  color: var(--text);
}

nav a { text-decoration: none; padding: .55rem .7rem; border-radius: .6rem; }
nav a:hover { background: var(--card); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem .9rem; border-radius: .8rem; border: 1px solid var(--border);
  cursor: pointer; text-decoration: none; font-weight: 600;
}
.btn-lg { padding: .8rem 1.05rem; font-size: 1.05rem; }
.btn-primary { background: var(--orange); color: #1a1a1a; border-color: color-mix(in srgb, var(--orange), #000 10%); }
.btn-primary:hover { filter: brightness(0.98); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: color-mix(in srgb, var(--blue) 8%, var(--bg)); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--card); }

.hero {
  /* Cooler, premium dark hero with subtle orange glow */
  background:
    radial-gradient(1100px 520px at 85% 10%, color-mix(in srgb, var(--orange) 25%, transparent), transparent 60%),
    linear-gradient(180deg, #031923 0%, #083042 55%, #0d3b4b 100%);
  color: #eaf3f9;
  padding: 3.8rem 0 2.4rem;
}

.hero .lead { color: color-mix(in srgb, #ffffff 82%, var(--blue)); }
.hero .btn-outline { color: #eaf3f9; border-color: rgba(234,243,249,.7); }
.hero .btn-outline:hover { background: rgba(255,255,255,.08); }
.hero .bullets { color: color-mix(in srgb, #ffffff 78%, var(--blue)); }
.hero-copy h1 { font-weight: 800; letter-spacing: -0.02em; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 { font-size: clamp(1.8rem, 3vw + .5rem, 3rem); margin: 0 0 .6rem; }
.lead { font-size: 1.125rem; max-width: 52ch; }
.cta-row { display: flex; gap: .75rem; margin: 1rem 0 1rem; flex-wrap: wrap; }
.bullets { margin: 0; padding-left: 1.2rem; color: #1a2730; }

.hero-art { position: relative; border-radius: 1.4rem; overflow: visible; box-shadow: none; }

.fan-stack { position: relative; height: clamp(340px, 48vw, 560px); }
.fan-stack .fan {
  position: absolute; inset: 0 auto auto 0;
  width: min(540px, 78%);
  aspect-ratio: 9/19.5;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 80px rgba(0,0,0,.45), 0 8px 18px rgba(0,0,0,.25);
  object-fit: cover; background: #000;
}
.fan-stack .fan.s1 { transform: rotate(-10deg) translate(-8%, 6%); z-index: 1; opacity: .95; }
.fan-stack .fan.s2 { transform: translate(12%, 0); z-index: 2; }
.fan-stack .fan.s3 { transform: rotate(10deg) translate(28%, 8%); z-index: 1; opacity: .98; }

.section { padding: 3rem 0; }
.section.alt { background: var(--card); }
.section-title { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2rem); margin: 0 0 1rem; }
.section-subtitle { margin: 0 0 1.25rem; color: var(--muted); }

.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; }
.card h3 { margin-top: .25rem; margin-bottom: .25rem; }
.icon { font-size: 1.4rem; }

.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}
.shot { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); background: #000; }
.shot img { aspect-ratio: 9/19.5; object-fit: cover; width: 100%; }

.center { text-align: center; margin-top: 1rem; }

.narrow { max-width: 75ch; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.muted { color: var(--muted); }

dialog#lightbox {
  border: none;
  background: color-mix(in srgb, var(--bg) 70%, #000);
  padding: 0;
  max-width: min(95vw, 900px);
  width: fit-content;
  border-radius: 1rem;
}
#lightbox img { width: 100%; height: auto; display: block; }
#lightbox::backdrop { background: rgba(0,0,0,.6); }
#lightbox .close {
  position: absolute; top: .5rem; right: .5rem; border: 0; background: rgba(0,0,0,.5); color: white;
  width: 36px; height: 36px; border-radius: .6rem; cursor: pointer;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .shots-grid { grid-template-columns: repeat(2, 1fr); }
  .fan-stack .fan { width: 86%; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .shots-grid { grid-template-columns: 1fr; }
  .header-row { flex-wrap: wrap; }
  .site-header nav a, .site-header nav button { padding: .55rem; }
  .fan-stack { height: 380px; }
  .fan-stack .fan { width: 96%; border-radius: 22px; }
  .fan-stack .fan.s1 { transform: rotate(-8deg) translate(-6%, 8%); }
  .fan-stack .fan.s3 { transform: rotate(8deg) translate(18%, 10%); }
}

/* Theme override */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --text: #0d1820;
  --muted: #516271;
  --card: #f5f7f9;
  --border: #e2e6ea;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1419;
  --text: #e9eef3;
  --muted: #9fb1c0;
  --card: #141b22;
  --border: #23303b;
}
