:root {
  --plaque: #8ba7cc;
  --lunch: #f1cd4a;
  --cat: #4d9b5a;
  --ink: #1a1a1a;
  --paper: #fdfbf4;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Patrick Hand", ui-rounded, system-ui, sans-serif;
  min-height: 100%;
}
body {
  background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Address plaque ──────────────────────────────── */
.plaque {
  display: inline-block;
  border: 3px solid var(--ink);
  background: var(--plaque);
  padding: 10px 34px 6px;
  box-shadow: 6px 6px 0 var(--ink);
  margin-top: 8px;
}
.plaque .num {
  font-family: "Staatliches", Impact, sans-serif;
  font-size: clamp(88px, 16vw, 160px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 4px;
  color: var(--paper);
  display: block;
}

.tld {
  margin-top: 18px;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 4px;
  opacity: 0.7;
}
.tld::before, .tld::after {
  content: " • • • ";
  opacity: 0.5;
}

/* ── House image ─────────────────────────────────── */
.main-wrap {
  margin-top: 42px;
  width: 100%;
  max-width: 560px;
}
.main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.main > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Visit counter ───────────────────────────────── */
.counter {
  margin-top: 56px;
  opacity: 0.6;
}

/* ── Buttons ─────────────────────────────────────── */
.buttons {
  margin-top: 56px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  position: relative;
  font-family: "Patrick Hand", cursive;
  font-weight: 400;
  font-size: 28px;
  color: var(--paper);
  text-decoration: none;
  padding: 18px 34px 16px;
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 80ms ease, box-shadow 80ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 220px;
  justify-content: center;
}
.btn-lunch { background: var(--lunch); color: var(--ink); }
.btn-cat   { background: var(--cat);   color: var(--ink); }
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--ink);
}
.btn .arrow {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 20px;
  opacity: 0.7;
}

/* ── Subpage chrome ──────────────────────────────── */
.back {
  align-self: flex-start;
  order: 999;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.65;
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  margin-top: 40px;
  letter-spacing: 1px;
}
.back:hover { opacity: 1; background: var(--ink); color: var(--paper); }

.page-title {
  display: inline-block;
  font-family: "Staatliches", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 14vw, 120px);
  line-height: 1;
  letter-spacing: 3px;
  color: var(--ink);
  padding: 18px 28px 14px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  margin: 0 0 18px;
}

.updated {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 4px;
  opacity: 0.7;
  margin: 0 0 40px;
}
.updated::before, .updated::after {
  content: " • • • ";
  opacity: 0.5;
}

.subject-wrap {
  width: 100%;
  max-width: 560px;
}
.subject {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.subject > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (max-width: 500px) {
  main { padding: 40px 20px 56px; }
  .plaque { padding: 8px 20px 4px; }
  .buttons { gap: 18px; }
  .btn { min-width: 0; width: 100%; max-width: 320px; font-size: 26px; }
  .page-title { padding: 14px 20px 10px; box-shadow: 4px 4px 0 var(--ink); }
}
