@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:wght@400;500;600&family=Cormorant+SC:wght@400;500;600&family=Noto+Serif+KR:wght@300;400&display=swap");

:root {
  --topbar-height: 68px;
  --ink: #030303;
  --silver: #eeeeee;
  --muted-silver: #9c9c9c;
  --panel: #070707;
  --line: rgba(255, 255, 255, 0.16);
  --display-font: "Cinzel Decorative", "Old English Text MT", "Blackadder ITC", Georgia, "Times New Roman", serif;
  --gothic-font: "Cormorant SC", "Cinzel Decorative", Georgia, "Times New Roman", serif;
  --body-font: "Cormorant Garamond", "Noto Serif KR", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--body-font);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image: url("./assets/sadstar-sand-realesrgan-x4.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: max(100%, 1180px) auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--topbar-height);
  padding: 0 clamp(18px, 3vw, 42px);
  background: #000;
  border-bottom: 1px solid var(--line);
}

.brand {
  position: absolute;
  left: 50vw;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--silver);
  text-decoration: none;
  font-size: clamp(17px, 1.45vw, 19px);
  font-family: "Cormorant SC", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  transform: translateX(-50%);
  transition: opacity 240ms ease;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 21;
}

.nav-toggle-pendant {
  width: auto;
  height: 30px;
  object-fit: contain;
  transform-origin: 50% 45%;
  transition: transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.nav-open .nav-toggle-pendant {
  transform: rotate(45deg);
}

.brand-pendant {
  width: 23px;
  height: 34px;
  object-fit: contain;
  filter: contrast(1.04);
}

.topnav {
  position: static;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 34px);
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: max-width 460ms cubic-bezier(0.2, 0.8, 0.2, 1),
    margin-left 460ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 320ms ease;
}

body.nav-open .topnav {
  max-width: 60vw;
  margin-left: clamp(14px, 2vw, 26px);
  opacity: 1;
  pointer-events: auto;
}

.topnav a {
  color: rgba(238, 238, 238, 0.74);
  font-family: var(--gothic-font);
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-14px);
  transition: color 180ms ease,
    transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 320ms ease;
}

body.nav-open .topnav a {
  opacity: 1;
  transform: translateX(0);
}

body.nav-open .topnav a:nth-child(1) {
  transition-delay: 80ms;
}

body.nav-open .topnav a:nth-child(2) {
  transition-delay: 150ms;
}

body.nav-open .topnav a:nth-child(3) {
  transition-delay: 220ms;
}

body.nav-open .topnav a:nth-child(4) {
  transition-delay: 290ms;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: #fff;
}

.menu-button {
  display: inline-grid;
  position: relative;
  z-index: 30;
  margin-left: auto;
  align-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--silver);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 28px;
  height: 1px;
  margin-left: auto;
  background: currentColor;
  transform-origin: right center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(-36deg) translate(-2px, -2px);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(36deg) translate(-2px, 2px);
}

.drawer {
  position: fixed;
  inset: var(--topbar-height) 0 0 auto;
  z-index: 20;
  width: min(390px, 100%);
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.42);
  border-left: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 220ms ease, transform 220ms ease;
}

body.menu-open .drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.drawer-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(26px, 5vw, 42px);
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(2, 2, 2, 0.95)),
    radial-gradient(circle at 72% 18%, rgba(120, 120, 120, 0.14), transparent 32%);
}

