:root {
  --ink: #0e1726;
  --ink-soft: #5b6577;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --accent: #0a66c2;
  --accent-dark: #064b8e;
  --border: #e3e7ee;
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 1px 3px rgba(10, 22, 50, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 1rem 0; }
h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.125rem; margin: 0 0 .5rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
}
.brand {
  font-weight: 700; font-size: 1.125rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: .5rem;
}
.brand:hover { text-decoration: none; }
.brand-logo { color: var(--accent); flex-shrink: 0; }

.worldclocks { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .65rem; }
.worldclocks .clock {
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  display: block;
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.worldclocks .clock:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.clock-city {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.clock-flag { font-size: 1rem; }
.clock-time {
  font-variant-numeric: tabular-nums;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -.5px;
  margin-top: .25rem;
  color: var(--ink);
}
.clock-meta {
  font-size: .75rem;
  color: var(--ink-soft);
  margin-top: .15rem;
  font-variant-numeric: tabular-nums;
}
.site-header nav a { margin-left: 1.25rem; color: var(--ink); }
.site-header nav a:hover { color: var(--accent); text-decoration: none; }

.hero { padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.5rem; max-width: 720px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; }
.hero-cta { margin-top: 1.25rem; }

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-split .hero-copy { min-width: 0; }
.hero-split .hero-art { min-width: 0; }
.hero-split .hero-art img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-split .hero-art { order: -1; max-width: 480px; margin: 0 auto; }
}

.btn {
  display: inline-block; padding: .6rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg); color: var(--ink);
  margin-right: .5rem; font-weight: 500;
}
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 2.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-img { width: 100%; height: 160px; object-fit: cover; }
.card-body, .card { padding: 0; }
.card-body { padding: 1rem; }
.card:not(.event-card) { padding: 1rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.muted { color: var(--ink-soft); font-size: .9rem; }
.tag { display: inline-block; padding: 0 .5rem; background: var(--bg-soft); border-radius: 3px; font-size: .8rem; }

.filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1rem 0 2rem;
}
.filters input, .filters select, .filters button {
  padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit;
}
.filters button { background: var(--accent); color: #fff; border-color: var(--accent); cursor: pointer; }
.filters a { padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 999px; color: var(--ink); }
.filters a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.holidays-table {
  width: 100%; border-collapse: collapse; margin-top: 1rem;
}
.holidays-table th, .holidays-table td {
  padding: .65rem .75rem; border-bottom: 1px solid var(--border); text-align: left;
}
.holidays-table thead th { background: var(--bg-soft); font-weight: 600; }

.holiday-list { list-style: none; padding: 0; margin: 1rem 0; }
.holiday-list li { padding: .65rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.holiday-list time { color: var(--ink-soft); min-width: 140px; }

.hero-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); }
.prose { max-width: 740px; }
.prose img { max-width: 100%; height: auto; }

.site-footer {
  margin-top: 4rem; padding: 2rem 0; border-top: 1px solid var(--border);
  color: var(--ink-soft); font-size: .9rem;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.85rem; }
  h1 { font-size: 1.6rem; }
  .site-header nav a { margin-left: .75rem; font-size: .95rem; }
}
