:root {
  --sidebar-width: 184px;
  --sidebar-color: #e8c4bb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: #ffffff;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffffff;
  color: #49312d;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  padding: 28px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sidebar-color);
  color: #49312d;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  min-height: 44px;
  margin: 0 0 24px;
  color: #3d2824;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.mobile-actions { display: none; }

.sidebar-note {
  margin: auto 10px 0;
  padding-top: 36px;
  color: #6b4941;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
}

.nav-label {
  margin: 0 10px 12px;
  color: #6b4941;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 10px;
  border-radius: 8px;
  color: #513830;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease;
}

.nav-link[aria-current="location"] {
  color: #3d2824;
  background: #f5ddd7;
}

.nav-link:hover { background: #f0d3ca; }

.nav-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

a:focus-visible {
  outline: 3px solid #79473b;
  outline-offset: 3px;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

main {
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: 0;
}

.sidebar ~ main { margin-left: var(--sidebar-width); }

.page-section {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(28px, 5vw, 64px);
  color: #42322d;
}

.page-section + .page-section { border-top: 1px solid #f0e7e4; }

.page-section h1,
.page-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (max-width: 600px) {
  :root { --mobile-header-height: 80px; }
  .sidebar {
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    inset: auto;
    width: 100%;
    height: auto;
    padding: 8px 16px;
    gap: 12px;
    overflow: visible;
    border-bottom: 1px solid #d7b0a2;
  }
  .sidebar.is-enhanced { position: fixed; flex-wrap: nowrap; inset: 0 0 auto; height: var(--mobile-header-height); }
  .brand { width: 90px; max-width: 90px; margin: 0; }
  .mobile-actions { display: flex; align-items: center; gap: 8px; }
  .mobile-call,
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #bc9283;
    border-radius: 6px;
    background: #f5ddd7;
    color: #49312d;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
  }
  .mobile-call:hover,
  .menu-toggle:hover { background: #fff0eb; }
  .menu-toggle:focus-visible { outline: 3px solid #79473b; outline-offset: 3px; }
  .menu-toggle svg { width: 18px; height: 18px; }
  .menu-toggle { display: none; }
  .sidebar.is-enhanced .menu-toggle { display: inline-flex; }
  .sidebar nav {
    flex-basis: 100%;
    width: 100%;
    padding-block: 16px;
  }
  .sidebar.is-enhanced nav {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100vh - var(--mobile-header-height));
    max-height: calc(100dvh - var(--mobile-header-height));
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid #d7b0a2;
    background: var(--sidebar-color);
    box-shadow: 0 10px 20px #49332c18;
  }
  .nav-label { margin: 0 12px 12px; font-size: 13px; letter-spacing: 1px; }
  .nav-link {
    gap: 12px;
    min-height: 48px;
    padding: 12px;
    font-size: 16px;
  }
  .sidebar-note { display: none; }
  main,
  .sidebar ~ main { margin-left: 0; padding-top: 0; }
  .sidebar.is-enhanced ~ main { padding-top: var(--mobile-header-height); }
  .sidebar.is-enhanced ~ main,
  .sidebar.is-enhanced ~ main .page-section { scroll-margin-top: calc(var(--mobile-header-height) + 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link { transition: none; }
}
