:root {
  /* Light theme palette */
  --color-bg: #f9fafb;
  --color-text: #1a1a1a;
  --color-primary: #2a6fbb;
  --color-primary-light: #4a8fdc;
  --color-secondary: #d9a441;
  --color-accent: #e07b39;
  --color-muted: #6b7280;
  --color-bg-alt: #ffffff;
  --color-border: #d1d5db;
  --color-link: var(--color-primary);
  --color-link-hover: var(--color-primary-light);
  --color-heading: #0b3d91;
  --color-shadow: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
  --color-bg: #121212;
  --color-text: #e4e4e4;
  --color-primary: #4a8fdc;
  --color-primary-light: #6aa8f9;
  --color-secondary: #d9a441;
  --color-accent: #e07b39;
  --color-muted: #9ca3af;
  --color-bg-alt: #1e1e1e;
  --color-border: #374151;
  --color-link: var(--color-primary-light);
  --color-link-hover: #a3c0ff;
  --color-heading: #a0c4ff;
  --color-shadow: rgba(0,0,0,0.7);
}

/* Base resets and typography */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  min-width: 0;
}

h1, h2 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-heading);
  line-height: 1.2;
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
  display: block;
  padding-bottom: 0.1em;
}
h1 {
  font-size: 2.25rem;
  font-weight: 700;
}
h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
p, li, dd, dt {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
  display: block;
  line-height: 1.4;
  padding-bottom: 0.1em;
}

ul {
  padding-left: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}
li {
  margin-bottom: 0.5rem;
}
dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}
dt {
  font-weight: 700;
  color: var(--color-primary);
}
dd {
  margin: 0;
  color: var(--color-text);
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
}

/* Header styling */
header {
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 4px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
header h1 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--color-primary);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.3s ease;
}
nav a:hover,
nav a:focus {
  color: var(--color-primary-light);
  outline-offset: 2px;
}
button[data-theme-toggle] {
  background: none;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
button[data-theme-toggle]:hover,
button[data-theme-toggle]:focus {
  background-color: var(--color-primary);
  color: var(--color-bg-alt);
  outline-offset: 2px;
}

/* Hero section */
.hero {
  background-color: var(--color-bg-alt);
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
  box-shadow: inset 0 -1px 0 var(--color-border);
}
.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
  display: block;
  padding-bottom: 0.1em;
}
.hero p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-muted);
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
  display: block;
  line-height: 1.4;
  padding-bottom: 0.1em;
}
.hero img {
  margin-top: 1.5rem;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--color-shadow);
}

/* Services section */
.services {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.services ul {
  list-style: disc inside;
  color: var(--color-text);
}
.services p {
  max-width: 600px;
  color: var(--color-text);
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
  display: block;
  line-height: 1.4;
  padding-bottom: 0.1em;
}

/* Facts section */
.facts {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  color: var(--color-text);
}

/* Contact section */
.contact {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
address {
  font-style: normal;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
  display: block;
  padding-bottom: 0.1em;
}
address a {
  color: var(--color-primary);
  text-decoration: none;
}
address a:hover,
address a:focus {
  text-decoration: underline;
}

/* Booking widget placeholder styling */
#booking-widget {
  margin-top: 1rem;
  min-height: 3rem;
  border: 2px dashed var(--color-primary);
  border-radius: 6px;
}

/* Footer styling */
footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
}
footer a {
  color: var(--color-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
}
footer a:hover,
footer a:focus {
  text-decoration: underline;
}

/* Accessibility and focus styles */
a:focus,
button:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (min-width: 600px) {
  .hero p {
    font-size: 1.125rem;
  }
  .services ul {
    font-size: 1.125rem;
  }
}

@media (min-width: 900px) {
  header .container {
    max-width: 900px;
  }
  .container {
    max-width: 900px;
  }
}

/* Prevent overflow of long words or URLs */
body, p, li, dd, dt, address, small {
  overflow-wrap: anywhere;
}
