/* ---------- Fonts (bundled in /fonts, work offline) ---------- */
@font-face { font-family: "Fira Mono"; font-weight: 400; src: url("fonts/fira-mono-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fira Mono"; font-weight: 700; src: url("fonts/fira-mono-latin-700-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Syne"; font-weight: 400; src: url("fonts/syne-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Syne"; font-weight: 700; src: url("fonts/syne-latin-700-normal.woff2") format("woff2"); font-display: swap; }

/* ---------- Settings: change fonts/colors here ---------- */
:root {
  --font-body: "Fira Mono", "Courier New", Courier, monospace;   /* typewriter text */
  --font-ui: "Syne", Arial, Helvetica, sans-serif;            /* header, title, footer */
  --placeholder: #d9d9d9;
  --col: 910px;   /* width of the centered content column */
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #000; font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Gray box for any image. Delete class "ph" when you add your <img>. */
.ph { background: var(--placeholder); display: flex; align-items: center; justify-content: center; color: #777; font-family: Arial, sans-serif; font-size: 14px; width: 100%; }

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

/* ---------- Header: tiny text row inside the column ---------- */
.site-header { display: flex; justify-content: space-between; align-items: baseline; padding-top: 28px; height: 60px; font-family: var(--font-ui); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.site-name { text-decoration: underline; }
.header-right { display: flex; gap: 28px; align-items: baseline; }
.nav { position: relative; }
.nav > a { text-decoration: none; font-weight: bold; }
.submenu { list-style: none; margin: 0; padding: 8px 0; position: absolute; right: 0; top: 100%; min-width: 190px; background: #fff; border: 1px solid #000; display: none; z-index: 10; text-align: right; }
.submenu a { display: block; padding: 5px 14px; text-decoration: none; white-space: nowrap; }
.submenu a:hover { text-decoration: underline; }
.nav:hover .submenu, .nav:focus-within .submenu { display: block; }

/* ---------- Home page ---------- */
.hero { aspect-ratio: 902 / 454; }               /* map banner, full column width */
.page-title { font-weight: 700; font-family: var(--font-ui); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; text-align: center; margin: 8px 0 26px; }

.split { display: grid; grid-template-columns: 40% 60%; align-items: start; margin-bottom: 40px; }
.split .text { padding-right: 20px; }
.split .text p { margin: 0 0 1.6em; }
.split .image { margin-left: -10px; }
.ph-side { aspect-ratio: 565 / 340; }            /* sketch image beside the text */

/* ---------- Inner pages (guess: title + text + gallery) ---------- */
.text-block { max-width: 560px; margin: 0 0 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 40px; }
.grid .ph { aspect-ratio: 4 / 3; }

/* ---------- Footer: full-width black bar ---------- */
.site-footer { background: #000; color: #fff; padding: 28px; margin-top: 30px; font-family: var(--font-ui); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 24px; line-height: 1.9; }
.site-footer a { text-decoration: none; }
.footer-left { display: flex; gap: 40px; }
.footer-right { text-align: right; }
.site-footer p { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .site-header { height: auto; flex-wrap: wrap; gap: 10px; padding-bottom: 12px; font-size: 10px; }
  .header-right { flex-wrap: wrap; gap: 12px; }
  .submenu { position: static; display: block; border: 0; padding: 4px 0; text-align: left; }
  .split { grid-template-columns: 1fr; }
  .split .text { padding-right: 0; }
  .split .image { margin-left: 0; }
  .site-footer { flex-direction: column; font-size: 10px; }
  .footer-left { flex-direction: column; gap: 0; }
  .footer-right { text-align: left; }
}

/* ---------- Photo gallery with mixed shapes (History page) ---------- */
.masonry { column-count: 3; column-gap: 12px; margin-bottom: 40px; }
.masonry img { width: 100%; height: auto; margin: 0 0 12px; break-inside: avoid; }
@media (max-width: 720px) { .masonry { column-count: 2; } }

/* ---------- Video poster links (open YouTube in a new tab) ---------- */
.video { display: block; position: relative; max-width: 560px; margin: 0 0 28px; }
.video img { width: 100%; }
.video::after { content: "\25B6"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 44px; text-shadow: 0 0 12px rgba(0,0,0,.6); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 40px; }
.videos .video { max-width: none; margin: 0; }
.text-block a { word-break: break-all; }
img.hero { width: 100%; height: auto; }
.split .image img { width: 100%; height: auto; }
