/* Village Hall opening hours */
:root {
  --ink: #2b2b26;
  --paper: #f7f5f0;
  --card: #ffffff;
  --accent: #7a1f1f;
  --accent-soft: #f3e2e2;
  --muted: #5c5c54;
  --line: #ddd8cd;
  --ok: #2f5d3a;
}

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

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--accent);
  color: #ffffff;
  padding: 2.25rem 1.25rem 1.75rem;
  text-align: center;
}

header h1 {
  font-size: 1.9rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

header p {
  margin-top: 0.4rem;
  font-size: 1rem;
  color: #f3e2e2;
}

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.days {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}

.days li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.days li:last-child { border-bottom: none; }

.days .day-name {
  font-size: 1.05rem;
}

.days .times {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

.days li.today {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding-left: calc(1.1rem - 4px);
}

.days li.today .day-name { font-weight: bold; color: var(--accent); }
.days li.today .times { color: var(--ink); }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #ffffff;
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.closed { font-style: italic; }

.notice {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  background: var(--card);
  font-size: 0.95rem;
  color: var(--muted);
}

.notice.connected { border-left-color: var(--ok); }

.status {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}

a { color: var(--accent); }
a:focus-visible, li:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  header h1 { font-size: 1.5rem; }
  .days li { flex-direction: column; gap: 0.15rem; }
  .days .times { text-align: left; }
}
