:root {
  --page: #969696;
  --panel: #c9c9c9;
  --ink: #242424;
  --line: #585858;
  --blue: #0b2b72;
  --red: #7f1111;
  --cream: #eeeedf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 8px),
    var(--page);
}

a {
  color: #001a88;
  font-weight: bold;
}

a:visited {
  color: #551a8b;
}

.page-shell {
  width: min(1060px, calc(100% - 24px));
  margin: 18px auto;
  border: 3px double #222;
  background: #a9a9a9;
  box-shadow: 9px 9px 0 rgba(0,0,0,.25);
}

.top {
  text-align: center;
  border-bottom: 2px solid #333;
}

.date-bar {
  padding: 5px 0;
  color: #fff;
  background: #111;
  font: 13px Verdana, Arial, sans-serif;
  letter-spacing: 0;
}

.brand-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px 28px 18px;
}

.badge {
  display: grid;
  place-items: center;
}

.badge img {
  width: 160px;
  height: auto;
  opacity: .72;
}

.brand-copy {
  text-align: left;
}

.eyebrow {
  margin: 0 0 6px;
  color: #303030;
  font: bold 12px Verdana, Arial, sans-serif;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #030303;
  font-size: clamp(40px, 7vw, 74px);
  line-height: .95;
  text-shadow: 1px 1px 0 #e6e6e6;
}

h1 em {
  font-size: .58em;
}

.tagline {
  margin: 12px 0 0;
  font-size: 22px;
  font-style: italic;
}

.main-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  border-top: 1px solid #333;
  background: linear-gradient(#dedede, #9c9c9c);
}

.main-menu a {
  min-width: 118px;
  padding: 10px 14px;
  color: #111;
  border-right: 1px solid #555;
  font: bold 14px Verdana, Arial, sans-serif;
  text-decoration: none;
}

.main-menu a:hover {
  color: #fff;
  background: #222;
}

main {
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
  min-height: 360px;
}

.hero-left,
.profile-card,
.side-panel,
.poem-box,
.guestbook,
.contact,
.notice {
  border: 2px ridge #e5e5e5;
  background: rgba(221,221,221,.72);
}

.hero-left {
  padding: 26px;
}

h2 {
  margin: 0 0 14px;
  color: #353535;
  font-size: 34px;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 22px;
}

p {
  font-size: 18px;
  line-height: 1.38;
}

.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.stamp-row span {
  padding: 5px 8px;
  border: 1px solid #555;
  color: #101010;
  background: var(--cream);
  font: 12px "Courier New", monospace;
}

.profile-card {
  padding: 12px;
  text-align: center;
}

.profile-card h3 {
  margin: 4px 0 12px;
  color: #262626;
  font-size: 24px;
  text-transform: uppercase;
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid #222;
  filter: grayscale(.35) contrast(.9);
}

.caption {
  margin: 8px 0 12px;
  font-size: 14px;
  font-style: italic;
}

.counter {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px inset #333;
  background: #111;
  color: #e7f1c4;
  font-family: "Courier New", monospace;
}

.counter strong {
  color: #7cff61;
}

.counter-note {
  margin: 8px auto 0;
  max-width: 230px;
  font-size: 13px;
  line-height: 1.25;
  font-style: italic;
}

.notice {
  margin: 24px 0;
  padding: 12px 16px;
  color: #111;
  background: #e7e7c6;
  font-size: 18px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 22px;
  align-items: start;
}

.services {
  width: 100%;
  border-collapse: collapse;
  background: #d7d7d7;
  font-size: 17px;
}

.services th,
.services td {
  padding: 9px 10px;
  border: 1px solid #565656;
  vertical-align: top;
}

.services th {
  color: #fff;
  background: var(--blue);
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
  text-align: left;
}

.services tr:nth-child(odd) td {
  background: #c8c8c8;
}

.side-panel {
  padding: 14px;
  font-size: 16px;
}

.side-panel ul {
  margin: 0 0 18px;
  padding-left: 19px;
}

.side-panel li {
  margin-bottom: 10px;
}

