:root {
  --bg: #d32f2f;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #444;
  --rule: #000;
  --accent: #000;
  --accent-soft: #ccc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #8b0000;
    --paper: #1a1a1a;
    --ink: #e0e0e0;
    --muted: #999;
    --rule: #fff;
    --accent: #fff;
    --accent-soft: #333;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Courier New", Courier, monospace;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  max-width: 70ch;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-left: 6px solid var(--accent);
  border-right: 6px solid var(--accent);
  min-height: 100vh;
}
h1, h2, h3 {
  font-family: "Impact", "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.5em;
  margin-bottom: 0.3em;
  font-weight: 900;
  border-bottom: 4px solid var(--accent);
  padding-bottom: 0.2em;
}
h1 { font-size: 2.5rem; margin-top: 0.5em; border-bottom-width: 6px; }
h2 { font-size: 1.5rem; }
.subtitle {
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: -0.5em;
  font-family: "Courier New", Courier, monospace;
  border: 2px solid var(--accent);
  display: inline-block;
  padding: 0.2em 0.5em;
}
.muted { color: var(--muted); }
a { color: var(--accent); text-decoration: underline solid; text-underline-offset: 0.15em; }
a:hover { color: var(--bg); background: var(--accent); text-decoration: none; }
:focus-visible { outline: 4px solid var(--accent); outline-offset: 4px; }
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: var(--bg);
  padding: 0.5rem 1rem; z-index: 100; text-decoration: none;
  font-family: "Courier New", Courier, monospace;
}
.skip-link:focus { top: 0; }
header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 6px double var(--accent);
}
.contact-links {
  font-size: 1rem;
  margin-top: 0.5rem;
  color: var(--ink);
  border: 2px solid var(--accent);
  padding: 0.5em;
  display: inline-block;
}
.contact-links a { color: var(--accent); }
.contact-links a:hover { color: var(--bg); background: var(--accent); }
section { margin-bottom: 2rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.gallery figure {
  margin: 0;
  background: var(--paper);
  border: 4px solid var(--accent);
  box-shadow: 8px 8px 0 var(--accent);
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 4px solid var(--accent);
}
.gallery figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  text-align: center;
}
/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  overflow: auto;
  cursor: pointer;
}
.modal-content {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: 5% auto;
  border: 6px solid var(--accent);
  box-shadow: 12px 12px 0 var(--accent);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  text-shadow: 2px 2px 0 #000;
}
.modal-close:hover {
  color: #ccc;
}
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 4px solid var(--accent);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
