/* 느린물레 모임 — 기본·머리글·버튼·입력·소개/가입 화면 (목록·일정·운영은 community-pages.css) */
@font-face { font-family: 'Pretendard Variable'; src: url('/fonts/PretendardVariable.woff2') format('woff2-variations'); font-weight: 45 920; font-display: swap; }

:root {
  --paper: #F3EDE4; --card: #FBF8F3; --ink: #2A2420; --ink2: #4A413A; --muted: #7C7168; --line: #E2D7C9; --line2: #D3C5B4;
  --clay: #A9582F; --clay-d: #8C4626; --clay-soft: #F1E1D3; --sage: #5F6E58; --sage-soft: #E4E8DC;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --r: 10px; --w: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.65 var(--sans); letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p { margin: 0; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dot::before { content: '·'; margin: 0 6px; color: var(--line2); }

/* 머리글 */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top__in { max-width: var(--w); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--clay-d); min-width: 0; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name { font: 700 19px/1 var(--serif); color: var(--ink); white-space: nowrap; letter-spacing: -0.02em; }
.brand__name small { font: 500 13px/1 var(--sans); color: var(--muted); margin-left: 2px; }
.top__right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mechip { display: flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 600; font-size: 14px; min-width: 0; padding: 3px 10px 3px 3px; border-radius: 99px; border: 1px solid var(--line); }
.mechip:hover { border-color: var(--line2); }
.mechip__nick { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }

.switch { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 4px 2px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.switch__knob { position: relative; width: 30px; height: 18px; border-radius: 99px; background: var(--line2); transition: background .15s; }
.switch__knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch.is-on { color: var(--sage); }
.switch.is-on .switch__knob { background: var(--sage); }
.switch.is-on .switch__knob::after { transform: translateX(12px); }

.nav { border-top: 1px solid var(--line); }
.nav__in { max-width: var(--w); margin: 0 auto; padding: 0 12px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav__in::-webkit-scrollbar { display: none; }
.nav__a { padding: 11px 10px 10px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav__a:hover { color: var(--ink); }
.nav__a.is-on { color: var(--ink); font-weight: 700; border-bottom-color: var(--clay); }

/* 공통 */
.main { max-width: var(--w); margin: 0 auto; padding: 28px 20px 64px; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page__title { font: 700 26px/1.3 var(--serif); letter-spacing: -0.02em; }
.page__sub { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.page--narrow { max-width: 640px; }
.page--narrow > .page__title + .form { margin-top: 20px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sec__title { font: 700 17px/1.4 var(--serif); margin: 32px 0 10px; }
.sec__head .sec__title { margin: 0; }
.empty { color: var(--muted); padding: 20px 0; }
.hint { color: var(--muted); font-size: 14px; margin-top: 10px; }
.link { background: none; border: 0; padding: 0; color: var(--clay-d); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link--muted { color: var(--muted); font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 16px; }
.back:hover { color: var(--ink); }
.count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--clay-soft); color: var(--clay-d); font: 700 13px/22px var(--sans); text-align: center; vertical-align: 2px; }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--clay-d); }
.btn--ink { background: var(--ink); color: var(--card); }
.btn--ink:hover { background: #000; }
.btn--line { background: var(--card); border-color: var(--line2); color: var(--ink2); }
.btn--line:hover { border-color: var(--ink2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .field:focus-visible, .chip:focus-visible, .switch:focus-visible, .like:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 6px; }
.form__row > span { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.field { width: 100%; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; font-size: 15px; line-height: 1.5; }
.field:focus { border-color: var(--clay); outline: none; }
textarea.field { resize: vertical; }
.form__err { color: #B03A2E; font-size: 13.5px; min-height: 0; }
.form__err:empty { display: none; }
.form__foot { display: flex; justify-content: flex-end; gap: 8px; }

/* 아바타 */
.av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font: 700 14px/1 var(--sans); }
.av--xs { width: 20px; height: 20px; font-size: 10.5px; }
.av--sm { width: 30px; height: 30px; font-size: 13px; }
.av--lg { width: 64px; height: 64px; font-size: 26px; font-family: var(--serif); }

/* 밖에서 보이는 소개 */
.hero { padding: 20px 0 36px; border-bottom: 1px solid var(--line); }
.hero__kicker { font-size: 14px; font-weight: 600; color: var(--clay-d); }
.hero__title { margin-top: 12px; font: 700 40px/1.3 var(--serif); letter-spacing: -0.03em; }
.hero__lead { margin-top: 16px; max-width: 34em; color: var(--ink2); font-size: 16.5px; line-height: 1.75; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; }
.facts > div { padding: 0 28px; border-left: 1px solid var(--line2); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 700 18px/1.4 var(--serif); }

.intro__grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; margin-top: 36px; align-items: start; }
.locked { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; min-height: 300px; }
.locked__rows { padding: 12px 20px; filter: blur(4px); opacity: .7; user-select: none; }
.locked__row { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.locked__bar { width: 48px; height: 10px; border-radius: 4px; background: var(--clay-soft); flex: none; }
.locked__veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; background: rgba(251, 248, 243, .55); }
.locked__veil .ic { width: 26px; height: 26px; color: var(--clay-d); margin-bottom: 4px; }
.locked__t { font: 700 19px/1.4 var(--serif); }
.locked__s { color: var(--muted); font-size: 14px; }

.join { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.join__title { font: 700 20px/1.4 var(--serif); }
.join__lead { margin: 6px 0 18px; color: var(--muted); font-size: 14px; }
.join__or { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; color: var(--muted); font-size: 13px; }
.join__or::before, .join__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.join__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.join__quick .btn { flex: 1 1 auto; }

.wait { text-align: center; padding-top: 24px; }
.wait .av { margin-bottom: 16px; }
.wait__try { margin: 28px auto 20px; padding: 20px; border: 1px dashed var(--line2); border-radius: var(--r); background: var(--card); display: grid; gap: 12px; justify-items: center; }
.wait__try p { color: var(--ink2); font-size: 14.5px; }

/* 바닥글·토스트 */
.foot { border-top: 1px solid var(--line); }
.foot__in { max-width: var(--w); margin: 0 auto; padding: 20px 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot__note { color: var(--muted); font-size: 13px; max-width: 46em; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--card); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .intro__grid { grid-template-columns: 1fr; }
  .join { order: -1; }
}
@media (max-width: 560px) {
  .top__in { padding: 12px 16px; }
  .brand__name small { display: none; }
  .main { padding: 22px 16px 44px; }
  .hero { padding: 6px 0 28px; }
  .hero__title { font-size: 29px; }
  .hero__lead { font-size: 15.5px; }
  .facts > div { padding: 0 16px; }
  .facts dd { font-size: 16px; }
  .page__title { font-size: 23px; }
  .join { padding: 20px; }
  .locked { min-height: 260px; }
  .foot__in { flex-direction: column; align-items: flex-start; padding: 20px 16px 28px; }
  .mechip__nick { max-width: 72px; }
}
.hint .link { white-space: nowrap; }
.byline .dot::before { margin-left: 0; }
