@font-face {
  font-family: "Jua";
  src: url("/assets/fonts/Jua-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "NanumSquareRound";
  src: url("/assets/fonts/NanumSquareRoundR.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "NanumSquareRound";
  src: url("/assets/fonts/NanumSquareRoundB.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #282332;
  --muted: #5b5365;
  --pink: #a3174d;
  --pink-hover: #7e123b;
  --paper: #fffcfe;
  --sky: #e3f1fd;
  --blush: #faeaf2;
  --stroke: #e9dfe7;
  --action: var(--pink);
  --bg: var(--paper);
  --wrap: min(1280px, calc(100% - 104px));
  --header: 68px;
  --radius: 32px;
  --inset: clamp(26px, 5.4vw, 78px);
  --section-space: clamp(46px, 6.5vw, 94px);
  font-family: "NanumSquareRound", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --display: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; word-break: keep-all; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #146492; outline-offset: 4px; }
.skip { position: absolute; z-index: 3; top: 10px; left: 12px; padding: 12px 18px; background: white; border-radius: 12px; }
.skip:not(:focus) { clip-path: inset(50%); }
.wrap { width: var(--wrap); margin-inline: auto; }
#main, #members, main > section { scroll-margin-top: calc(var(--header) + 20px); }

.topbar { position: sticky; z-index: 3; top: 0; background: var(--paper); border-bottom: 1px solid var(--stroke); }
@supports (backdrop-filter: blur(1px)) {
  .topbar { background: rgb(255 252 254 / .86); backdrop-filter: saturate(125%) blur(18px); }
}
.topbar-inner { min-height: calc(var(--header) - 1px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-inline: 12px; }
.topbar-inner > .button { justify-self: end; min-height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 5px; justify-self: start; min-height: 44px; color: var(--pink); font: 400 1.85rem/1 var(--display); }
.brand-heart { font: 700 1.12em/1 system-ui, sans-serif; }
.menu-toggle { display: none; }
nav { display: flex; align-items: center; gap: clamp(14px, 3.5vw, 56px); }
nav a { display: flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: .93rem; font-weight: 700; text-underline-offset: 5px; }
nav a:hover, .brand:hover { color: var(--pink-hover); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 700; white-space: nowrap; transition: background-color .18s, transform .18s; }
.button:hover { background: var(--pink-hover); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.secondary { background: #ffffff9c; border-color: #bfb0bf; color: var(--ink); }
.button.secondary:hover { background: #fff; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; grid-template-columns: 43% 57%; min-height: clamp(470px, min(46vw, 75svh), 640px); margin-top: 26px; overflow: hidden; border: 1px solid #e8e5f0; border-radius: var(--radius); background: linear-gradient(112deg, #fff7fb, #f4f1fb 42%, var(--sky) 77%); }
.hero-copy { position: relative; z-index: 1; padding: 48px 22px 50px var(--inset); }
.hero-art { position: absolute; inset: 50% 0 auto auto; width: 61%; height: auto; translate: 0 -50%; mask-image: radial-gradient(ellipse 76% 63% at 61% 50%, #000 59%, transparent 96%), linear-gradient(to bottom, transparent, #000 11% 89%, transparent); mask-composite: intersect; }
.hero:focus-within[data-enter] :is(h1, p, a) { opacity: 1; }
.hero-world { color: var(--muted); font-size: clamp(.87rem, 1.2vw, 1.02rem); font-weight: 700; }
h1 { margin-top: 12px; font: 400 clamp(5.25rem, 10.4vw, 9rem)/.98 var(--display); letter-spacing: -.048em; }
.hero-line { max-width: 12em; margin-top: 15px; font-size: clamp(1.48rem, 2.55vw, 2.3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.22; text-wrap: balance; }
.hero-detail { margin-top: 13px; color: var(--muted); font-size: clamp(.96rem, 1.42vw, 1.13rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }

.about { padding: var(--section-space) var(--inset); }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr); align-items: center; gap: clamp(26px, 4vw, 56px); }
h2 { font: 400 clamp(2.05rem, 3.85vw, 3.6rem)/1.1 var(--display); letter-spacing: -.031em; }
.section-heading p { max-width: 37ch; margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 1.42vw, 1.17rem); }
.guild-photo { border: 1px solid var(--stroke); border-radius: calc(var(--radius) - 6px); overflow: hidden; background: #eddecd; }
.activity-list, .notices { padding: 0; margin: 0; list-style: none; }
.activity-list { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 4vw, 52px); border-top: 1px solid var(--stroke); padding-top: 23px; }
h3 { font-size: clamp(1.05rem, 1.7vw, 1.38rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.28; }
.activity-list p, .notices p { margin-top: 5px; color: var(--muted); }

.news { display: grid; grid-template-columns: minmax(155px, .72fr) minmax(0, 2.25fr); align-items: center; gap: clamp(18px, 3.4vw, 52px); padding: clamp(25px, 4vw, 53px) var(--inset); border: 1px solid var(--stroke); border-radius: var(--radius); background: #f8f5f9; }
.news h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.notices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.notices li { min-width: 0; padding-inline: clamp(16px, 2.1vw, 28px); border-inline-start: 1px solid var(--stroke); }
.notice-cadence { display: block; margin-bottom: 5px; color: var(--pink); font-size: .85rem; font-weight: 700; }
.notices p { font-size: .94rem; }

.events { padding: var(--section-space) var(--inset); }
.event-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--pink); font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px; }
.event-link:hover { color: var(--pink-hover); }
.event-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3.2vw, 46px); margin-top: clamp(22px, 3vw, 38px); }
.event-story img { aspect-ratio: 1.22; object-fit: cover; object-position: center 72%; border-radius: calc(var(--radius) - 8px); }
.event-copy { padding-top: 20px; }
.event-date { margin-bottom: 5px; font-size: .85rem; font-weight: 700; color: var(--pink); }
.event-story h3 { font: 400 clamp(1.6rem, 3vw, 2.45rem)/1.14 var(--display); }
.event-story h3 + p, .event-notes h3 + p { margin-top: 8px; color: var(--muted); }
.event-notes { margin-top: clamp(24px, 4vw, 50px); padding-top: 23px; border-top: 1px solid var(--stroke); }
.event-links { display: flex; flex-wrap: wrap; column-gap: 16px; margin-top: 3px; }

.join { padding: clamp(32px, 4.6vw, 68px) var(--inset); border: 1px solid #f0dce9; border-radius: var(--radius); background: var(--blush); }
.join-grid { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); align-items: center; gap: clamp(25px, 4vw, 62px); }
.join-copy p { margin-block: 17px 24px; max-width: 26em; color: var(--muted); }
.requirements { padding: clamp(20px, 2.5vw, 34px); background: var(--paper); border: 1px solid var(--stroke); border-radius: calc(var(--radius) - 8px); }
.requirements ul { margin-block: 10px 15px; padding-inline-start: 1.25em; }
.requirements li { margin-block: 5px; }
.requirements li::marker { color: var(--pink); }
.requirements details { border-top: 1px solid var(--stroke); }
.requirements summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 700; }
.requirements summary:hover { color: var(--pink-hover); }
.requirements details p { padding-bottom: 12px; color: var(--muted); }

.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 4px 20px; min-height: 88px; padding: 12px 14px; }
.footer p { color: var(--muted); font-size: .875rem; }

@media (max-width: 1100px) {
  :root { --wrap: calc(100% - clamp(42px, 6vw, 72px)); --inset: clamp(25px, 4vw, 43px); }
  .hero { grid-template-columns: 49% 51%; }
  .hero-art { width: 55%; }
  .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); }
}
@media (max-width: 900px) {
  .topbar-inner { padding-inline: 4px; }
  nav { gap: clamp(12px, 2.7vw, 24px); }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-top: 16px; background: linear-gradient(to bottom, #fff7fb, #f4f1fb 35%, var(--sky) 68%); }
  .hero-copy { padding: 31px var(--inset) 10px; }
  .hero-art { position: static; width: 100%; translate: none; mask-image: linear-gradient(to bottom, transparent, #000 20%); }
  .hero-line { max-width: none; font-size: clamp(1.6rem, 4.1vw, 2.2rem); }
  .news { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .news .section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
  .notices li:first-child { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 640px) {
  :root { --wrap: calc(100% - 32px); --header: 62px; --radius: 22px; --inset: clamp(17px, 5.4vw, 27px); }
  .topbar:not(.menu-ready) { position: static; }
  .topbar-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 8px; padding-inline: 0; }
  .topbar-inner .brand { font-size: 1.65rem; }
  .topbar-inner > .button { grid-column: 3; grid-row: 1; padding-inline: 13px; font-size: .88rem; }
  .topbar nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 0 12px; font-size: .9rem; }
  .menu-ready .menu-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 7px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
  .menu-toggle span { width: 14px; height: 9px; border-block: 2px solid currentColor; }
  .menu-ready .menu-toggle[aria-expanded="false"] + nav { display: none; }
  .menu-ready nav { position: absolute; inset: 100% 0 auto; display: grid; max-height: calc(100dvh - var(--header)); overflow-y: auto; padding: 8px max(16px, calc((100% - 560px) / 2)) 12px; border-block: 1px solid var(--stroke); background: var(--paper); box-shadow: 0 12px 18px #18213c12; }
  .menu-ready nav a { padding-inline: 10px; }
  .menu-ready nav a + a { border-top: 1px solid var(--stroke); }
  .hero { margin-top: 12px; }
  .hero-copy { padding: 22px var(--inset) 6px; }
  h1 { font-size: clamp(4.35rem, 19vw, 6rem); }
  .hero-line { margin-top: 9px; font-size: clamp(1.32rem, 5.8vw, 1.9rem); text-wrap: balance; }
  .hero-detail { margin-top: 12px; }
  .actions { gap: 8px; margin-top: 17px; }
  .actions .button { flex: 1 0 auto; min-height: 46px; padding-inline: 14px; }
  .about { padding-inline: 5px; }
  .about-grid, .join-grid { grid-template-columns: 1fr; gap: 19px; }
  .about .section-heading { display: contents; }
  .about .section-heading p { grid-row: 3; max-width: 38ch; margin-top: 0; }
  .guild-photo { grid-row: 2; }
  .activity-list { grid-template-columns: 1fr; gap: 15px; padding-top: 19px; }
  .notices { grid-template-columns: 1fr; gap: 10px; }
  .notices li { padding: 11px 0 5px; border-inline-start: 0; border-top: 1px solid var(--stroke); }
  .events { padding-inline: 5px; }
  .event-stories { grid-template-columns: 1fr; row-gap: 34px; }
  .footer-inner { min-height: 78px; padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
