:root {
  --ink: #1a2450;
  --deep: #274a9f;
  --sky: #3b66cc;
  --gold: #f2c644;
  --gold-dark: #c49a2b;
  --leaf: #2f8b57;
  --rose: #c6535a;
  --lavender: #b98ac8;
  --cloud: #f9f1cc;
  --mist: #f4f6fb;
  --line: rgba(26, 36, 80, 0.12);
  --surface: #f7f4e8;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

@font-face {
  font-family: "Daemon";
  src: url("/static/fonts/Daemon%20Full%20Working.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #1f3570;
  letter-spacing: 0.1px;
}

html[lang="daemon"],
html[lang="daemon"] *,
html[lang="x-daemon"],
html[lang="x-daemon"] * {
  font-family: "Daemon", sans-serif !important;
}

html[lang="daemon"] .lang-menu,
html[lang="daemon"] .lang-menu *,
html[lang="x-daemon"] .lang-menu,
html[lang="x-daemon"] .lang-menu * {
  font-family: "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Segoe UI", sans-serif !important;
}


h1,
h2,
h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  margin: 0;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

p {
  margin: 0;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.page {
  max-width: 1200px;
  margin: 24px auto 80px;
  padding: 0 24px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
}

.brand {
  display: grid;
  gap: 4px;
}

.brand small {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-dark);
  font-size: 11px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 18px;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background: var(--rose);
  color: #1d2b3f;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-dropdown {
  position: relative;
}

.lang-button {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-size: 12px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  list-style: none;
  margin: 0;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(26, 36, 80, 0.18);
  display: none;
  z-index: 20;
}

.lang-dropdown.open .lang-menu {
  display: block;
}

.lang-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

.lang-item:hover,
.lang-item[aria-selected="true"] {
  background: rgba(59, 102, 204, 0.12);
}

.lang-item.lang-daemon {
  font-family: "Daemon", sans-serif;
}

.lang-menu .lang-item:not(.lang-daemon) {
  font-family: "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Segoe UI", sans-serif !important;
}

.lang-dropdown[data-lang="daemon"] .lang-button,
.lang-dropdown[data-lang="x-daemon"] .lang-button {
  font-family: "Daemon", sans-serif;
}

.lang-dropdown:not([data-lang="daemon"]):not([data-lang="x-daemon"]) .lang-button {
  font-family: "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Segoe UI", sans-serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  padding: 48px 0 36px;
}

.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47, 139, 87, 0.18);
  color: var(--deep);
  font-size: 12px;
  letter-spacing: 0.6px;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  margin-top: 12px;
}

.hero h1 span {
  color: var(--gold-dark);
}

.hero p {
  font-size: 15px;
  margin-top: 14px;
  color: #2a355f;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--deep);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
}

.button.primary {
  background: var(--deep);
  color: white;
  border-color: var(--deep);
}

.button.ghost {
  background: transparent;
  color: var(--deep);
  border-color: var(--line);
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flag {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.flag img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.facts {
  display: grid;
  gap: 12px;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.facts span {
  color: #48557c;
}

section {
  padding: 28px 0;
}

section h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

section h2 small {
  font-size: 16px;
  color: var(--gold-dark);
  margin-left: 8px;
  font-weight: 500;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(59, 102, 204, 0.16);
  color: #20306a;
  font-size: 12px;
}

.pill-list.anthem-pill {
  margin-top: 16px;
}

.split {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.banner {
  background: var(--deep);
  color: white;
  padding: 28px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.banner::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 220px;
  height: 220px;
  background: rgba(198, 83, 90, 0.35);
  opacity: 0.8;
}

.audio-block {
  margin-top: 12px;
}

.audio-block audio {
  margin-top: 8px;
  width: 100%;
}

.anthem-label {
  margin-top: 12px;
}

.registry-form,
.guestbook-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.registry-form label,
.guestbook-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #2a355f;
}

.registry-form input,
.registry-form select,
.registry-form textarea,
.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
  background: #fbfbff;
  color: var(--ink);
}

.registry-form textarea,
.guestbook-form textarea {
  resize: vertical;
  min-height: 110px;
}

.checkbox-row {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #2a355f;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 12px;
  color: #5a668d;
  margin-top: 2px;
}

.form-status {
  min-height: 18px;
  font-size: 12px;
  color: #1f3a6a;
}

.log-entries {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.log-entry {
  border-left: 3px solid rgba(59, 102, 204, 0.35);
  padding: 8px 12px;
  background: rgba(59, 102, 204, 0.06);
  border-radius: 12px;
}

.log-entry strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #32406e;
  margin-bottom: 6px;
}

.registry-roster {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

.roster-column h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #2a355f;
}

.roster-list {
  display: grid;
  gap: 10px;
}

.roster-entry {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(47, 139, 87, 0.08);
  border: 1px solid rgba(47, 139, 87, 0.18);
  font-size: 13px;
}

.roster-entry strong {
  display: block;
  font-size: 13px;
  color: #22315b;
  margin-bottom: 4px;
}

.roster-entry span {
  font-size: 12px;
  color: #4b587f;
  word-break: break-word;
}

.nav-icon,
.button .icon,
.section-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.facts.compact {
  margin-top: 16px;
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #4b587f;
}

@media (max-width: 720px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
