html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --elf-ink: #232126;
  --elf-muted: #6a636e;
  --elf-paper: #f6f4f7;
  --elf-panel: #fcf8fb;
  --elf-line: #e2dbe6;
  --elf-accent: #7a657f;
  --elf-accent-dark: #2f2a33;
  --elf-shadow: #2f2a3315;
  --elf-radius-sm: 8px;
  --elf-radius-md: 12px;
  --elf-radius-lg: 18px;
  --elf-content-max: 1240px;
}

@keyframes elfFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes elfGlowIn {
  from {
    opacity: 0;
    transform: scale(0.985);
    filter: saturate(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1);
  }
}

body {
  background:
    radial-gradient(circle at 18% 12%, #ffffff 0, #ffffff 150px, transparent 360px),
    linear-gradient(180deg, #fbf9fc 0%, var(--elf-paper) 520px, #efebf2 100%);
  color: var(--elf-ink);
  letter-spacing: -0.006em;
  position: relative;
}

body::before {
  content: none;
}

nav {
  background: #fbf9fcea;
  border-bottom: 1px solid var(--elf-line);
  box-shadow: 0 4px 12px #2f2a330d;
  backdrop-filter: blur(14px);
}

nav .container {
  padding-bottom: 18px;
  padding-top: 18px;
  max-width: var(--elf-content-max);
}

nav .nav-content {
  background: #fcf8fbaa;
  border: 1px solid #ece5ee;
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: none;
}

main {
  padding-top: 112px;
}

section {
  scroll-margin-top: 104px;
}

.container {
  max-width: var(--elf-content-max);
}

.logo,
.nav-links a,
.cta-button,
.secondary-button {
  outline-offset: 4px;
}

.logo {
  align-items: center;
  display: inline-flex;
}

.logo img {
  background: var(--elf-panel);
  border: 1px solid var(--elf-line);
  border-radius: 50%;
  display: block;
  height: 64px;
  object-fit: contain;
  padding: 7px;
  width: 64px;
  box-shadow: 0 16px 34px #2f2a3321;
}

.nav-links {
  background: transparent;
  border: 0;
  border-radius: 999px;
  gap: 14px;
  padding: 0;
}

.nav-links a {
  border-radius: 999px;
  color: var(--elf-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
  padding: 6px 10px;
  position: relative;
}

.nav-links a:hover {
  background: transparent;
  color: var(--elf-ink);
  opacity: 1;
}

.nav-links a::after {
  background: var(--elf-accent);
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  opacity: 0;
  position: absolute;
  transform: scaleX(0.5);
  transform-origin: left;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.logo:focus-visible,
.nav-links a:focus-visible,
.cta-button:focus-visible,
.secondary-button:focus-visible,
.gallery-item a:focus-visible,
.rating-link:focus-visible,
.lightbox-button:focus-visible {
  outline: 2px solid var(--elf-accent);
  outline-offset: 4px;
}

h1,
h2 {
  color: var(--elf-ink);
}

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.6vw, 3.65rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.009em;
  max-width: 13.2ch;
}

h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: clamp(2rem, 3.3vw, 2.7rem);
  letter-spacing: -0.018em;
  line-height: 1.15;
  position: relative;
}

h2::after {
  background: var(--elf-accent);
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  margin-top: 14px;
  width: 52px;
}

.subtitle,
.section-subtitle {
  color: #6f6270;
  line-height: 1.42;
}

.hero-text-content {
  padding-top: 26px;
}

.subtitle {
  max-width: 42ch;
}

.hero {
  padding-top: 18px;
  animation: elfFadeUp 0.6s ease both;
}

.hero-grid {
  align-items: center;
  gap: clamp(2rem, 4vw, 6rem);
}

.hero-text {
  background: #fcf8fb;
  border: 1px solid #e7dfe8;
  border-radius: var(--elf-radius-lg);
  box-shadow: 0 8px 18px #2f2a330f;
  padding: 22px;
}

.hero-image,
.gallery-item-image,
.map-section .map-container {
  box-shadow: 0 10px 24px #2f2a3314;
}

.hero-image {
  border-radius: var(--elf-radius-lg);
  animation: elfGlowIn 0.85s ease both;
  border: 1px solid #d9e2ea;
}

.hero-image img,
.gallery-item img {
  background: #ddd6e1;
}

.hero-image-caption {
  background: #fcf8fbf2;
  border: 1px solid #ffffffd9;
  border-radius: 10px;
  box-shadow: none;
}

.cta-button,
.secondary-button {
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: -0.01em;
  min-height: 50px;
  box-shadow: 0 8px 18px #0000000d;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.cta-buttons {
  gap: 12px;
  margin-bottom: 30px;
}

.cta-button:hover,
.secondary-button:hover {
  box-shadow: 0 8px 16px #00000010;
  transform: translateY(-1px);
}

.cta-button {
  background: linear-gradient(180deg, #433a48 0%, var(--elf-accent-dark) 100%);
  border-color: var(--elf-accent-dark);
  color: #f3f7fb;
}

.cta-button:hover {
  background: linear-gradient(180deg, #8a7490 0%, var(--elf-accent) 100%);
  border-color: var(--elf-accent);
  color: #f2f3f4;
}

.secondary-button {
  background: linear-gradient(180deg, #fdf9fc 0%, #f8f2f8 100%);
  border-color: var(--elf-line);
  color: #4a3b48;
}

.secondary-button:hover {
  border-color: #cfc2d6;
}

.card,
.advantage-card {
  background: var(--elf-panel);
  border: 1px solid var(--elf-line);
  border-radius: var(--elf-radius-md);
  box-shadow: 0 6px 14px #2f2a330c;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card::before,
.advantage-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--elf-accent) 0%, transparent 55%);
  opacity: 0.14;
}

.card:hover,
.advantage-card:hover {
  border-color: #c8b8cf;
  box-shadow: 0 10px 20px #2f2a3314;
  transform: translateY(-2px);
}

.card::after,
.advantage-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #4f647a1c 0%, transparent 70%);
  z-index: -1;
}

.card blockquote,
.advantage-card blockquote {
  color: #3a3440;
  line-height: 1.45;
}

.advantage-card h4,
.card h4 {
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.card p,
.advantage-desc {
  color: var(--elf-muted);
  line-height: 1.45;
}

.gallery-item-title {
  color: var(--elf-muted);
  font-weight: 500;
  padding-left: 2px;
}

.gallery-item-image {
  border: 1px solid #ede6f1;
  border-radius: var(--elf-radius-md);
  box-shadow: none;
}

.gallery-item-image img {
  transition: transform 0.35s ease;
}

.gallery-item a:hover .gallery-item-image img {
  transform: scale(1.03);
}

.avatar {
  border: 1px solid #00000012;
}

.rating-badge {
  filter: drop-shadow(0 8px 14px #2f2a3316);
}

.rating-count {
  color: var(--elf-muted);
  opacity: 0.88;
}

.rating {
  background: linear-gradient(180deg, #fdf9fccf 0%, #f6edf6b0 100%);
  border: 1px solid #e3d9e8;
  border-radius: var(--elf-radius-md);
  padding: 10px 14px;
  margin-top: 0;
}


.hours-section .hours-container {
  background: var(--elf-panel);
  border-radius: var(--elf-radius-md);
  border: 1px solid var(--elf-line);
  box-shadow: 0 6px 14px #2f2a330c;
  overflow: hidden;
}

.hours-section .hours-day {
  background: linear-gradient(180deg, #ffffff 0%, #f3edf6 100%);
}

.open-badge,
.closed-badge {
  font-weight: 500;
}

footer {
  background: linear-gradient(180deg, #302a34 0%, #231f26 100%);
}

footer p,
footer a {
  color: #efebf2;
}

footer .cta-button,
footer .secondary-button {
  box-shadow: none;
}

main > section > .container {
  border: 1px solid #e6ebf0;
  border-radius: var(--elf-radius-md);
  padding-top: 28px;
  padding-bottom: 28px;
  background: #fcf8fb;
  backdrop-filter: none;
}

main > section:nth-of-type(odd) > .container {
  background: linear-gradient(180deg, #ffffff94 0%, #f9f4fb8a 100%);
}

main > section:nth-of-type(even) > .container {
  background: linear-gradient(180deg, #faf6fc8e 0%, #ffffff8c 100%);
}

#home > .container {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
}

#hours .container {
  border: 0;
  background: transparent;
  padding: 0 var(--spacing-md);
}

.grid.grid-3 > .card,
.grid.grid-3 > .advantage-card,
.grid.grid-4 > .card {
  animation: elfFadeUp 0.55s ease both;
}

.gallery-grid {
  gap: 18px;
}

.gallery-item {
  background: #fcf8fb;
  border: 1px solid #e8dfec;
  border-radius: var(--elf-radius-md);
  box-shadow: none;
  padding: 10px;
}

.grid.grid-3 > :nth-child(2),
.grid.grid-4 > :nth-child(2) {
  animation-delay: 0.06s;
}

.grid.grid-3 > :nth-child(3),
.grid.grid-4 > :nth-child(3) {
  animation-delay: 0.12s;
}

.grid.grid-3 > :nth-child(4),
.grid.grid-4 > :nth-child(4) {
  animation-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (width <= 768px) {
  body {
    background: var(--elf-paper);
  }

  .card,
  .advantage-card {
    padding: 28px;
  }

  main > section > .container {
    border-radius: var(--elf-radius-sm);
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .nav-links {
    gap: 14px;
    padding: 0;
  }

  nav .nav-content {
    background: #fbf9fc;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .nav-links a {
    border-radius: 999px;
    padding: 8px 12px;
  }

  .cta-button,
  .secondary-button {
    width: 100%;
  }

  .logo img {
    height: 48px;
    padding: 5px;
    width: 48px;
  }

  main {
    padding-top: 62px;
  }

  .hero {
    padding-top: 4px;
  }

  .hero-text-content {
    padding-top: 0;
  }

  .hero-text {
    padding: 22px;
  }

  .subtitle,
  .section-subtitle {
    max-width: 100%;
  }

  h1,
  h2 {
    letter-spacing: -0.015em;
  }

  h1 {
    max-width: 12.8ch;
    line-height: 1.04;
  }

}
