:root {
  --bg-sand: #fbf2e2;
  --bg-sea: #a7cccb;
  --bg-deep: #2d6f73;
  --bg-night: #1f4f54;
  --ink: #20343a;
  --ink-soft: #35474b;
  --accent-sunset: #de8b4f;
  --accent-olive: #7f9655;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(45, 111, 115, 0.18);
  --shadow: 0 20px 44px rgba(37, 77, 80, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg-sand);
  overflow-x: hidden;
}

html {
  background: var(--bg-sand);
}

@media (max-width: 860px) {
  .page-bg::after {
    display: none;
  }
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.8), transparent 45%),
    radial-gradient(circle at 84% 32%, rgba(126, 181, 178, 0.34), transparent 48%),
    linear-gradient(162deg, var(--bg-sand) 0%, #f6e8cf 34%, #dce9df 66%, #c7dfdc 100%);
}

@media (max-width: 860px) {
  .page-bg {
    /* Extend beyond viewport so dynamic browser UI changes do not reveal a plain strip. */
    top: -20vh;
    bottom: -20vh;
  }
}

@media (max-width: 860px) and (orientation: portrait) {
  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: env(safe-area-inset-bottom, 0px);
    background: #f6e8cf;
    pointer-events: none;
    z-index: 1;
  }
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.page-bg::before {
  width: 48vw;
  height: 48vw;
  max-width: 620px;
  max-height: 620px;
  right: -10vw;
  top: -22vw;
  background: linear-gradient(160deg, rgba(222, 139, 79, 0.2), rgba(45, 111, 115, 0));
}

.page-bg::after {
  width: 32vw;
  height: 32vw;
  max-width: 460px;
  max-height: 460px;
  left: -6vw;
  bottom: -14vw;
  background: linear-gradient(45deg, rgba(127, 150, 85, 0.24), rgba(45, 111, 115, 0));
}

.container {
  width: min(1120px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.brand,
.main-nav,
.language-select {
  min-width: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.46rem 0.9rem;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(251, 242, 226, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.brand-main {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.2rem 0.3rem;
  border-radius: 999px;
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--bg-deep);
}

.language-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-select::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(32, 52, 58, 0.8);
  border-bottom: 2px solid rgba(32, 52, 58, 0.8);
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
}

.language-select select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(245, 239, 226, 0.96));
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  min-height: 42px;
  min-width: 130px;
  padding: 0.5rem 2rem 0.5rem 0.9rem;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.language-select select:hover {
  border-color: rgba(36, 95, 101, 0.35);
}

.language-select select:focus-visible {
  outline: none;
  border-color: rgba(36, 95, 101, 0.62);
  box-shadow: 0 0 0 3px rgba(36, 95, 101, 0.14);
}

.admin-top-logout {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font: inherit;
  padding: 0.45rem 0.8rem;
  color: var(--ink);
  cursor: pointer;
}

