@font-face {
  font-family: Pretendard;
  src: url("/assets/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --wine: #29010e;
  --peach: #fdd5a6;
  --line-soft: rgb(253 213 166 / 50%);
  --form-radius: 12px;
  --end-space: clamp(64px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background-color: var(--wine);
  color: var(--peach);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--peach);
  background: var(--wine);
  font: 400 16px/1.5 Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3, p, dl, dd, ol { margin: 0; }
button, input, a { color: inherit; }
button, input { font: inherit; }
button, label[for], .consent label, a { -webkit-tap-highlight-color: transparent; }
button, .consent label, .inline-action { user-select: none; }
button, a, input[type="checkbox"] { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a { text-underline-offset: 0.2em; }

:focus-visible { outline: 2px solid var(--peach); outline-offset: 4px; }
::selection { color: var(--wine); background-color: var(--peach); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: var(--form-radius);
  color: var(--wine);
  background: var(--peach);
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus-visible { transform: none; }
.content {
  width: min(1040px, calc(100% - 80px));
  margin-inline: auto;
  padding-block: 159px var(--end-space);
}

@media (min-width: 1200px) {
  .content { position: relative; left: 10px; }
}

.intro-wordmark {
  display: grid;
  place-items: center;
  margin-bottom: 100px;
}
.intro-wordmark .asset-scale, .intro-wordmark img { display: block; }
.ruled { position: relative; }
.rule, .intro-rule, .intro-rule-short {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  max-width: 100%;
  pointer-events: none;
}
.letter { padding-top: 4px; }
.letter p + p { margin-top: 24px; }
.ornament { display: block; margin: 100px auto; }

.sections { display: grid; gap: 128px; }
.event-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  align-content: start;
}
.event-section h2 { font-size: 24px; font-weight: 600; line-height: 1; }
.event-section h2 span { display: block; }

.schedule {
  display: grid;
  gap: 4px;
  padding: 0;
  list-style: none;
  line-height: 1.3;
}
.schedule li {
  display: grid;
  grid-template-columns: minmax(100px, 150px) 1fr;
  gap: 2px;
  padding-top: 2px;
  border-top: 1px solid currentColor;
}
.schedule time { white-space: nowrap; font-variant-numeric: tabular-nums; }

.venue-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 510 / 340.126;
  border-radius: 20px;
  object-fit: cover;
}
.access-list { display: grid; gap: 32px; margin-top: 20px; }
.access-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  column-gap: 32px;
  padding-top: 4px;
  line-height: 1.3;
}
.access-row dt { font-weight: 600; }
.calendar { margin-top: 16px; }
.venue-logo { display: flex; align-items: center; padding-block: 8px; margin-bottom: 12px; }
.venue-details p + p { margin-top: 20.8px; }
.map-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.amenity-icons { display: flex; align-items: center; margin-top: 6px; }
.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: var(--form-radius);
  background: transparent;
  color: var(--peach);
  font: inherit;
  line-height: 1.3;
  text-decoration: none;
  transition: color 120ms, background-color 120ms;
}
@media (hover: hover) {
  .inline-action:hover { background: var(--peach); color: var(--wine); border-color: var(--peach); }
}

