/* Art Beyond Hype — one hand-written stylesheet, mobile-first.
   Colours/fonts/spacing measured from the live site's own CSS; the two
   breakpoints below (600/900) are the only deliberate change from what
   live uses today (768/1024), per this build's brief. */

:root {
  --bar: #8ce7f1;      /* top colour bar / header background, from live */
  --accent: #16a5b5;   /* live's brand teal, used for bars and buttons */
  --link: #0d6e78;     /* darkened for link TEXT only: #16a5b5 on white is
                           2.96:1, below WCAG AA; this is 5.97:1 */
  --ink: #000;         /* heading colour, from live */
  --body: #404040;     /* body text colour, from live */
  --muted: #666; /* #777 measured 4.47:1 on white, just under AA; this is 5.74:1 */
  --border: #e4e4e4;
  --bg: #fff;
  --nav-bg: #000;
  --nav-text: #eee;
  --font-body: Verdana, Geneva, sans-serif;      /* live's body stack */
  --font-head: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* live's heading stack */
  --font-brand: Impact, Charcoal, sans-serif;    /* live's site-title stack */
}

/* ---- base ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  margin: 0.8em 0 0.5em;
}
h1 { font-size: 1.7em; }
h2 { font-size: 1.28em; }
h3 { font-size: 1.21em; }
h4 { font-size: 1.14em; }
p { margin: 0 0 1em; }
a {
  color: var(--link);
  text-decoration: none;
}
a:hover, a:focus { text-decoration: underline; }
/* links inline within body text need a non-colour cue too (WCAG 1.4.1) */
article a, .post-stream a { text-decoration: underline; }
.sidebar a, .primary-nav a, .breadcrumb a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4em; }
strong { font-weight: bold; }
/* long headings/words must wrap instead of overflowing on narrow phones
   (a real bug on live today — see RECON.md) */
h1, h2, h3, h4, p, a { overflow-wrap: break-word; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

/* ---- header / nav ------------------------------------------------------ */
.topbar { min-height: 26px; background: var(--bar); }

.site-header {
  background: var(--bar);
  padding: 16px;
  box-shadow: inset 0 -8px 8px -8px rgba(0, 0, 0, 0.3);
}
.branding a { display: inline-block; color: var(--ink); }
.site-header h1,
.branding .site-name {
  font-family: var(--font-brand);
  font-size: 28px;
  font-weight: normal;
  color: var(--ink);
  margin: 0;
}
.branding .tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  margin: 2px 0 0;
}

.primary-nav { background: var(--nav-bg); }
.primary-nav summary {
  list-style: none;
  cursor: pointer;
  color: var(--nav-text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
}
.primary-nav summary::-webkit-details-marker { display: none; }
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}
.primary-nav details[open] ul { display: block; }
.primary-nav li a {
  display: block;
  padding: 12px 16px;
  color: var(--nav-text);
  font-size: 15px;
  text-transform: uppercase;
  border-top: 1px solid #333;
}
.primary-nav li a:hover,
.primary-nav li a:focus { text-decoration: none; background: #222; }

@media (min-width: 900px) {
  .primary-nav summary { display: none; }
  .primary-nav ul { display: flex; flex-wrap: wrap; }
  .primary-nav li a { border-top: none; }
}

/* ---- layout ------------------------------------------------------------ */
.layout {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
main { min-width: 0; order: 2; }
.sidebar { order: 3; margin-top: 2em; }

@media (min-width: 900px) {
  .layout { flex-direction: row; align-items: flex-start; gap: 32px; }
  .sidebar {
    order: 1;
    flex: 0 0 240px;
    margin-top: 2em;
  }
  main { order: 2; flex: 1 1 auto; margin-top: 2em; }
}

.breadcrumb {
  font-size: 0.85em;
  color: var(--muted);
  margin: 1em 0;
}
.breadcrumb a { color: var(--muted); }

article .meta { color: var(--muted); font-size: 0.85em; margin: -0.5em 0 1em; }
.updated { color: var(--muted); font-size: 0.85em; }

/* ---- sidebar ------------------------------------------------------------ */
.sidebar nav + nav { margin-top: 1.5em; }
.sidebar h2 {
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4em;
}
.sidebar ul { list-style: none; margin: 0.6em 0 0; padding: 0; }
.sidebar li { margin-bottom: 0.4em; }
.sidebar ul ul { margin-top: 0.4em; padding-left: 1em; }
.sidebar [aria-current="page"] { font-weight: bold; color: var(--ink); }
.nadachakra {
  text-align: center;
  font-size: 0.8em;
  color: var(--muted);
  margin-top: 1.5em;
}
.nadachakra img { width: 90px; height: auto; margin: 0 auto 0.5em; }

/* ---- footer -------------------------------------------------------------- */
.site-footer {
  background: var(--nav-bg);
  color: #aaa;
  margin-top: 3em;
  padding: 20px 16px;
  text-align: center;
  font-size: 0.85em;
}
.site-footer p { margin: 0; }

/* ---- homepage hero (CSS-only crossfade) ---------------------------------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}
.hero .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-fade 25s infinite;
}
.hero .slide-1 { animation-delay: 0s; }
.hero .slide-2 { animation-delay: 5s; }
.hero .slide-3 { animation-delay: 10s; }
.hero .slide-4 { animation-delay: 15s; }
.hero .slide-5 { animation-delay: 20s; }
@keyframes hero-fade {
  0% { opacity: 1; }
  18% { opacity: 1; }
  20% { opacity: 0; }
  98% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .slide { animation: none; opacity: 0; }
  .hero .slide-1 { opacity: 1; }
}

.post-stream article {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5em;
  margin-bottom: 1.5em;
}

/* ---- gallery (portrait thumbnails on the About page) ---------------------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1em 0;
}
.gallery img { width: 140px; height: 140px; object-fit: cover; }

/* ---- tables --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 420px;
}
th, td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: #f6f6f6; font-weight: bold; }

/* ---- video embeds ----------------------------------------------------------- */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1em 0;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
