/*
Theme Name: Field Log
Description: Minimal shell theme for Elijah Beese's site. Header, nav, ticker, and footer are theme-controlled; every page's actual design lives in that page's own Custom HTML block content.
Author: Elijah Beese
Version: 3.0
*/

:root {
  --navy: #16203B;
  --navy-2: #1E2C4F;
  --paper: #FBFAF7;
  --ink: #191B1F;
  --muted: #676D78;
  --line: #DEDBD2;
  --red: #A3402E;

  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --shell-max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; display: block; }

/* Shell-only container class. Deliberately NOT named ".wrap" so it can
   never collide with a class a pasted page defines for its own layout. */
.shell-wrap {
  max-width: var(--shell-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Site header (theme-controlled, same on every page) ---------- */
.site-header {
  background: var(--navy);
  background-image: linear-gradient(155deg, var(--navy-2) 0%, var(--navy) 55%);
}
.site-header .shell-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.site-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.site-nav {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: #B9C0D4;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a.is-active { color: #fff; }

/* ---------- Ticker (theme-controlled) ---------- */
.ticker {
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker-scroll 42s linear infinite;
}
.ticker-track span::after {
  content: "//";
  margin-left: 3rem;
  opacity: 0.6;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Site footer (theme-controlled) ---------- */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  background: var(--paper);
}
.site-footer .shell-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .links { display: flex; gap: 18px; }
.site-footer a:hover { color: var(--red); }

@media (max-width: 480px) {
  .site-header .shell-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav { gap: 16px; flex-wrap: wrap; }
  .site-footer .shell-wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- Dynamic Log listing (index.php / single.php) ----------
   This part IS theme-controlled since it loops over real posts and
   can't be hand-pasted. Kept intentionally separate/minimal so it
   doesn't leak into or collide with any page's own pasted styles. */
.log-hero {
  background: var(--navy);
  color: #fff;
  padding: 48px 0;
}
.log-hero h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  margin: 0 0 10px;
}
.log-hero p { margin: 0; opacity: 0.85; }

.log-list { padding: 40px 0 64px; }
.filter-bar { display: flex; gap: 10px; margin-bottom: 28px; }
.filter-btn {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 14px;
  cursor: pointer;
  color: var(--muted);
}
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.entry { padding: 24px 0; border-top: 1px solid var(--line); }
.entry:first-child { border-top: none; padding-top: 0; }
.entry-meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.entry-kind { color: var(--red); }
.entry-title { font-family: var(--font-serif); font-size: 20px; margin: 0 0 8px; }
.entry-title a:hover { color: var(--red); }
.entry-excerpt { font-size: 15px; color: #3A3D45; }
.entry-more { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--red); }
.entry-stat { font-family: var(--font-mono); font-size: 12.5px; color: var(--red); }
.empty-note { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.back-link { display: inline-block; margin: 24px 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
