/* Cecil AI Files — mobile-first, news-desk look. Preview only; not deployed. */

:root {
  --bg: #0c0b09;
  --bg-raised: #161310;
  --gold: #d4a017;
  --gold-bright: #e8b84a;
  --red: #9b1c1c;
  --red-bright: #c41e1e;
  --text: #e8e0d0;
  --muted: #a89880;
  --rule: rgba(212, 160, 23, 0.35);
  --bezel: #1a1612;
  --screen: #0a0b0e;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Newsreader, "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--gold-bright); }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--bg-raised);
  color: var(--gold);
  padding: 0.5rem 0.75rem;
}
.skip:focus { top: 0.75rem; }

/* —— Header —— */
.site-header {
  background: #0a0908;
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 1rem;
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
}
.brand {
  text-decoration: none;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.brand:hover { color: var(--gold-bright); }
.brand-name {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.live-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--red);
  color: #f3e9d2;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.18em 0.55em;
  line-height: 1.2;
}
.site-nav {
  display: flex;
  gap: 1.1rem;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.site-nav a { text-decoration: none; color: var(--text); }
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.1rem;
}

/* —— Office + art slot (home) ——
   Percentages are of the 16:9 office still. They pin the slot
   to the upper-left monitor wall. Tweak here if the still is recropped. */
.office {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  margin: 0;
}
.office-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.office-still img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* ART SLOT — swap images/current-art.webp and current-art.jpg; keep these filenames. */
.art-slot {
  position: absolute;
  left: 2.4%;
  top: 4%;
  width: 29.4%;
  height: 43.5%;
  z-index: 2;
  background: var(--screen);
  border: 3px solid var(--bezel);
  box-shadow:
    0 0 0 1px #000,
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    0 10px 28px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  box-sizing: border-box;
}
.art-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--screen);
}

/* —— Feed / articles —— */
.feed, .page {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
.feed-label, .page-kicker {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}
.feed-item {
  margin: 0 0 1.75rem;
  padding: 0 0 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.feed-item:last-of-type { border-bottom: 0; margin-bottom: 0; }
.feed-item time, .file-meta time, .page-kicker time {
  display: block;
  font-family: "Special Elite", "Courier Prime", "Courier New", monospace;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.feed-item h2 {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin: 0 0 0.55rem;
  color: var(--gold);
}
.feed-item h2 a { text-decoration: none; color: inherit; }
.feed-item h2 a:hover { color: var(--gold-bright); }
.feed-item p { margin: 0 0 0.7rem; }
.read-file {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.08rem;
}

/* —— File list —— */
.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.file-list li { border-bottom: 1px solid var(--rule); }
.file-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem 0;
}
.file-list a:hover .file-title { color: var(--gold-bright); }
.file-num {
  display: block;
  font-family: "Special Elite", "Courier Prime", "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.file-title {
  display: block;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.file-dek { display: block; color: var(--text); }

/* —— Case file pages —— */
.file-header { margin-bottom: 1.5rem; }
.file-header h1 {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 6vw, 2.15rem);
  letter-spacing: 0.03em;
  color: var(--gold);
  line-height: 1.15;
  margin: 0.2rem 0 0;
}
.crumb {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.crumb a { text-decoration: none; }

.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.signoff {
  margin-top: 1.75rem;
  font-style: italic;
}
.prose figure {
  margin: 1.4rem 0;
}
.prose figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
.prose figcaption {
  font-family: "Special Elite", "Courier Prime", "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.45rem;
  text-align: center;
}
.garnish {
  max-width: 16rem;
  margin-left: auto;
  margin-right: auto;
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  background: #0a0908;
  padding: 1.1rem 1rem;
  font-size: 0.95rem;
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer p { margin: 0; color: var(--muted); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

@media (min-width: 720px) {
  body { font-size: 1.125rem; }
  .brand-name { font-size: 1.6rem; }
  .site-header { padding: 0.85rem 1.5rem; }
  .feed, .page { padding: 1.75rem 1.25rem 4rem; }
  .feed-item h2 { font-size: 1.7rem; }
}

.prose h2 {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.7rem;
}
.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.prose li { margin: 0 0 0.35rem; }
.prose .sources {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}
.prose .sources p { margin: 0 0 0.75rem; }
