html, body { margin: 0; padding: 0; background: #fffbe8; color: #111; min-height: 100%; }
body { font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.wrap { min-height: 100vh; min-height: 100svh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
header { width: 100%; max-width: 900px; margin: 0 auto; padding: 50px 16px 16px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 30px; position: relative; }
.logo { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; }
.logo img { height: 56px; width: auto; display: block; }

/* Text-based brand logo */
.brand-logo { text-decoration: none; color: inherit; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; gap: 0; }
.brand-logo .brand-name { font-family: 'Special Elite', 'Times New Roman', Times, serif; font-weight: 400; letter-spacing: .02em; font-size: clamp(36px, 12vw, 85px); line-height: .8; }
.brand-logo .brand-sub { display: inline-flex; align-items: center; gap: clamp(8px, 1.2vw, 14px); margin-top: -12px; line-height: 1; }
.brand-logo .brand-sub .dot { font-family: 'Special Elite', 'Times New Roman', Times, serif; font-weight: 400; font-size: clamp(24px, 7vw, 44px); line-height: 1; display: inline-flex; align-items: center; transform: translateY(0.14em); }
.brand-logo .brand-sub .place { font-family: 'Lexend', system-ui, sans-serif; font-weight: 300; font-size: clamp(12px, 3.6vw, 17px); letter-spacing: .18em; line-height: 1; display: inline-flex; align-items: center; }
.nav { display: flex; gap: clamp(8px, 3.5vw, 18px); flex-wrap: nowrap; justify-content: center; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #111; text-decoration: none; font-family: 'Special Elite', 'Times New Roman', Times, serif; font-weight: 400; letter-spacing: .02em; padding: 6px 4px; position: relative; display: inline-block; transition: transform .18s ease-in-out, color .18s ease-in-out; font-size: clamp(14px, 4.5vw, 22px); }
.nav a.active { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* Subtil hover-underline animation */
.nav a::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: 4px;
  width: 80%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease-in-out;
  opacity: .8;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.active::after { display: none; }
.nav a:hover { transform: translateY(-1px); color: #000; }

/* Keyboard focus visibility */
a:focus-visible { outline: 2px dashed rgba(0,0,0,.6); outline-offset: 3px; border-radius: 2px; }

/* Subtle selection color matching the palette */
::selection { background: rgba(0,0,0,.12); color: inherit; }

/* Subtle first-load fade for main content (respects reduced motion) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .intro, .content { animation: fadeUp 180ms ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  .nav a, .nav a::after { transition: none !important; }
}

.site-footer { width: 100%; max-width: 900px; margin: 32px auto 0; padding: 24px 40px 56px; box-sizing: border-box; text-align: center; font-size: 14px; line-height: 1.7; border-top: 1px solid rgba(0,0,0,.12); }
.intro a, .mackor a, .bowls a, .frukost a, .content a, .site-footer a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,.2); }
.intro a:hover, .mackor a:hover, .bowls a:hover, .frukost a:hover, .content a:hover, .site-footer a:hover { border-bottom-color: rgba(0,0,0,.5); }
/* Footer icons */
.footer-icons { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.footer-icons a { text-decoration: none; border-bottom: none; }
.footer-icons a:hover { border-bottom: none; }
.footer-icons svg { width: 22px; height: 22px; display: block; }

@media (min-width: 800px) {
  header { padding: 50px 16px 16px; }
  .logo img { height: 96px; }
  .nav a { font-size: 25px; }
}

@media print { .wrap { display: none; } }

