/* ------------------------------------------------------------------
   Bob's Paddy Wagon static site
   Hand-written CSS. No frameworks, no build step, no dependencies.
   ------------------------------------------------------------------ */

:root {
  --ink:        #1c1917;
  --ink-soft:   #4a433d;
  --ink-faint:  #857b71;
  --paper:      #faf7f2;
  --paper-alt:  #f2ece2;
  --line:       #ddd3c5;
  --oxide:      #8c2f21;
  --oxide-dark: #6d2418;
  --brass:      #a8834a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
  --radius: 3px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--oxide); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--oxide-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 4px solid var(--oxide);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand { text-decoration: none; color: inherit; display: block; }
.brand:hover { color: inherit; }

.brand-name {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0;
  font-weight: 600;
}

.brand-tag {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #e8e1d6;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: #fff; border-bottom-color: var(--brass); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--oxide); }

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
}

.hero-img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center 55%;
}

.hero-caption {
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
  padding: 12px 24px 0;
  margin: 0;
  font-style: italic;
}

/* ---------- Page intro ---------- */

.page-head { padding: 56px 0 8px; }

.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 600;
}

.page-head .lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ---------- Home ---------- */

.intro { padding: 48px 0 8px; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: start;
}

.intro h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 600;
}

.intro p { color: var(--ink-soft); font-size: 18px; }
.intro p:first-of-type { font-size: 20px; color: var(--ink); }

.card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card + .card { margin-top: 20px; }

.card h2 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 600;
}

.card p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

.portrait {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
}

.card--verse { text-align: left; }
.card--verse .ref {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}
.card--verse p { font-family: var(--serif); font-size: 16px; font-style: italic; }
.card--verse p + p { margin-top: 8px; }

.btn-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--oxide);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.btn:hover { background: var(--oxide-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--paper-alt); color: var(--ink); }

/* ---------- Timeline ---------- */

.timeline { padding: 8px 0 40px; }

.entry {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.entry:first-child { border-top: 0; }

.entry-date {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 6px;
}

.entry-date strong {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 4px;
}

.entry-body > p:first-child { margin-top: 0; }
.entry-body p { color: var(--ink-soft); max-width: 64ch; }

/* ---------- Photo grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.grid figure { margin: 0; }

.shot {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  background: var(--paper-alt);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 17 / 10;
  box-shadow: 0 1px 2px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.shot img { width: 100%; height: 100%; object-fit: cover; }

.shot:hover, .shot:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  outline: none;
}
.shot:focus-visible { outline: 2px solid var(--oxide); outline-offset: 2px; }

.grid figcaption {
  font-size: 13.5px;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 7px;
  line-height: 1.45;
}

/* ---------- Gallery sections ---------- */

.gal-section { padding: 36px 0; border-top: 1px solid var(--line); }
.gal-section:first-of-type { border-top: 0; }

.gal-section h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 4px;
  font-weight: 600;
}

.gal-section .sub {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- Lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 12, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px 64px;
}

.lb img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 10px 50px rgba(0,0,0,.6);
}

.lb-cap {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: #d9d2c7;
  font-size: 14px;
  font-style: italic;
  padding: 0 40px;
}

.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.09);
  border: 0;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

body.lb-open { overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #c9c1b6;
  margin-top: 64px;
  padding: 46px 0 34px;
  border-top: 4px solid var(--oxide);
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer h3 {
  font-family: var(--serif);
  color: var(--paper);
  font-size: 17px;
  margin: 0 0 10px;
  font-weight: 600;
}

.site-footer p { margin: 0 0 8px; line-height: 1.6; }
.site-footer a { color: #e0d8cc; }
.site-footer a:hover { color: #fff; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }

.footer-verse { font-family: var(--serif); font-style: italic; }

.colophon {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 13px;
  color: #8d8579;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; gap: 34px; }
  .entry { grid-template-columns: 1fr; gap: 14px; padding: 34px 0; }
  .entry-date { padding-top: 0; }
  .entry-date strong { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-header .wrap { padding-bottom: 16px; }
  .site-nav ul { gap: 20px; flex-wrap: wrap; }
  .hero-img { max-height: 300px; }
  .lb { padding: 24px 12px 70px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .brand-name { font-size: 25px; }
}

@media print {
  .site-header, .site-footer, .btn-row { display: none; }
  body { background: #fff; }
}
