/* The Little Burg — the plaque at the door (same atlas plate, last page) */
:root {
  --paper: #f2e8d5;
  --paper-hi: #f9f2e3;
  --ink: #2a241d;
  --ink-soft: #5c5344;
  --brick: #b8452c;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --mono: 'SFMono-Regular', 'DejaVu Sans Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; }

html, body { min-height: 100%; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px 16px 18px;
  background:
    repeating-linear-gradient(0deg,   rgba(42, 36, 29, 0.045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg,  rgba(42, 36, 29, 0.045) 0 1px, transparent 1px 64px),
    var(--paper);
  font-family: var(--serif);
  color: var(--ink);
}

/* ---------- the plaque ---------- */
.plaque {
  background: var(--paper-hi);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink), inset 0 0 0 4px var(--paper-hi), inset 0 0 0 5px var(--ink-soft);
  padding: clamp(26px, 6vw, 42px) clamp(20px, 6vw, 44px) clamp(24px, 5vw, 36px);
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.seal {
  width: 84px;
  height: 84px;
  display: block;
  margin: 0 auto 14px;
}

.plaque h1 {
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.05;
}

.dates {
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 7px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--ink-soft);
  width: 72%;
  margin: 18px auto;
}

.epitaph {
  font-size: 15.5px;
  line-height: 1.6;
}

.census {
  font-size: 15.5px;
  line-height: 1.6;
  margin-top: 14px;
}
.census b { color: var(--brick); }

/* ---------- the door ---------- */
.door {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.6px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 9px 16px 8px;
}
.door:hover, .door:focus-visible {
  background: var(--ink);
  color: var(--paper-hi);
}
.door:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}
.door:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.closing {
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* ---------- footer ---------- */
#credit {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 359px) {
  .plaque { box-shadow: 2px 2px 0 var(--ink), inset 0 0 0 3px var(--paper-hi), inset 0 0 0 4px var(--ink-soft); }
}
