/* ===================================================
   ROAD WORKERS UNION -- stylesheet
   Style goal: early-web / late-90s-early-00s aesthetic
   =================================================== */

@import url('https://cdn.jsdelivr.net/npm/computer-modern/cmu-serif.css');

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #7b7b7b;
  background-image:
    repeating-linear-gradient(0deg, #737373 0px, #737373 2px, #7b7b7b 2px, #7b7b7b 4px);
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
}

a {
  color: #0000EE;
  text-decoration: underline;
}
a:visited {
  color: #551A8B;
}
a:active {
  color: #FF0000;
}

hr {
  border: none;
  border-top: 2px groove #999999;
  margin: 18px 0;
}

/* ---------- page frame ---------- */
.page-frame {
  max-width: 800px;
  margin: 24px auto;
  background: #FFFFFF;
  border: 2px outset #c0c0c0;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}

.content {
  padding: 18px 26px 34px 26px;
}

.content h1 {
  font-family: "CMU Serif", "Times New Roman", serif;
  color: #000080;
  border-bottom: 3px double #000080;
  padding-bottom: 6px;
}

.content h2 {
  color: #000080;
  font-family: "CMU Serif", "Times New Roman", serif;
}

.footer-note {
  text-align: center;
  font-size: 11px;
  color: #ffffff;
  padding: 10px;
}

/* ---------- nav bar ---------- */
.navbar {
  background: #000080;
  border-bottom: 3px solid #000000;
}

.navbar-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.nav-brand {
  color: #FFFF00;
  font-weight: bold;
  font-family: "CMU Serif", "Times New Roman", serif;
  letter-spacing: 1px;
  padding: 10px 0;
  text-decoration: none;
}
.nav-brand:visited {
  color: #FFFF00;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-links li {
  border-left: 1px solid #4444aa;
}

.nav-links a {
  display: block;
  padding: 12px 16px;
  color: #FFFFFF;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
}
.nav-links a:visited {
  color: #FFFFFF;
}
.nav-links a:hover {
  background: #4444aa;
}

.nav-links a:active {
  background: #ffff66;
  color: #000080;
}

.hamburger {
  display: none;
  background: none;
  border: 2px outset #ffffff;
  color: #FFFFFF;
  font-size: 22px;
  padding: 4px 10px;
  cursor: pointer;
}

@media (max-width: 650px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    border-left: none;
    border-top: 1px solid #4444aa;
  }
  .navbar-inner {
    flex-wrap: wrap;
  }
}

/* ---------- home page ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: #FFFFFF;
}

.hero-title {
  font-family: "CMU Serif", "Times New Roman", serif;
  font-weight: bold;
  font-size: clamp(2.5rem, 9vw, 7rem);
  line-height: 1.05;
  color: #bd6b00;
  margin: 0;
  width: 100%;
}

.hero-title .word {
  display: inline;
}

.hero-subtitle {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(1.3rem, 4vw, 2.4rem);
  color: #000080;
  margin: 10px 0 0 0;
  font-weight: normal;
}

@media (max-width: 650px) {
  .hero-title .word {
    display: block;
  }
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Times New Roman", serif;
  font-size: 13px;
  color: #555555;
}

.hero-wrap {
  position: relative;
}

.subpage-links {
  background: #FFFFFF;
  padding: 40px 20px 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.subpage-links h2 {
  text-align: center;
  font-family: "CMU Serif", "Times New Roman", serif;
  color: #000080;
}

.link-buttons {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 500px) {
  .link-buttons {
    grid-template-columns: 1fr;
  }
}

.link-buttons a {
  display: block;
  text-align: center;
  background: #c0c0c0;
  border: 2px outset #eeeeee;
  color: #000080;
  font-weight: bold;
  text-decoration: none;
  padding: 18px 10px;
  font-size: 18px;
  letter-spacing: 1px;
}

.link-buttons a:visited {
  color: #000080;
}

.link-buttons a:hover {
  background: #ffff66;
}

.link-buttons a:active {
  border-style: inset;
  background: #000080;
  color: #ffff00;
}

/* ---------- events accordion ---------- */
details.year, details.month {
  border: 1px solid #999999;
  margin-bottom: 6px;
  background: #f2f2f2;
}

details.year > summary {
  background: #000080;
  color: #ffffff;
  font-weight: bold;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
}
details.year > summary::-webkit-details-marker { display: none; }
details.year > summary::before {
  content: "\25B8  ";
}
details.year[open] > summary::before {
  content: "\25BE  ";
}

details.month {
  margin: 8px 10px;
  background: #ffffff;
}