.registration { min-height: calc(100svh - var(--end-space)); }
#registration-fields { display: grid; gap: 20px; padding: 0; margin: 0; border: 0; min-inline-size: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; line-height: 1.3; }
.field input {
  display: block;
  appearance: none;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--form-radius);
  background-color: transparent;
  color: var(--peach);
  line-height: 1.4;
  caret-color: var(--peach);
}
.field input:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 1px;
  border-color: var(--peach);
}
.field input[aria-invalid="true"] { border-color: currentColor; border-style: dashed; }
.instagram-input { position: relative; }
.instagram-input > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.instagram-input input { padding-left: 33px; }
.field-error, .form-message { font-size: 14px; line-height: 1.45; }
.website-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.consent { display: flex; align-items: center; justify-content: space-between; column-gap: 12px; }
.consent label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.consent input {
  display: grid;
  place-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: none;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.consent input:checked { color: var(--wine); background: var(--peach); border-color: var(--peach); }
.consent input:checked::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.required-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 6px;
  color: var(--wine);
  background: var(--peach);
  font-size: 12px;
  vertical-align: 1px;
}
.details-link { flex: none; font-size: 14px; }
.submit-button {
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--peach);
  border-radius: var(--form-radius);
  background: var(--peach);
  color: var(--wine);
  font-weight: 600;
}
.submit-button:active, .submit-button:disabled { opacity: .78; }
.registration-success { padding-top: 12px; border-top: 1px solid currentColor; }
.registration-success h3 { font-weight: 600; font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
.registration-success dl { margin-block: 24px; }
.registration-success dl > div { display: flex; gap: 12px; }
.registration-success dd { font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .content { width: calc(100% - 56px); padding-top: 88px; }
  .intro-wordmark { margin-bottom: 64px; }
  .ornament { margin-block: 64px; }
  .sections { gap: 80px; }
  .event-section { grid-template-columns: 1fr; gap: 24px; }
  .access-row { grid-template-columns: minmax(70px, 20%) minmax(0, 1fr); column-gap: 16px; }
  .schedule li { grid-template-columns: minmax(106px, 30%) 1fr; }
}
@media (max-width: 380px) {
  .content { width: calc(100% - 48px); }
  .intro-wordmark .asset-scale { transform: scale(.82); }
  .consent { column-gap: 8px; }
  .consent label { gap: 6px; }
}
@media (pointer: coarse) {
  .inline-action, .details-link, .consent label { min-height: 44px; }
  .details-link { display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .inline-action { transition: none; }
}
@media (forced-colors: active) {
  .consent input { appearance: auto; }
  .consent input:checked::after { display: none; }
}

html.scroll-nav-ready { scrollbar-width: none; }
html.scroll-nav-ready::-webkit-scrollbar { display: none; }
.page-scroll-nav { position: fixed; inset: 0 0 0 auto; width: 24px; z-index: 40; pointer-events: auto; font: 400 14px/1 Pretendard,sans-serif; color: var(--peach); user-select: none; }
.scroll-section { position: absolute; right: 0; top: 0; width: 24px; pointer-events: auto; }
.scroll-section::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 8px; background: rgba(253,213,166,.2); }
.scroll-label { pointer-events: none; position: absolute; right: 18px; top: 50%; display: flex; align-items: center; gap: 4px; width: max-content; padding: 10px; border-radius: 12px; background: rgba(41,1,14,.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transform: translate3d(8px,-50%,0); transition: opacity .18s ease, transform .4s cubic-bezier(.22,1,.36,1), visibility .18s; }
.scroll-label strong { font-weight: 500; }
.page-scroll-nav:not(.is-touch-dragging) .scroll-section:focus-visible .scroll-label, .page-scroll-nav:not(.is-touch-dragging):has(.page-scroll-thumb:focus-visible) .scroll-section[aria-current="location"] .scroll-label { opacity: 1; visibility: visible; transform: translate3d(0,-50%,0); }
@media (hover: hover) { .page-scroll-nav:not(.is-touch-dragging) .scroll-section.is-hovered .scroll-label { opacity: 1; visibility: visible; transform: translate3d(0,-50%,0); } }
.scroll-section:focus-visible { outline: 1px solid var(--peach); outline-offset: -2px; }
.scroll-section[aria-current="location"] .scroll-label { background: rgba(41,1,14,.8); }
.page-scroll-thumb { position: absolute; top: 0; right: 0; width: 24px; min-height: 32px; pointer-events: auto; touch-action: none; outline-offset: -1px; will-change: transform; }
.page-scroll-thumb::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 8px; background: var(--peach); -webkit-mask-image: var(--rail-mask); mask-image: var(--rail-mask); -webkit-mask-size: 100% var(--rail-height); mask-size: 100% var(--rail-height); -webkit-mask-position: 0 calc(-1 * var(--thumb-y, 0px)); mask-position: 0 calc(-1 * var(--thumb-y, 0px)); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.page-scroll-thumb:focus-visible { outline: 1px solid var(--peach); }
.scroll-drag-label { position: fixed; top: 24px; right: 32px; display: grid; grid-template-columns: max-content; align-items: center; overflow: hidden; padding: 10px; border-radius: 12px; background: rgba(41,1,14,.92); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); line-height: 18px; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(-50%); transition: opacity .15s ease,visibility .15s,width .2s cubic-bezier(.22,1,.36,1); }
.scroll-drag-label > span { grid-area: 1 / 1; width: max-content; }
.is-touch-dragging .scroll-drag-label { opacity: 1; visibility: visible; }
.is-touch-dragging .scroll-section .scroll-label { opacity: 0; visibility: hidden; }
.page-scroll-nav { -webkit-touch-callout: none; }
@media (prefers-reduced-motion: reduce) { .scroll-label,.scroll-drag-label { transition: none; } }
@media print { .page-scroll-nav { display: none; } }

