/* Base layer: reset, document defaults, focus and skip-link styles */

html {
  line-height: 1.15;
}
body {
  margin: 0;
}
* {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  -webkit-font-smoothing: antialiased;
}
p,
li,
ul,
pre,
div,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote,
figcaption {
  margin: 0;
  padding: 0;
}
button {
  background-color: transparent;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button,
select {
  text-transform: none;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
  color: inherit;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: inherit;
}
pre {
  white-space: normal;
}
input {
  padding: 2px 4px;
}
img {
  display: block;
  /* width/height attributes only reserve the aspect ratio (prevents layout shift);
     the rendered size is still controlled by the stylesheet, exactly as before */
  width: auto;
  height: auto;
}
address {
  font-style: normal;
}
details {
  display: block;
  margin: 0;
  padding: 0;
}
summary::-webkit-details-marker {
  display: none;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Document defaults */
html {
  font-family: var(--font-family-body);
  font-size: 1rem;
}
body {
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.01em;
  line-height: 1.6;
  color: var(--color-on-surface);
  background: var(--color-surface);
  fill: var(--color-on-surface);
}
html.nav-open {
  overflow: hidden;
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary, #6a3726);
  outline-offset: 2px;
}
[tabindex="-1"]:focus-visible {
  outline: none;
}
/* Links whose own box is "display: contents" show the ring on their visual child */
a:focus-visible > div:only-child {
  outline: 2px solid var(--color-primary, #6a3726);
  outline-offset: 2px;
}
/* Dark surfaces: use the light accent so the ring stays visible */
.navigation-mobile-overlay a:focus-visible,
.navigation-mobile-overlay button:focus-visible,
.norvella-footer-lower a:focus-visible,
.norvella-footer-lower button:focus-visible,
.norvella-hero a:focus-visible > div:only-child,
.about-hero a:focus-visible,
.menu-hero a:focus-visible > div:only-child,
.experience-hero a:focus-visible > div:only-child,
.contact-hero a:focus-visible > div:only-child,
.dietary-guidance a:focus-visible > div:only-child {
  outline-color: var(--color-accent, #d0a76b);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 8px;
  z-index: 100000;
  padding: 10px 16px;
  border-radius: 0 0 6px 6px;
  background: var(--color-primary, #6a3726);
  color: var(--color-on-primary, #ffffff);
  font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

/* Visually hidden helper */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
