*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "DM Sans", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1F1A17;
  background: #F5F1EA;
}
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: rgba(245, 241, 234, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2D9C8;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: #1F1A17;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #7A2E2E;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #5C5249;
  transition: color 0.15s;
}
.nav-link:hover { color: #1F1A17; }

.nav-lang {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B8074;
  border: 1px solid #E2D9C8;
  border-radius: 4px;
  padding: 3px 8px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-lang:hover { color: #1F1A17; border-color: #1F1A17; }

/* Lang picker dropdown */
.lang-picker { position: relative; }
.lang-picker > summary {
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B8074;
  border: 1px solid #E2D9C8;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
  white-space: nowrap;
}
.lang-picker > summary::-webkit-details-marker { display: none; }
.lang-picker > summary::marker { display: none; }
.lang-picker[open] > summary,
.lang-picker > summary:hover { color: #1F1A17; border-color: #1F1A17; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 200;
  min-width: 150px;
  background: #FFFDF9;
  border: 1px solid #E2D9C8;
  border-radius: 6px;
  padding: 4px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 4px 16px rgba(31,26,23,0.10);
}
.lang-option a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: #3D3530;
  transition: background 0.1s;
}
.lang-option a:hover { background: #F5F1EA; }
.lang-option--active a { font-weight: 600; color: #1F1A17; }
.lang-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8B8074;
  min-width: 22px;
}
.lang-option--active .lang-code { color: #7A2E2E; }

.site-footer {
  text-align: center;
  padding: 48px 24px;
  font-size: 13px;
  color: #8B8074;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  border-top: 1px solid #E2D9C8;
  margin-top: 64px;
}

@media (max-width: 600px) {
  .site-header { padding: 0 20px; }
}

@media (min-width: 1344px) {
  .site-header {
    padding-left: calc((100vw - 1280px) / 2);
    padding-right: calc((100vw - 1280px) / 2);
  }
}
