/* Oddfellow's Orphanage minisite (2012), rebuilt from the old Weebly site.
   Its own look: illustrated banner, image nav, Cantarell, gold links.
   Colors and type come from the 2012 Wayback Machine copy of the live site. */

:root {
  --odd-text: #382712;
  --odd-gold: #cc9933;
  --odd-gold-light: #ffcc66;
  --odd-muted: #8a7a62;
}

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

body.oddfellows {
  margin: 0;
  background: #fff;
  color: var(--odd-text);
  font: 15px/1.6 "Cantarell", sans-serif;
}

.oddfellows img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.oddfellows a {
  color: var(--odd-gold);
}

.oddfellows a:hover {
  color: var(--odd-gold-light);
}

.oddfellows p {
  margin: 0 0 1em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* a quiet way back to the main site */
.odd-crumbs {
  max-width: 1000px;
  margin: 0 auto !important;
  padding: 10px 16px 0;
  color: var(--odd-muted);
  font-size: 12px;
}

.odd-crumbs a {
  color: var(--odd-muted);
}

.odd-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 16px 30px;
}

/* ---------- header: banner + image nav ---------- */

.odd-header {
  text-align: center;
}

.odd-banner img {
  width: 797px;
}

.odd-header ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 6px 0 20px;
  padding: 0;
  list-style: none;
}

.odd-header nav a {
  display: block;
  border-bottom: 2px solid transparent;
  transition: opacity 200ms ease;
}

.odd-header nav a:hover {
  opacity: 0.7;
}

.odd-header nav a[aria-current="page"] {
  border-bottom-color: var(--odd-gold-light);
}

/* ---------- page parts ---------- */

.odd-enter {
  margin-top: 30px !important;
  text-align: center;
}

.odd-art {
  text-align: center;
}

.odd-intro {
  text-align: center;
}

.odd-heading {
  display: block;
}

.oddfellows h2,
.oddfellows h3 {
  margin: 0 0 12px;
  font-weight: 400;
}

/* cover or photo on the left, text on the right */
.odd-two-col {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 28px;
  align-items: start;
}

.odd-two-col > :first-child {
  margin: 0;
}

.odd-order {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 10px;
}

.odd-order img {
  width: 190px;
}

.odd-order h3 {
  color: var(--odd-gold);
  font-size: 18px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.odd-order a {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.odd-review {
  max-width: 820px;
  margin: 20px auto;
  padding: 0;
}

.odd-review footer {
  font-size: 13px;
}

.odd-spot-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 820px;
  margin: 30px auto 0;
}

/* characters: portrait + likes and dislikes */
.odd-characters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px;
  max-width: 860px;
  margin: 30px auto 0;
}

.odd-character {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
}

.odd-character h2 {
  margin: 4px 0 6px;
  color: var(--odd-gold);
  font-size: 16px;
  font-style: italic;
}

.odd-character p {
  margin-bottom: 0.6em;
}

.odd-author figure {
  margin: 0;
}

.odd-author figcaption {
  margin-top: 6px;
  font-size: 13px;
  font-style: italic;
  text-align: right;
}

.odd-author-links {
  font-size: 20px;
  text-align: center;
}

.odd-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  align-items: center;
  margin-bottom: 24px;
}

/* diversions: sketchbook + paper dolls */
.odd-diversions {
  grid-template-columns: 1fr 1fr;
  text-align: center;
}

.odd-spaced {
  color: var(--odd-gold);
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.odd-sketches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.odd-sketches .wide {
  grid-column: span 2;
}

.odd-button {
  display: inline-block;
  margin-bottom: 4px;
  padding: 10px 22px;
  border: 1px solid var(--odd-gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.odd-button:hover {
  background: var(--odd-gold);
  color: #fff !important;
}

.odd-fans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.odd-contact {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.odd-contact p {
  max-width: 280px;
}

/* ---------- footer ---------- */

.odd-footer {
  margin-top: 40px;
  font-size: 13px;
  text-align: center;
}

.odd-footer img {
  width: 162px;
  margin-bottom: 10px;
}

/* ---------- lightbox (from /js/site.js; same as /css/style.css) ---------- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 100%;
  margin: 0;
  padding: 40px 70px;
}

.lightbox img {
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  padding: 10px;
  border: 0;
  background: none;
  color: #fff;
  font: 40px/1 "Cantarell", sans-serif;
  cursor: pointer;
}

.lightbox button:focus:not(:focus-visible) {
  outline: none;
}

.lightbox button:hover {
  color: var(--odd-gold-light);
}

.lightbox .close {
  top: 10px;
  right: 15px;
}

.lightbox .prev,
.lightbox .next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .prev {
  left: 10px;
}

.lightbox .next {
  right: 10px;
}

/* ---------- phones ---------- */

@media (max-width: 700px) {
  .odd-header ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .odd-two-col,
  .odd-diversions {
    grid-template-columns: 1fr;
  }

  .odd-two-col > :first-child {
    max-width: 320px;
    margin: 0 auto;
  }

  .odd-order {
    justify-content: center;
  }

  .odd-order img {
    width: 130px;
  }

  .odd-characters {
    grid-template-columns: 1fr 1fr;
  }

  .odd-character {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .odd-character a {
    display: block;
    max-width: 130px;
    margin: 0 auto;
  }

  .odd-spot-art,
  .odd-fans,
  .odd-photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .odd-contact {
    flex-direction: column;
    text-align: center;
  }

  .lightbox figure {
    padding: 50px 16px;
  }
}
