:root {
  --font-sans: 'Space Grotesk', 'Inter', 'Soehne', 'SF Pro Display', system-ui,
    -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --text: #111827;
  --muted: #6b7280;
  --bg: #fdfdfc;
  --surface: #ffffff;
  --surface-alt: #f7f7f2;
  --border: #e4e4e0;
  --accent: #111827;
  --accent-soft: rgba(17, 24, 39, 0.08);
  --radius: 18px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6rem;
  line-height: 1.2;
  color: var(--text);
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #1d4ed8;
}

.site-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-brand {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--muted);
}

.site-header p {
  margin: 0;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 8px;
  position: sticky;
  top: 12px;
  z-index: 10;
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
  scroll-snap-align: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent);
}

.site-nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 640px) {
  .site-nav {
    border-radius: 10px;
    padding: 4px 6px;
  }
  
  .site-nav a {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
}

main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.hero-photo {
  flex: 0 0 280px;
}

.hero-photo img {
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.hero-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-details h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 20px;
}

.contact-grid a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-grid .contact-icon {
  font-size: 0.85rem;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.card + .card {
  margin-top: 4px;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.list-plain {
  list-style: none;
  padding: 0;
}

.list-plain li {
  margin-bottom: 0.65rem;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.highlight {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

.quote {
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-card.wide {
  grid-column: 1 / -1;
}

.gallery-card img {
  border-radius: 0;
  height: 210px;
  object-fit: cover;
}

.gallery-card p {
  padding: 16px 18px 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-card.wide img {
  height: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--accent);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.article header {
  margin-bottom: 24px;
}

.article img {
  border-radius: 20px;
  margin: 24px auto;
}

.article ul {
  list-style: none;
  padding-left: 0;
}

.article li {
  margin-bottom: 1rem;
}

blockquote {
  margin: 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: var(--surface-alt);
  color: var(--text);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.button-link:hover {
  background: var(--accent);
  color: #fff;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-list article {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.table-list article:last-child {
  border-bottom: none;
}

.table-list h3 a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.table-list h3 a::after {
  content: '↗';
  font-size: 0.9rem;
  color: var(--muted);
}

.table-list h3 a:hover {
  color: var(--accent);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-row li {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  margin: 0;
}

.notice {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--muted);
}

/* Calendar Styles */
.calendar-wrapper {
  padding: 24px;
}

.calendar-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border);
}

.calendar-container iframe {
  display: block;
  margin: 0;
  background: white;
  min-height: 600px;
}

@media (max-width: 768px) {
  .calendar-container iframe {
    height: 500px;
    min-height: 500px;
  }
  
  .calendar-wrapper {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .calendar-container iframe {
    height: 450px;
    min-height: 450px;
  }
  
  .calendar-wrapper {
    padding: 12px;
  }
}
