@font-face {
  font-family: "Raise Serif";
  src: url("./assets/raise-title.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raise Sans";
  src: url("./assets/raise-ui.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ivory: #f8efd9;
  --muted: #b9b3a6;
  --gold: #e9c98d;
  --scene-black: #0d0c0a;
  --serif: "Raise Serif", "Noto Serif KR", Batang, Georgia, serif;
  --sans: "Raise Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 280px; min-height: 100%; background: var(--scene-black); }
body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  isolation: isolate;
}
::selection { color: #17110a; background: #eac98d; }

.gate-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; min-height: 100%; }
.gate-scene picture { display: block; width: 100%; height: 100%; }
.gate-scene__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.gate-scene__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 38% 47% at 50% 47%, #00000012, transparent 80%);
  pointer-events: none;
}

.masthead {
  position: absolute;
  z-index: 1;
  top: max(32px, env(safe-area-inset-top));
  left: 2.65%;
  right: 20.5%;
  display: flex;
  align-items: center;
  gap: 26px;
}
.wordmark {
  flex: none;
  color: #edcb91;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 1.27vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .32em;
  white-space: nowrap;
  text-shadow: 0 2px 12px #000;
}
.masthead__rule { flex: 1; height: 1px; background: linear-gradient(90deg, #e5cb98, #d5bc82aa); }

.entrance {
  min-height: 640px;
  min-height: max(640px, 100svh);
  display: grid;
  place-items: center;
  padding: 104px 24px 94px;
}
.invitation {
  width: min(100%, 640px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: invitation-arrives 900ms cubic-bezier(.2,.7,.2,1) both;
}
.monogram {
  position: relative;
  width: clamp(60px, 4.65vw, 82px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 24%;
  border: 1px solid #f4d99b8c;
  background: linear-gradient(147deg, #f8e8b2 0%, #e0c78c 24%, #b99a56 61%, #8e682c 100%);
  box-shadow: inset 0 1px 2px #fff5cfb3, inset 0 -1px 2px #64431894, 0 8px 30px #0004;
}
.monogram span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 2.5vw, 45px);
  font-weight: 400;
  line-height: 1;
  color: #171107;
  text-shadow: 0 1px #f7e4b24d;
  transform: translateY(-1px);
}
h1 {
  margin: 23px 0 0;
  font-family: var(--serif);
  font-size: clamp(44px, 4.45vw, 78px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.045em;
  white-space: nowrap;
  text-shadow: 0 3px 24px #0009;
}
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  width: min(100%, 340px);
  margin: 16px 0 0;
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .025em;
  color: #e9d8b2;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 54px; height: 1px; background: #ddc38c; flex-shrink: 1; }
.eyebrow span { flex-shrink: 0; }
.guidance {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.22vw, 21px);
  line-height: 1.7;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.enter-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  width: min(100%, 400px);
  min-height: 80px;
  margin: 34px 0 0;
  padding: 17px 32px;
  border: 1px solid #ffe6adb3;
  border-radius: 999px;
  background: linear-gradient(112deg, #d6aa62 0%, #f6d99e 42%, #e6bf7d 72%, #c49a58 100%);
  color: #171109;
  box-shadow: inset 0 1px 2px #fff8d9, inset 0 -2px 3px #a37238a3, 0 0 0 1px #f9d18c33, 0 9px 30px #c98d2e24;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}
.enter-button::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  opacity: .18;
  background: repeating-linear-gradient(0deg, transparent 0 2px, #fff6 2px 3px);
}
.enter-button::after {
  content: "";
  position: absolute;
  inset: -30% -70%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, #fff8 49%, transparent 60%);
  transform: translateX(-65%);
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.enter-button__label, .enter-button__arrow { position: relative; z-index: 1; }
.enter-button__arrow { width: 29px; height: 23px; transition: transform 220ms ease; }
.enter-button:focus-visible { outline: 2px solid #fff4d4; outline-offset: 7px; }
.enter-button:active { transform: translateY(1px) scale(.985); }
@media (hover: hover) {
  .enter-button:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: inset 0 1px 2px #fff8d9, inset 0 -2px 3px #a37238a3, 0 0 0 1px #f9d18c66, 0 12px 42px #c98d2e40; }
  .enter-button:hover::after { transform: translateX(65%); }
  .enter-button:hover .enter-button__arrow { transform: translateX(4px); }
}
.domain {
  margin: 27px 0 0;
  color: #bda276;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .015em;
}

@keyframes invitation-arrives {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) and (min-aspect-ratio: 4/5) {
  .masthead { top: 23px; right: 6%; }
  .entrance { min-height: max(560px, 100svh); padding-block: 90px 70px; }
  h1 { font-size: 48px; margin-top: 18px; }
  .monogram { width: 58px; }
  .eyebrow { margin-top: 12px; }
  .guidance { margin-top: 12px; }
  .enter-button { width: 310px; min-height: 62px; margin-top: 26px; font-size: 22px; }
  .domain { margin-top: 20px; font-size: 14px; }
}

@media (max-aspect-ratio: 4/5) {
  .gate-scene__image { object-fit: fill; }
  .masthead { top: max(28px, calc(env(safe-area-inset-top) + 18px)); left: 20px; right: 20px; justify-content: center; }
  .wordmark { font-size: 12px; letter-spacing: .3em; }
  .masthead__rule { display: none; }
  .entrance { min-height: max(660px, 100svh); padding: 130px 14% 160px; }
  .invitation { max-width: 470px; }
  .monogram { width: 66px; }
  .monogram span { font-size: 36px; }
  h1 { margin-top: 26px; font-size: clamp(34px, 9.3vw, 62px); letter-spacing: -.05em; }
  .eyebrow { gap: 12px; margin-top: 20px; font-size: 15px; letter-spacing: 0; }
  .eyebrow::before, .eyebrow::after { width: 28px; }
  .guidance { margin-top: 18px; font-size: 13px; line-height: 1.8; white-space: nowrap; }
  .enter-button { min-height: 61px; margin-top: 30px; padding: 16px 20px; gap: 15px; font-size: 21px; }
  .enter-button__arrow { width: 24px; height: 22px; }
  .domain { margin-top: 24px; font-size: 13px; letter-spacing: .025em; }
}

@media (max-width: 360px) and (max-aspect-ratio: 4/5) {
  .entrance { padding-inline: 13%; }
  .monogram { width: 56px; }
  .monogram span { font-size: 32px; }
  .eyebrow { font-size: 13px; gap: 8px; }
  .guidance { font-size: 11px; }
  .enter-button { min-height: 56px; font-size: 19px; }
}

@media (max-height: 740px) and (max-aspect-ratio: 4/5) {
  .entrance { min-height: max(500px, 100svh); padding: 80px 14% 140px; }
  .monogram { width: 48px; }
  .monogram span { font-size: 28px; }
  h1 { margin-top: 16px; }
  .eyebrow { margin-top: 12px; font-size: 13px; }
  .guidance { margin-top: 12px; font-size: 11px; }
  .enter-button { min-height: 54px; margin-top: 20px; padding-block: 13px; font-size: 19px; }
  .domain { margin-top: 18px; font-size: 12px; }
}

@media (max-height: 650px) and (min-aspect-ratio: 4/5) {
  .entrance { min-height: max(480px, 100svh); padding: 80px 24px 45px; }
  .masthead { top: 19px; }
  .monogram { width: 48px; }
  .monogram span { font-size: 28px; }
  h1 { font-size: 40px; margin-top: 15px; }
  .eyebrow { font-size: 14px; margin-top: 9px; }
  .guidance { font-size: 13px; margin-top: 8px; }
  .enter-button { width: 290px; min-height: 54px; margin-top: 20px; padding-block: 12px; font-size: 20px; }
  .domain { margin-top: 17px; font-size: 12px; }
}

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