details.month > summary {
  background: #d9d9e8;
  color: #000080;
  font-weight: bold;
  padding: 6px 10px;
  cursor: pointer;
  list-style: none;
}
details.month > summary::-webkit-details-marker { display: none; }
details.month > summary::before {
  content: "\25B8  ";
}
details.month[open] > summary::before {
  content: "\25BE  ";
}

.event-list {
  list-style: square;
  padding: 10px 30px 14px 40px;
  margin: 0;
}

.event-list li {
  margin-bottom: 6px;
}

/* ---------- event page ---------- */
.event-images {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 16px;
}
.event-images img {
  border: 2px solid #000000;
  width: 50%;
  max-width: 50%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
}

@media (max-width: 500px) {
  .event-images img {
    aspect-ratio: 1 / 1;
  }
}

.event-meta {
  border: 1px dashed #000080;
  background: #eef0fa;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-weight: bold;
}
.event-meta span {
  display: block;
}

/* ---------- stuff page: pinboard of building blocks ---------- */
.stuff-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  padding: 10px 0 20px 0;
}

.stuff-card {
  border: 2px solid #000000;
  background: #ffffff;
  padding: 10px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  margin: 0;
}

/* 1) single image */
.stuff-card--image img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid #000000;
}

/* 2) image with caption */
.stuff-card--captioned img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 1px solid #000000;
}
.stuff-card--captioned figcaption {
  font-size: 13px;
  color: #333333;
  text-align: center;
  padding-top: 8px;
  font-style: italic;
}

/* 3) text segment */
.stuff-card--text {
  border-style: dashed;
  background: #f7f7f7;
}
.stuff-card--text h3 {
  margin: 0 0 8px 0;
  color: #000080;
  font-family: "CMU Serif", "Times New Roman", serif;
}
.stuff-card--text p {
  margin: 0;
}

/* 4) pin - looks like a pinned scrap of paper */
.stuff-card--pin {
  background: #fff9c4;
  border: 1px solid #999999;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
  transform: rotate(-2deg);
  position: relative;
  padding-top: 22px;
  text-align: center;
}
.stuff-card--pin-alt {
  transform: rotate(2deg);
}
.stuff-card--pin p {
  margin: 0;
}
.pin-dot {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #cc0000;
  border-radius: 50%;
  border: 1px solid #660000;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 500px) {
  .stuff-board {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .stuff-card--image img,
  .stuff-card--captioned img {
    height: 110px;
  }
}

/* ---------- media page ---------- */
.media-list {
  list-style: none;
  padding: 0;
}
.media-list li {
  border: 1px solid #999999;
  background: #f2f2f2;
  margin-bottom: 8px;
  padding: 12px 16px;
}
.media-list a {
  font-weight: bold;
  font-size: 17px;
}

/* ---------- articles list page ---------- */
.search-box {
  margin: 16px 0;
}
.search-box input {
  width: 100%;
  padding: 8px;
  border: 2px inset #cccccc;
  font-family: "Times New Roman", serif;
  font-size: 15px;
}

.article-list {
  list-style: none;
  padding: 0;
  margin-top: 14px;
}
.article-list li {
  padding: 8px 0;
  border-bottom: 1px dotted #999999;
}
.article-list li.hidden {
  display: none;
}

/* ---------- shop "coming soon" page ---------- */
.shop-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #7b7b7b;
  padding: 20px;
}

.shop-loading {
  font-family: "Times New Roman", serif;
  font-weight: bold;
  font-size: clamp(2rem, 8vw, 4rem);
  color: #ffffff;
  letter-spacing: 3px;
  margin: 0 0 10px 0;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}

.shop-publish {
  font-family: "CMU Serif", "Times New Roman", serif;
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  color: #ffff66;
  margin: 0 0 20px 0;
}

.shop-countdown {
  font-family: "Courier New", monospace;
  font-size: clamp(1.3rem, 5vw, 2.2rem);
  font-weight: bold;
  color: #000000;
  background: #ffffff;
  border: 2px inset #cccccc;
  padding: 12px 24px;
  margin: 0 0 36px 0;
}

.back-button {
  font-family: "Times New Roman", serif;
  font-weight: bold;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  background: #c0c0c0;
  border: 3px outset #eeeeee;
  color: #000080;
  padding: 18px 40px;
  cursor: pointer;
  letter-spacing: 1px;
}

.back-button:hover {
  background: #ffff66;
}

.back-button:active {
  border-style: inset;
  background: #000080;
  color: #ffff00;
}

/* ---------- article page ---------- */
.article-body img {
  border: 2px solid #000000;
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 14px auto;
}

@media (max-width: 500px) {
  .article-body img {
    max-width: 220px;
  }
}
