:root {
  color-scheme: light;
  --page: #f8f5ee;
  --paper: #fffdf8;
  --ink: #24251f;
  --muted: #615c50;
  --line: #e2dbcd;
  --rust: #a43d2b;
  --rust-dark: #842b1f;
  --olive: #3e513b;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.55;
  word-break: keep-all;
  background: var(--page);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.wrap { width: min(1140px, calc(100% - 44px)); margin-inline: auto; }
section[id] { scroll-margin-top: 18px; }
.skip-link { position: fixed; z-index: 3; top: 10px; left: 10px; padding: 10px; background: white; transform: translateY(-170%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 75px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand strong { display: block; font-size: 24px; font-weight: 900; line-height: 1.05; letter-spacing: -.08em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 740; letter-spacing: -.025em; }
.brand-icon { display: block; flex: none; width: 39px; height: 39px; border: 1px solid #e4d4c3; border-radius: 11px; }
.text-link:hover, .small-link:hover { color: var(--rust); }

.club-hero { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 36px; min-height: 440px; margin-top: 23px; }
.hero-text { padding: 26px 0; }
.eyebrow { color: var(--rust); font-size: 13px; font-weight: 850; letter-spacing: -.015em; }
.club-hero h1 { margin: 13px 0 17px; font-size: clamp(40px, 5vw, 72px); line-height: 1.08; letter-spacing: -.09em; font-weight: 910; }
.club-hero h1 em { color: var(--rust); font-style: normal; }
.hero-copy { color: var(--muted); font-size: 16px; line-height: 1.7; letter-spacing: -.025em; }
.hero-image { position: relative; overflow: hidden; height: clamp(360px, 41vw, 470px); border-radius: 22px; background: #dec4a3; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-links { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-top: 21px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 9px; font-size: 14px; font-weight: 820; }
.button { padding: 9px 13px; border: 1px solid transparent; }
.button.primary { background: var(--rust); color: white; }
.button.primary:hover { background: var(--rust-dark); }
.button.secondary { border-color: #d6ccbb; background: var(--paper); color: var(--ink); }
.button.secondary:hover { border-color: var(--rust); }
.text-link { padding: 3px 0; border: 0; background: transparent; font-weight: 780; }

.explore { margin-top: 49px; }
.explore-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.explore-heading h2, .how h2, .my-heading h2 { font-size: clamp(29px, 4.3vw, 48px); line-height: 1.12; letter-spacing: -.075em; font-weight: 900; }
.explore-heading h2, .how h2 { margin-top: 3px; }
.hobby-status { display: inline-flex; align-items: center; gap: 5px; color: #79462c; font-size: 11px; font-weight: 800; }
.hobby-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.hobby-status.green { color: var(--olive); }

.how { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 20px; margin-top: 51px; padding: 25px; border-radius: 18px; background: #eee9dc; }
.how ol { display: grid; gap: 11px; list-style: none; margin: 0; padding: 0; counter-reset: steps; }
.how li { position: relative; padding-left: 37px; counter-increment: steps; }
.how li::before { content: counter(steps); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #b6ab99; border-radius: 50%; color: #734937; font-size: 11px; font-weight: 850; }
.how strong { font-size: 15px; font-weight: 850; }
.how li p { margin-top: 3px; color: var(--muted); font-size: 13px; }

.my-meetups { margin-top: 36px; }
.my-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.small-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; }
#member-content { margin-top: 12px; }
#member-content > .button { margin-top: 9px; }
.muted { color: var(--muted); font-size: 14px; }
.member-grid, .manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.member-card, .manager-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.member-card h3, .manager-card h2 { font-size: 23px; font-weight: 880; letter-spacing: -.06em; }
.member-card p, .manager-card p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.member-card dl { margin: 10px 0 0; font-size: 14px; }
.member-card dl div { display: grid; grid-template-columns: 66px 1fr; gap: 6px; margin: 4px 0; }
.member-card dt { font-weight: 820; }
.member-card dd { margin: 0; overflow-wrap: anywhere; }
.connections { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.connections h4 { font-size: 16px; font-weight: 850; }
.connections > .button { margin-top: 7px; }
.connections ul, .manager-roster ul { list-style: none; padding: 0; margin: 7px 0; }
.connections li, .manager-roster li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); padding: 5px 0; overflow-wrap: anywhere; }
.match-link { display: block; color: var(--olive); font-size: 13px; font-weight: 850; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 10px; border-top: 1px solid var(--line); margin-top: 39px; padding: 10px 0; color: var(--muted); font-size: 13px; }
.footer a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 750; }

dialog { width: min(100% - 24px, 450px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 46px #251a213a; }
dialog::backdrop { background: #29241ca9; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dialog-heading h2 { font-size: 26px; font-weight: 890; line-height: 1.12; letter-spacing: -.065em; }
.close { flex-shrink: 0; width: 44px; height: 44px; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 25px; line-height: 1; }
.dialog-description { margin: 6px 0 13px; color: var(--muted); font-size: 14px; }
.hobby-form, .manager-form { display: grid; gap: 9px; }
.hobby-form label, .manager-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 780; }
.hobby-form input:not([type="checkbox"]), .manager-form input:not([type="checkbox"]) { width: 100%; min-height: 44px; padding: 7px 9px; border: 1px solid #d6ccbb; border-radius: 7px; background: white; color: var(--ink); font-size: 16px; }
.hobby-form label.check, .manager-form label.check { display: flex; align-items: start; gap: 7px; padding-top: 3px; color: var(--muted); font-size: 13px; font-weight: 550; }
.check input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--rust); }
.form-status { color: var(--rust); font-size: 13px; }
.form-status:empty { display: none; }

.manage-hobbies nav { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 0; font-size: 14px; }
.manage-hobbies h1 { margin: 5px 0; font-size: clamp(30px, 5.5vw, 54px); line-height: 1.15; letter-spacing: -.075em; }
.manage-hobbies main > p { margin: 10px 0 14px; color: var(--muted); font-size: 14px; }
.manager-grid { margin: 15px 0 30px; }
.manager-form { margin: 11px 0; }
.manager-roster { margin-top: 8px; }
.manager-roster summary { min-height: 44px; padding: 9px 0; cursor: pointer; font-size: 14px; font-weight: 820; }
.manager-roster input { accent-color: var(--rust); }

@media (max-width: 940px) {
  .club-hero { gap: 22px; min-height: 0; }
  .hero-image { height: clamp(290px, 51vw, 410px); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  .topbar { min-height: 61px; }
  .club-hero { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 14px; }
  .hero-text { padding: 13px 0 18px; }
  .club-hero h1 { font-size: clamp(35px, 10.1vw, 58px); margin: 9px 0 10px; }
  .hero-copy { font-size: 14px; line-height: 1.6; }
  .hero-links { margin-top: 13px; gap: 12px; }
  .hero-image { height: clamp(165px, 52vw, 305px); border-radius: 15px; }
  .explore { margin-top: 25px; }
  .explore-heading { gap: 10px; margin-bottom: 11px; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; margin-top: 26px; }
  .how h2 br { display: none; }
  .my-meetups { margin-top: 25px; }
  .member-grid, .manager-grid { grid-template-columns: minmax(0, 1fr); }
  .footer { margin-top: 24px; }
}
.run-promo { margin: 25px 0; display: grid; grid-template-columns: minmax(90px, 190px) minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.run-promo img { width: 100%; height: 100%; min-height: 106px; max-height: 145px; object-fit: cover; border-radius: 9px; }
.run-promo h2 { font-size: clamp(18px, 4vw, 27px); letter-spacing: -.06em; line-height: 1.2; }
.run-promo p:not(.eyebrow) { margin-top: 5px; font-size: 13px; color: var(--muted); }
@media(max-width:620px) {
  .run-promo { grid-template-columns: 86px minmax(0,1fr); gap: 10px; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 22px); }
}

.interest-alert { margin: 13px 0 19px; }
.interest-alert h3 { margin-bottom: 8px; font-size: 1rem; }
