/* Roswell Expedition — Master Stylesheet
   Only things Tailwind cannot express live here:
   custom colour tokens, pseudo-elements, and broad
   content-child selectors (img, p, blockquote).
   All layout / spacing / typography is handled by
   Tailwind utility classes in the HTML.
*/

/* ── Shared content classes (reused across all pages) ────── */

/* Centred bold page/section heading */
.page-title {
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 1rem;
}

/* Bold label before a quote or response, e.g. "Name writes:" */
.attribution {
  font-weight: bold;
}

/* Centred block — images, captions, etc. */
.img-row {
  text-align: center;
  margin: 1rem 0;
}

/* ── Colour tokens ────────────────────────────────────────── */
:root {
  --color-bg:   #000000;
  --color-text: #FFAA00;
  --color-link: #1C9E06;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

a, a:visited, a:hover, a:active { color: var(--color-link); }

/* ── Paragraph spacing inside content ────────────────────── */
.site-content p {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

/* ── Content images
     clamp() gives proportional responsive sizing:
     min 160px · grows at 25vw · caps at 420px
     Landscape images hit max-width first (same width).
     Portrait images hit max-height first (same height). ──── */
.site-content img {
  display: inline;
  vertical-align: top;
  margin: 0.25rem;
  max-width:  clamp(160px, 25vw, 420px);
  max-height: clamp(160px, 25vw, 420px);
  width:  auto;
  height: auto;
}

/* Wide image override (e.g. nothing_reduced.jpg) */
.site-content img.img-wide {
  width: 75%;
  max-width: 75%;
  max-height: none;
  height: auto;
  display: block;
  margin: 0.25rem auto;
}

/* ── Photo card: image + caption as a unit ───────────────── */
/*
   Usage:
     <figure class="photo-card w-72">
       <img src="...">
       <figcaption>Caption text wraps at the photo width.</figcaption>
     </figure>

   Control width with any Tailwind w-* class on the figure:
     w-48 (192px)  w-64 (256px)  w-72 (288px)
     w-80 (320px)  w-96 (384px)  or responsive: w-64 md:w-80
*/
.photo-card {
  display: block;
  vertical-align: top;
  margin: 0.5rem;
  border: 1px solid rgba(255, 170, 0, 0.2);
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;   /* override .site-content img clamp */
  max-height: none;
  margin: 0;
}

.photo-card figcaption {
  padding: 0.35rem 0.6rem;
  font-size: 0.85em;
  font-style: italic;
  opacity: 0.85;
  border-top: 1px solid rgba(255, 170, 0, 0.2);
}

/* ── Adventurers page ─────────────────────────────────────── */
.adv-content { padding: 1rem 0; }

.adventurers-links {
  display: flex;
  justify-content: space-between;
  width: 360px;
  margin: 0 auto 0.5rem;
}

/* ── Block quotes ─────────────────────────────────────────── */
.site-content blockquote {
  position: relative;
  margin: 1.5rem 0 1.5rem 2rem;
  padding: 0.75rem 1.25rem 0.75rem 2.5rem;
  border-left: 3px solid var(--color-text);
  font-style: italic;
  opacity: 0.9;
}

.site-content blockquote::before {
  content: '\201C';
  position: absolute;
  left: 0.25rem;
  top: -0.25rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-text);
  font-style: normal;
  opacity: 0.5;
}

.site-content blockquote::after {
  content: '\201D';
  font-size: 3.5rem;
  line-height: 0;
  vertical-align: -1.2rem;
  margin-left: 0.25rem;
  color: var(--color-text);
  font-style: normal;
  opacity: 0.5;
}

/* ── Request-page divider ─────────────────────────────────── */
hr.request-divider {
  border: none;
  border-top: 2px dashed var(--color-text);
  margin: 1rem 0;
}