.download-box {
  padding: 12px;
  border: 1px dashed #333;
  background: #eee;
  text-align: center;
}

.download-box small {
  display: block;
  margin-top: 6px;
  font: 11px Verdana, Arial, sans-serif;
}

.gallery-section {
  margin-top: 30px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

figure {
  margin: 0;
  padding: 8px;
  border: 2px groove #fff;
  background: #d3d3d3;
}

.gallery-card {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  filter: saturate(.9) contrast(1.08);
}

.gallery-card:focus-visible {
  outline: 2px dotted #111;
  outline-offset: 4px;
}

figure img,
.lightbox-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #222;
  filter: saturate(.75);
}

.gallery-card span,
figcaption {
  display: block;
  margin-top: 7px;
  font-size: 14px;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.62);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-window {
  width: min(880px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 4px double #f1f1f1;
  background: #b8b8b8;
  box-shadow: 10px 10px 0 rgba(0,0,0,.45);
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: #fff;
  background: #111;
}

.lightbox-top h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.lightbox-close {
  min-width: 34px;
  padding: 3px 9px;
  color: #111;
  border: 2px outset #fff;
  background: #ddd;
  font-weight: bold;
}

.lightbox-body {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.lightbox-arrow {
  width: 42px;
  min-height: 82px;
  padding: 0;
  border: 2px outset #eee;
  background: #d8d8d8;
  font-size: 38px;
  line-height: 1;
}

.lightbox-figure {
  padding: 10px;
  background: #dcdcdc;
}

.lightbox-figure img {
  max-height: 62vh;
  aspect-ratio: auto;
  object-fit: contain;
  background: #222;
}

.lightbox-figure figcaption {
  font-size: 18px;
  font-style: italic;
}

.lightbox-status {
  padding: 0 14px 14px;
  color: #202020;
  font: 13px "Courier New", monospace;
  text-align: center;
}

.poetry {
  margin-top: 30px;
}

.poem-box {
  max-width: 560px;
  padding: 18px 22px;
  background: #ededed;
}

.poem-box p {
  min-height: 132px;
  margin-bottom: 0;
  font-size: 21px;
  font-style: italic;
}

.poem-meta {
  margin-bottom: 8px;
  color: #333;
  font: 12px "Courier New", monospace;
  text-transform: uppercase;
}

.poem-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.poem-controls button {
  min-width: 112px;
}

.note {
  font-size: 15px;
}

.guestbook {
  margin-top: 30px;
  padding: 18px;
}

.guest-entry {
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid #777;
  background: #efefef;
  font-size: 17px;
}

.guest-form {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-top: 16px;
  font: 14px Verdana, Arial, sans-serif;
}

input,
textarea,
button {
  border-radius: 0;
  border: 2px inset #a0a0a0;
  font: 14px Verdana, Arial, sans-serif;
}

input,
textarea {
  width: 100%;
  padding: 7px;
  background: #fff;
}

textarea {
  min-height: 72px;
  resize: vertical;
}

button {
  width: fit-content;
  padding: 6px 12px;
  border-style: outset;
  cursor: pointer;
  background: #dcdcdc;
}

button:active {
  border-style: inset;
}

.contact {
  margin-top: 30px;
  padding: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.hours {
  border-left: 1px solid #777;
  padding-left: 22px;
}

.small {
  font-size: 14px;
}

footer {
  padding: 18px;
  color: #e8e8e8;
  border-top: 2px solid #333;
  background: #262626;
  text-align: center;
}

footer p {
  margin: 4px 0;
  font-size: 14px;
}

footer a {
  color: #fff;
}

.blink {
  animation: blink 1.15s steps(1, end) infinite;
}

@keyframes blink {
  50% {
    opacity: .62;
  }
}

@media (max-width: 820px) {
  .brand-row,
  .hero,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .brand-copy {
    text-align: center;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .hours {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  main {
    padding: 14px;
  }

  h2 {
    font-size: 26px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .main-menu a {
    width: 50%;
    min-width: 0;
  }
}