.drawer-kicker,
.drawer-note {
  color: var(--muted-silver);
  font-family: var(--gothic-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.drawer-copy {
  max-width: 300px;
  margin: 18px 0 44px;
  color: #f4f4f4;
  font-family: var(--display-font);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.drawer-links {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  color: rgba(245, 245, 245, 0.88);
  border-bottom: 1px solid var(--line);
  font-family: var(--gothic-font);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
}

.drawer-links a::after {
  content: "+";
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 400;
}

.drawer-note {
  margin: auto 0 0;
}

.stage {
  position: relative;
  min-height: 560vh;
  margin-top: var(--topbar-height);
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.sand-sky,
.sand-sky::before,
.sand-sky::after {
  position: absolute;
  inset: 0;
}

.sand-sky {
  z-index: 0;
  background: transparent;
}

.sand-sky::before {
  content: "";
  z-index: 1;
  background:
    repeating-linear-gradient(
      108deg,
      rgba(255, 255, 255, 0.022) 0 1px,
      transparent 1px 10px
    ),
    repeating-linear-gradient(
      24deg,
      rgba(255, 255, 255, 0.016) 0 1px,
      transparent 1px 16px
    );
  background-size: 380px 380px, 460px 460px;
  mix-blend-mode: screen;
  opacity: 0.18;
}

.sand-sky::after {
  content: "";
  z-index: 2;
  background:
    radial-gradient(circle at 50% 30%, transparent 0, rgba(0, 0, 0, 0.34) 48%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.subpage {
  position: relative;
  min-height: calc(100vh - var(--topbar-height));
  min-height: calc(100svh - var(--topbar-height));
  margin-top: var(--topbar-height);
  padding: clamp(88px, 16vh, 156px) clamp(22px, 6vw, 92px) clamp(64px, 12vh, 120px);
  overflow: hidden;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.09), transparent 16%);
}

.subpage::before,
.subpage::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

.subpage::before {
  inset: var(--topbar-height) 0 0;
  z-index: 0;
  background:
    repeating-linear-gradient(
      108deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 11px
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.78));
  mix-blend-mode: screen;
  opacity: 0.32;
}

.subpage::after {
  inset: auto 0 0;
  z-index: 1;
  height: 42vh;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  margin: 0 auto;
}

.page-kicker {
  margin: 0 0 24px;
  color: rgba(238, 238, 238, 0.62);
  font-family: var(--gothic-font);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.page-title {
  margin: 0;
  color: #f3f3f3;
  font-family: var(--display-font);
  font-size: clamp(48px, 12vw, 132px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.14);
}

.page-frame {
  min-height: clamp(260px, 34vh, 480px);
  margin-top: clamp(48px, 9vh, 92px);
  padding: clamp(28px, 5vw, 56px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.page-lead {
  width: min(760px, 100%);
  margin: 0 auto clamp(30px, 6vw, 58px);
  color: rgba(245, 245, 245, 0.86);
  font-family: var(--body-font);
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  text-align: center;
}

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.fact-strip span {
  min-height: 34px;
  padding: 8px 0;
  color: rgba(238, 238, 238, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--gothic-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 42px);
}

.content-block {
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: clamp(16px, 2vw, 24px);
}

.content-block h2 {
  margin: 0 0 16px;
  color: #f2f2f2;
  font-family: var(--gothic-font);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1;
}

.content-block p,
.form-intro,
.form-note,
.access-panel p {
  margin: 0;
  color: rgba(235, 235, 235, 0.72);
  font-family: var(--body-font);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
}

.contact-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  margin-top: clamp(34px, 6vw, 58px);
}

.contact-actions a,
.text-command,
.access-form button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0;
  color: #f3f3f3;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
  background: transparent;
  font-family: var(--gothic-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.access-form,
.access-panel {
  display: grid;
  gap: 24px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.access-form label {
  display: grid;
  gap: 10px;
  color: rgba(238, 238, 238, 0.72);
  font-family: var(--gothic-font);
  font-size: 15px;
  font-weight: 500;
}

.access-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 0 8px;
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
  font-family: var(--body-font);
  font-size: 20px;
  outline: 0;
}

.access-form input:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.72);
}

.access-status {
  color: #fff !important;
  font-family: var(--gothic-font) !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin: 0 auto clamp(34px, 6vw, 58px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.record-grid article {
  display: grid;
  gap: 14px;
  min-height: 128px;
  padding: clamp(18px, 3vw, 28px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.record-grid span {
  color: rgba(238, 238, 238, 0.48);
  font-family: var(--gothic-font);
  font-size: 13px;
}

.record-grid strong {
  color: #fff;
  font-family: var(--body-font);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.site-footer {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 56px clamp(16px, 4vw, 35px) 48px;
  background: transparent;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--gothic-font);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(30px, 4.5vw, 52px);
  margin-bottom: 28px;
}

.footer-links a,
.language-switch button {
  position: relative;
  padding: 0;
  color: var(--muted-silver);
  border: 0;
  background: transparent;
  font-family: var(--gothic-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.language-switch button:hover,
.language-switch button:focus-visible {
  color: #fff;
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  width: 100%;
}

.footer-copyright {
  margin: 0;
  color: rgba(238, 238, 238, 0.52);
  font-family: var(--gothic-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.language-switch {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(12px, 2.5vw, 22px);
  z-index: 11;
  display: inline-flex;
  align-items: center;
}

.language-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.language-switch .flag {
  display: block;
  width: auto;
  height: 1em;
  flex: none;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.3);
}

.language-switch .lang-code {
  line-height: 1;
}

.login-button {
  margin-left: auto;
  flex: none;
  padding: 0;
  color: rgba(238, 238, 238, 0.86);
  border: 0;
  background: transparent;
  font-family: var(--gothic-font);
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 200ms ease;
}

.login-button:hover,
.login-button:focus-visible {
  color: #fff;
}

.auth-page .page-title {
  font-size: clamp(34px, 7vw, 60px);
}

.page-frame.auth-frame {
  min-height: auto;
  margin-top: clamp(30px, 6vh, 56px);
  padding: 0;
  border: 0;
}

.auth-card {
  display: grid;
  gap: 20px;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(8, 8, 8, 0.6);
  backdrop-filter: blur(8px);
}

.auth-intro {
  margin: 0 0 4px;
  color: rgba(235, 235, 235, 0.72);
  font-family: var(--body-font);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.5;
  text-align: center;
}

.auth-field {
  display: grid;
  gap: 9px;
}

.auth-field span {
  color: rgba(238, 238, 238, 0.7);
  font-family: var(--gothic-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--body-font);
  font-size: 17px;
  outline: 0;
  transition: border-color 180ms ease, background 180ms ease;
}

.auth-field input::placeholder {
  color: rgba(238, 238, 238, 0.32);
}

.auth-field input:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.07);
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 4px;
  padding: 0 20px;
  color: #000;
  border: 1px solid #f3f3f3;
  border-radius: 9px;
  background: #f3f3f3;
  font-family: var(--gothic-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  background: transparent;
  color: #f3f3f3;
}

.auth-alt {
  margin: 2px 0 0;
  color: rgba(235, 235, 235, 0.6);
  font-family: var(--gothic-font);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-align: center;
}

.auth-alt a {
  margin-left: 6px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
  transition: border-color 180ms ease;
}

.auth-alt a:hover,
.auth-alt a:focus-visible {
  border-bottom-color: #fff;
}

.auth-error {
  margin: -6px 0 0;
  color: #ff9c9c;
  font-family: var(--gothic-font);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
}

.auth-card--status {
  text-align: center;
  gap: 16px;
}

.auth-status {
  margin: 0;
  color: #fff;
  font-family: var(--gothic-font);
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: 0.02em;
}

.auth-status-email {
  margin: 0;
  color: rgba(235, 235, 235, 0.72);
  font-family: var(--body-font);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.auth-actions {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.auth-textlink {
  color: rgba(238, 238, 238, 0.66);
  border: 0;
  background: transparent;
  font-family: var(--gothic-font);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease;
}

.auth-textlink:hover,
.auth-textlink:focus-visible {
  color: #fff;
}

@media (max-width: 720px) {
  :root {
    --topbar-height: 58px;
  }

  .topbar {
    padding-inline: 16px;
  }

  .brand {
    gap: 5px;
    font-size: 16px;
  }

  .topnav {
    gap: 13px;
  }

  body.nav-open .topnav {
    max-width: 76vw;
    margin-left: 12px;
  }

  body.nav-open .brand {
    opacity: 0;
    pointer-events: none;
  }

  .topnav a {
    font-size: 12px;
  }

  .login-button {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .brand-pendant {
    width: 18px;
    height: 27px;
  }

  .menu-button {
    width: 34px;
    height: 34px;
  }

  .menu-button span {
    width: 24px;
  }

  .drawer {
    width: 100%;
    border-left: 0;
  }

  .drawer-copy {
    max-width: 270px;
  }

  .stage {
    min-height: 660vh;
  }

  body {
    background-size: 1020px auto;
  }

  .subpage {
    padding: 72px 18px 74px;
  }

  .page-kicker {
    margin-bottom: 18px;
  }

  .page-title {
    font-size: clamp(34px, 11vw, 48px);
    overflow-wrap: anywhere;
  }

  .page-frame {
    min-height: 260px;
    margin-top: 48px;
  }

  .content-grid,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .content-block {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 18px 0 0;
  }

  .fact-strip {
    justify-content: flex-start;
  }

  .site-footer {
    padding: 44px 16px 40px;
  }

  .footer-links {
    gap: 18px 28px;
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
