/* Stamp: 2026-11-18 08:59 PST · v1.2 (v1.0 first build, v1.1 Books/Games split, v1.2 Azure hosting) */
/* =====================================================================
   gibsonmorales.com — site stylesheet
   ---------------------------------------------------------------------
   Minimal, single-column layout modelled on sheldonpacotti.com:
   site title + tagline + nav, then works stacked under section headings.

   - No external fonts, frameworks or JavaScript: fast, free, and every
     page renders the same way on every load.
   - Light theme by default; switches to dark automatically when the
     visitor's device is set to dark mode (prefers-color-scheme).
   - To re-theme the whole site, edit the variables in :root below.
   ===================================================================== */

/* ---------- 1. Theme variables ---------- */
:root {
  --bg: #fbfaf7;          /* page background (warm off-white) */
  --text: #1d1d1f;        /* body text */
  --muted: #5f5f66;       /* secondary text: taglines, meta lines */
  --rule: #dddad2;        /* horizontal rules and borders */
  --accent: #b3471d;      /* links and highlights (burnt orange) */
  --accent-hover: #8a3412;
  --placeholder-bg: #efece5; /* fill for "coming soon" boxes */

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 46rem;       /* max content width (~740px) */
  --cover-w: 140px;       /* book cover width in listings */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --text: #e9e7e2;
    --muted: #a3a2a8;
    --rule: #2f2f34;
    --accent: #f08a4b;
    --accent-hover: #ffb07f;
    --placeholder-bg: #1f1f23;
  }
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;   /* 17px */
  line-height: 1.65;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--accent-hover); }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* Visible keyboard focus for accessibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* "Skip to content" link: hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--text); color: var(--bg); padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- 3. Layout wrapper ---------- */
.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- 4. Site header: title, tagline, nav ---------- */
.site-header {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: .01em;
}
.site-title a { color: var(--text); text-decoration: none; }

.tagline {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav { margin-top: 1.5rem; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- 5. Sections and headings ---------- */
main { padding-bottom: 4rem; }

.section-title {
  font-size: 1.6rem;
  margin: 3rem 0 .25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
}
.section-intro { color: var(--muted); margin: .75rem 0 1.5rem; }

.series-title { font-size: 1.25rem; margin: 2.25rem 0 .25rem; }
.series-note { color: var(--muted); margin: 0 0 1.25rem; font-size: .95rem; }

/* ---------- 6. Work entries (one book or game) ---------- */
/* Cover on the left, text on the right; stacks on narrow phones. */
.work {
  display: grid;
  grid-template-columns: var(--cover-w) 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.work:last-child { border-bottom: 0; }

.work-cover img,
.work-cover .placeholder {
  width: var(--cover-w);
  aspect-ratio: 2 / 3;      /* standard book cover ratio */
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.work-title { margin: 0; font-size: 1.25rem; }
.work-title a { color: var(--text); text-decoration: none; }
.work-title a:hover { color: var(--accent); }

.work-meta {
  margin: .2rem 0 .6rem;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.work-body p { margin: 0 0 .75rem; }

/* Wide entries for games (landscape art instead of a book cover) */
.work--game { grid-template-columns: 220px 1fr; }
.work--game .work-cover .placeholder { width: 220px; aspect-ratio: 460 / 215; } /* Steam capsule ratio */

/* "Read the full description" expander (native <details>, no JS) */
details.more { margin: .25rem 0 .75rem; }
details.more summary {
  cursor: pointer;
  color: var(--accent);
  font-size: .95rem;
  list-style: none;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "\2212 "; } /* minus sign */
details.more[open] summary { margin-bottom: .5rem; }

/* Buttons for store links */
.btn {
  display: inline-block;
  padding: .4rem .95rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font-size: .9rem;
  text-decoration: none;
}
.btn:hover { background: var(--accent); color: var(--bg); }

@media (max-width: 560px) {
  .work, .work--game { grid-template-columns: 1fr; gap: 1rem; }
  .work-cover img, .work-cover .placeholder { margin: 0 auto; }
}

/* ---------- 7. Placeholders ---------- */
/* Dashed boxes marking content still to come. Search the HTML for
   "PLACEHOLDER" to find every one. Delete the box when you add the
   real content. */
.placeholder {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 1rem;
  background: var(--placeholder-bg);
  border: 1px dashed var(--muted);
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.placeholder-text {
  border: 1px dashed var(--muted);
  background: var(--placeholder-bg);
  color: var(--muted);
  padding: 1rem 1.25rem;
  border-radius: 3px;
}

/* ---------- 8. About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}
.headshot, .headshot.placeholder {
  width: 200px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover;
}
@media (max-width: 560px) {
  .about-grid { grid-template-columns: 1fr; }
  .headshot, .headshot.placeholder { margin: 0 auto; width: 160px; }
}

.logo-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; }
.logo-row .placeholder { width: 200px; height: 110px; }

/* ---------- 8b. Home page: intro + two "doors" (Games, Books) ---------- */
.intro { text-align: center; margin: 2.5rem auto 2rem; max-width: 36rem; }
.lead { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; margin: 0; }

.door-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.door {
  display: block;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease;
}
.door:hover, .door:focus-visible { border-color: var(--accent); color: var(--text); }
.door-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.door-title::after { content: " \2192"; color: var(--accent); } /* right arrow */
.door-text { display: block; color: var(--muted); font-size: .95rem; }

@media (max-width: 560px) {
  .door-grid { grid-template-columns: 1fr; }
}

/* ---------- 9. Newsletter block ---------- */
.newsletter {
  margin: 3rem 0 1rem;
  padding: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-align: center;
}
.newsletter h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.newsletter p { margin: 0 0 1rem; color: var(--muted); }

/* ---------- 10. Simple lists (extras, contact) ---------- */
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: .4rem; }
.credit { color: var(--muted); font-size: .9rem; display: block; }
.spoiler-warning {
  border-left: 3px solid var(--accent);
  padding: .5rem 1rem;
  margin: 1rem 0;
  font-weight: 600;
}

/* ---------- 11. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer p { margin: .3rem 0; }
.social { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; justify-content: center; gap: 1.5rem; }
