/* ============================================================
   SUNNYSIDE PD — STYLE.CSS
   Palette tokens at the top. Edit colors here only.
   ============================================================ */

:root {
  --bg:           #0c0c0e;
  --bg-card:      #131316;
  --bg-hover:     #1a1a1f;
  --text:         #e5e1d8;
  --text-muted:   #888480;
  --text-dim:     #48464280;
  --blue:         #3d8fc8;
  --blue-dim:     #1a3f60;
  --blue-line:    #1a3a5c;
  --amber:        #c07a20;
  --amber-bright: #d4902e;
  --rule:         #222228;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  min-height: 100vh;
}

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

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  line-height: 1.15;
}

.mono {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.04em;
}

.label-small {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
}

/* ============================================================
   SITE HEADER + NAV
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  position: sticky;
  top: 0;
  background: rgba(12, 12, 14, 0.97);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
}

.site-header__badge {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue-dim);
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  align-items: center;
}

.site-nav a {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--blue);
}

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.page-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1rem 5rem;
}

.page-main--wide { max-width: 1100px; }

/* ============================================================
   PAGE TITLE BLOCK (reused on inner pages)
   ============================================================ */
.page-title-block {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.page-title-block .label-small { margin-bottom: 0.5rem; }

.page-title-block h1 {
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  color: var(--text);
}

.page-title-block .subtitle {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ============================================================
   HOME HERO
   ============================================================ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 1.5rem 2.5rem;
  background:
    linear-gradient(to top,
      rgba(12, 12, 14, 1)    0%,
      rgba(12, 12, 14, 0.75) 45%,
      rgba(12, 12, 14, 0.35) 100%),
    radial-gradient(ellipse at 65% 25%, rgba(192, 122, 32, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 75%, rgba(61, 143, 200, 0.07) 0%, transparent 50%),
    #0c0c0e;
  position: relative;
  overflow: hidden;
}

/* scanline texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
}

.hero__case-stamp {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.75rem;
  border-left: 2px solid var(--amber);
  padding-left: 0.75rem;
  position: relative;
}

.hero__headline {
  font-size: clamp(2.1rem, 7vw, 4.2rem);
  line-height: 1.05;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 1rem;
  position: relative;
}

.hero__subhead {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.82rem, 2.5vw, 1rem);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 2.75rem;
  position: relative;
}

/* BUY STRIP */
.buy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  position: relative;
}

.buy-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--blue-dim);
  color: var(--text);
  text-decoration: none;
  padding: 0.8rem 1.25rem;
  font-family: 'Courier New', Courier, monospace;
  transition: border-color 0.15s, background 0.15s;
  min-width: 140px;
}

.buy-btn:hover { border-color: var(--blue); background: var(--bg-hover); }

.buy-btn__format {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.buy-btn__price {
  font-size: 1.15rem;
  color: var(--blue);
}

.buy-note {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  width: 100%;
}

/* ============================================================
   HORIZONTAL RULE
   ============================================================ */
.rule { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* ============================================================
   BLOTTER — CASE FILES
   ============================================================ */
.case-file {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

/* same scanline texture as the hero */
.case-file::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
}

.case-file__header {
  position: relative;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(192, 122, 32, 0.14) 0%, transparent 60%),
    rgba(192, 122, 32, 0.06);
  border-bottom: 1px dashed var(--rule);
  padding: 1.1rem 1.25rem 1.25rem;
  font-family: 'Courier New', Courier, monospace;
}

.case-file__tale-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  line-height: 1.15;
  color: var(--text);
  border-left: 2px solid var(--amber);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.case-file__meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem 2rem;
  margin-top: 0.5rem;
}

.case-file__meta-grid > div {
  border-top: 1px solid var(--rule);
  padding-top: 0.4rem;
}

.case-file__meta-grid dt {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.case-file__meta-grid dd {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 0;
  margin-top: 0.15rem;
}

/* Case No. reads like a report number */
.case-file__meta-grid > div:first-child dd {
  color: var(--blue);
  letter-spacing: 0.08em;
}

/* Status gets a stamped-badge treatment */
.case-file__meta-grid > div:last-child dd {
  display: inline-block;
  color: var(--amber-bright);
  border: 1px solid var(--amber);
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-file__body {
  position: relative;
  padding: 1.5rem 1.25rem 1.75rem;
}

.case-file__excerpt {
  border-left: 2px solid var(--blue-dim);
  padding-left: 1.1rem;
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 66ch;
}

.case-file__excerpt p + p { margin-top: 1rem; }

/* ============================================================
   18+ AGE GATE
   ============================================================ */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 14, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 500;
}

.age-gate.hidden { display: none; }

.age-gate__box {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.age-gate__box .label-small { margin-bottom: 1rem; }
.age-gate__box h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }

.age-gate__box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.age-gate__btn {
  background: var(--blue-dim);
  border: 1px solid var(--blue);
  color: var(--text);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}

.age-gate__btn:hover { background: var(--blue); }

/* ============================================================
   ROSTER
   ============================================================ */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.roster-card {
  position: relative;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(192, 122, 32, 0.08) 0%, transparent 55%),
    var(--bg-card);
  border-top: 2px solid var(--amber);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background 0.15s, border-color 0.15s;
}

