/* Theme: Deep claret (dining) */
:root {
  color-scheme: light dark;
  --bg: #fbf6f6;
  --surface: #ffffff;
  --text: #241417;
  --muted: #6f545a;
  --border: #e8d8da;
  --accent: #7d2436;
  --accent-contrast: #ffffff;
  --heading-font: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-width: 68rem;
  --radius: 14px;
  --space: clamp(1rem, 2.5vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #170f11;
    --surface: #201619;
    --text: #f5eaec;
    --muted: #c2a3aa;
    --border: #352529;
    --accent: #d9788c;
    --accent-contrast: #0d0d0d;
  }
}

[data-theme="dark"] {
  --bg: #170f11;
  --surface: #201619;
  --text: #f5eaec;
  --muted: #c2a3aa;
  --border: #352529;
  --accent: #d9788c;
  --accent-contrast: #0d0d0d;
}

[data-theme="light"] {
  --bg: #fbf6f6;
  --surface: #ffffff;
  --text: #241417;
  --muted: #6f545a;
  --border: #e8d8da;
  --accent: #7d2436;
  --accent-contrast: #ffffff;
}

/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
  max-width: 100%;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-thickness: 0.2em;
}

/* Layout containers */
.wrap {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space);
  padding-right: var(--space);
  width: 100%;
  overflow-wrap: anywhere;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  flex-shrink: 0;
}

.logo-mark {
  width: 48px;
  height: 48px;
}

.brand-name {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Navigation */
nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  justify-content: flex-end;
  min-width: 0;
}

.nav-list li {
  overflow-wrap: anywhere;
}

.nav-list a {
  display: inline-block;
  padding: 0.25rem 0;
  font-weight: 500;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--border);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-contrast);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  top: 0;
}

/* Hero */
.hero {
  padding: var(--space) 0;
  background: var(--surface);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space);
  flex-wrap: wrap;
}

.hero-copy {
  flex: 1 1 240px;
  min-width: 0;
}

h1 {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.hero-actions {
  margin: 0;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.button:hover,
.button:focus-visible {
  opacity: 0.85;
  color: var(--accent-contrast);
}

.hero-figure {
  flex: 0 0 auto;
  max-width: 100%;
}

.hero-figure img {
  max-width: 160px;
  height: auto;
}

/* Trust strip */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.trust-list li {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Content sections */
.content-section {
  padding: var(--space) 0;
}

.section-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space);
  flex-wrap: wrap;
}

.section-copy {
  flex: 1 1 240px;
  min-width: 0;
}

.section-figure {
  flex: 0 0 auto;
  max-width: 100%;
}

.section-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

h2 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  margin: 0 0 1rem;
  line-height: 1.3;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space);
}

.contact-list,
.hours-list,
.social-list,
.source-list {
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
}

.contact-list li,
.hours-list li,
.social-list li,
.source-list li {
  margin-bottom: 0.4rem;
}

.social-list li a,
.source-list li a {
  word-break: break-all;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0;
}

.sources {
  margin-top: var(--space);
  border-top: 1px solid var(--border);
  padding-top: var(--space);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .brand-name {
    font-size: 1rem;
  }

  .nav-list {
    font-size: 0.9rem;
    gap: 0.2rem 0.5rem;
  }

  .hero-figure img {
    max-width: 120px;
  }

  .trust-list {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}