/* same scanline texture as the hero */
.roster-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
}

.roster-card:hover {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(192, 122, 32, 0.12) 0%, transparent 55%),
    var(--bg-hover);
  border-top-color: var(--amber-bright);
}

.roster-card__photo {
  width: 60px;
  height: 76px;
  background: linear-gradient(to bottom, var(--blue-dim), #10263a);
  border: 1px solid var(--blue-line);
  outline: 1px solid var(--rule);
  outline-offset: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.roster-card__photo svg {
  width: 36px;
  height: 36px;
  opacity: 0.45;
  fill: var(--text-muted);
}

.roster-card__name {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.roster-card__rank {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.roster-card__bio {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px dashed var(--rule);
  padding-top: 0.7rem;
  width: 100%;
}

/* ============================================================
   END OF WATCH
   ============================================================ */
.blue-line-rule {
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--blue-line) 15%,
    var(--blue) 50%,
    var(--blue-line) 85%,
    transparent
  );
  margin: 1.75rem 0;
}

.memorial-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 2rem 0;
}

.memorial-panel {
  background: var(--bg-card);
  padding: 1.5rem;
}

.memorial-panel__stripe {
  width: 36px;
  height: 2px;
  background: var(--blue-line);
  margin-bottom: 1rem;
}

.memorial-panel__name {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.memorial-panel__rank {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.memorial-panel__dept {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-top: 0.4rem;
}

.memorial-dedication {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   AUTHOR
   ============================================================ */
.author-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}

.author-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

.author-photo-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  fill: var(--text-muted);
}

.author-photo {
  margin: 0;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--amber);
  background: var(--bg-card);
  padding: 6px;
}

.author-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
}

.author-bio { font-size: 0.95rem; line-height: 1.72; }
.author-bio p + p { margin-top: 1rem; }

/* ============================================================
   JOIN THE SHIFT
   ============================================================ */
.shift-intro {
  max-width: 560px;
  margin: 0 auto 2rem;
  text-align: center;
}

.shift-intro p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.signup-block {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 2rem;
  max-width: 520px;
  margin: 0 auto;
}

.signup-block .label-small { margin-bottom: 0.75rem; }

.signup-block h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }

.signup-block p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.email-embed-placeholder {
  border: 1px dashed var(--rule);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   PRESS
   ============================================================ */
.press-section { margin-bottom: 2.5rem; }

.press-section h2 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.press-kit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.press-kit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  padding: 0.55rem 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.press-kit-link:hover { border-color: var(--blue); color: var(--text); }

.press-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.press-photo {
  margin: 0;
  background: var(--bg-card);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.press-photo a { display: block; }

.press-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  transition: border-color 0.15s, filter 0.15s;
  filter: grayscale(0.2);
}

.press-photo--profile img { object-position: center 30%; }

.press-photo a:hover img { border-color: var(--blue); filter: none; }

.press-photo figcaption {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
  line-height: 1.5;
}

.synopsis-block {
  background: var(--bg-card);
  border-left: 3px solid var(--amber);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.synopsis-block .label-small { margin-bottom: 0.6rem; }

.synopsis-block p {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.synopsis-block p + p { margin-top: 0.75rem; }

.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 1.5rem;
}

.contact-block p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-block a {
  color: var(--blue);
  text-decoration: none;
}

.contact-block a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4rem;
}

.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ============================================================
   UTILITY
   ============================================================ */
.todo-marker {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8em;
  color: var(--amber);
  background: rgba(192, 122, 32, 0.1);
  padding: 0 0.3em;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero { min-height: 85vh; padding: 2rem 1rem 2rem; }
  .page-main { padding: 1.75rem 0.85rem 4rem; }
  .author-layout { grid-template-columns: 1fr; }
  .author-photo-placeholder { max-width: 180px; }
  .author-photo { max-width: 200px; }
  .memorial-wall { grid-template-columns: 1fr 1fr; }
  .roster-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .memorial-wall { grid-template-columns: 1fr; }
  .roster-grid { grid-template-columns: 1fr; }
}
