/* ===========================================================
   소애 — styles
   동아리 톤: 산세리프 기조. 명조는 「한 줄」과 낭독 인용에만.
   =========================================================== */

:root {
  --paper:      #fbf8f3;
  --paper-2:    #f4efe6;
  --paper-3:    #eae1d4;
  --ink:        #1e1a16;
  --ink-soft:   #4d453c;
  --muted:      #877c6f;
  --line:       #e0d6c8;
  --love:       #c2564a;
  --love-deep:  #a3453b;
  --peace:      #5f8459;

  --sans:  "IBM Plex Sans KR", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;
  --serif: "Nanum Myeongjo", "Apple SD Gothic Neo", Batang, serif;

  --wrap: 1060px;
  --r: 6px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.34;
  margin: 0;
  word-break: keep-all;
}

p { margin: 0; word-break: keep-all; }

a { color: var(--love-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--love); outline-offset: 3px; border-radius: 2px; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r); font-size: 14px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

/* ── 초대 배너 ────────────────────────── */

.invite-bar {
  background: var(--peace); color: #fff; text-align: center;
  padding: 11px 20px; font-size: 14.5px; font-weight: 400;
}
.invite-bar b { font-weight: 600; }

/* ── header ───────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }

.mark { width: 38px; height: 23px; fill: none; stroke: var(--love); stroke-width: 1.5; overflow: visible; }
.mark circle { transition: transform .5s var(--ease); transform-origin: center; }
.brand:hover .mark circle:first-child { transform: translateX(-2px); }
.brand:hover .mark circle:last-child  { transform: translateX(2px); }

.brand-name { font-weight: 700; font-size: 21px; letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: var(--ink-soft); font-size: 14.5px; padding: 8px 11px;
  border-radius: var(--r); transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-2); text-decoration: none; }
.site-nav a.is-active { color: var(--love-deep); }

.nav-cta {
  margin-left: 8px;
  background: var(--ink) !important; color: var(--paper) !important;
  padding: 9px 17px !important; font-weight: 500;
}
.nav-cta:hover { background: var(--love-deep) !important; }

.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.bars { display: block; position: relative; height: 12px; }
.bars i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.bars i:first-child { top: 0; }
.bars i:last-child  { bottom: 0; }
[aria-expanded="true"] .bars i:first-child { transform: translateY(5px) rotate(45deg); }
[aria-expanded="true"] .bars i:last-child  { transform: translateY(-5px) rotate(-45deg); }

/* ── hero ─────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: clamp(60px, 11vw, 116px) 0 clamp(52px, 8vw, 96px); }

.hero-glow {
  position: absolute; inset: -30% -10% auto; height: 600px; pointer-events: none;
  background:
    radial-gradient(42% 52% at 30% 42%, rgba(194,86,74,.15), transparent 70%),
    radial-gradient(40% 50% at 68% 52%, rgba(95,132,89,.14), transparent 70%);
  filter: blur(6px);
}

.hero-inner { position: relative; text-align: center; }

.eyebrow { font-size: 13px; letter-spacing: .14em; color: var(--muted); font-weight: 500; }

.hero-title {
  font-size: clamp(38px, 7.6vw, 76px);
  font-weight: 700; line-height: 1.16; letter-spacing: -.042em;
  margin: 20px 0 0;
}

.motto {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(16px, 2.1vw, 20px); color: var(--love-deep);
  margin-top: 24px;
}

.hero-sub { max-width: 580px; margin: 18px auto 0; color: var(--ink-soft); font-size: clamp(15.5px, 1.8vw, 17.5px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin: clamp(48px, 7vw, 76px) auto 0; max-width: 780px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.hero-facts > div { background: var(--paper); padding: 19px 14px; }
.hero-facts dt { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.hero-facts dd { margin: 5px 0 0; font-weight: 600; font-size: 16.5px; }

/* ── buttons ──────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--love-deep); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-block { width: 100%; padding: 16px; }

/* ── sections ─────────────────────────── */

.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }

.section-head { max-width: 660px; margin-bottom: clamp(38px, 5.5vw, 60px); }

.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--love); font-weight: 600; margin-bottom: 13px; }
.section-head h2 { font-size: clamp(27px, 4.1vw, 40px); letter-spacing: -.035em; }
.lede { margin-top: 16px; color: var(--ink-soft); font-size: clamp(15.5px, 1.7vw, 17.5px); }

/* ── about (3줄) ──────────────────────── */

.creed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.creed-item { background: var(--paper); padding: clamp(26px, 3.6vw, 40px) 0; display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: start; }
.creed-num { font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--love); padding-top: 7px; }
.creed-item h3 { font-size: clamp(21px, 2.8vw, 28px); }
.creed-item p { margin-top: 10px; color: var(--ink-soft); max-width: 620px; }

/* ── timeline ─────────────────────────── */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 76px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 28px; padding-bottom: 34px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.t-time { font-weight: 600; font-size: 14.5px; color: var(--muted); text-align: right; padding-top: 4px; position: relative; font-variant-numeric: tabular-nums; }
.t-time::after {
  content: ""; position: absolute; right: -32.5px; top: 11px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper-2); border: 1.5px solid var(--love);
}
.timeline h3 { font-size: 19px; }
.timeline p { margin-top: 7px; color: var(--ink-soft); max-width: 600px; }

/* ── gathering cards ──────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }

.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: #cdbfab; box-shadow: 0 14px 34px -20px rgba(30,26,22,.4); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-date { font-weight: 700; font-size: 26px; letter-spacing: -.035em; }
.card-dow { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 3px; }

.tag { font-size: 11.5px; letter-spacing: .05em; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; }
.tag.open { color: var(--peace); }
.tag.few  { color: var(--love); }
.tag.full { color: var(--muted); }

.card dl { margin: 0; display: grid; grid-template-columns: 52px 1fr; gap: 6px 10px; font-size: 14.5px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; color: var(--ink-soft); }

.bar { height: 4px; background: var(--paper-3); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--peace); border-radius: 999px; transition: width .8s var(--ease); }
.card.is-few .bar > i  { background: var(--love); }
.card.is-full .bar > i { background: var(--muted); }

.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }
.card-foot a { font-weight: 500; }

.empty { color: var(--muted); }
.note { margin-top: 26px; font-size: 14.5px; color: var(--muted); }

/* ── ladder (참여 단계) ───────────────── */

.ladder {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.ladder li { background: var(--paper-2); padding: 26px 22px; position: relative; }
.ladder li::after {
  content: ""; position: absolute; top: 33px; right: -5px; z-index: 2;
  width: 8px; height: 8px; border-top: 1.5px solid var(--love); border-right: 1.5px solid var(--love);
  transform: rotate(45deg); background: var(--paper-2);
}
.ladder li:last-child::after { display: none; }
.l-num { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--love); margin-bottom: 10px; }
.ladder h3 { font-size: 17.5px; }
.ladder p { margin-top: 9px; color: var(--ink-soft); font-size: 14.5px; }

/* ── readings ─────────────────────────── */

.readings { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.readings li { background: var(--paper); padding: 26px 0; display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: start; }
.r-date { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.readings h3 { font-size: 18.5px; }
.r-by { font-size: 14px; color: var(--muted); margin-top: 4px; }
.r-quote {
  font-family: var(--serif); font-size: 16.5px; line-height: 1.85; color: var(--ink-soft);
  margin-top: 14px; padding-left: 18px; border-left: 2px solid var(--line); max-width: 620px;
}

/* ── open (모임 열기) ─────────────────── */

.section-dark { background: var(--ink); color: var(--paper-2); }
.section-dark .section-head h2 { color: var(--paper); }
.section-dark .lede { color: #b8ada0; }
.section-dark .kicker { color: #e08a7d; }

.open-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: #332d27; border: 1px solid #332d27; border-radius: var(--r); overflow: hidden; }
.open-grid > div { background: var(--ink); padding: 28px 26px; }
.open-grid h3 { font-size: 18px; color: var(--paper); }

.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; color: #c2b8ab; font-size: 15px; line-height: 1.6; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 9px; height: 5px; border-left: 1.5px solid #e08a7d; border-bottom: 1.5px solid #e08a7d;
  transform: rotate(-45deg);
}

.open-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.open-cta span { color: #9d9285; font-size: 14.5px; }

/* ── promise ──────────────────────────── */

.promise-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.promise-grid li { background: var(--paper); padding: 26px 24px; }
.promise-grid h3 { font-size: 18px; }
.promise-grid h3::before { content: "— "; color: var(--love); }
.promise-grid p { margin-top: 9px; color: var(--ink-soft); font-size: 15px; }

/* ── people ───────────────────────────── */

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.people li { display: flex; align-items: center; gap: 16px; }
.avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-3); color: var(--love-deep);
  font-size: 20px; font-weight: 600;
  border: 1px solid var(--line);
}
.people h3 { font-size: 17px; }
.people p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* ── faq ──────────────────────────────── */

.faq { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.faq details { background: var(--paper); }
.faq summary { cursor: pointer; list-style: none; padding: 21px 44px 21px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--love); border-bottom: 1.5px solid var(--love);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 8px 22px 0; color: var(--ink-soft); animation: fade .35s var(--ease); }

@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── join form ────────────────────────── */

.section-join { background: var(--paper-2); border-top: 1px solid var(--line); }
.section-join .section-head { margin-inline: auto; text-align: center; }

.join-form { display: grid; gap: 20px; }

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--ink); padding: 0; }
.opt { color: var(--muted); font-weight: 400; }

input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 96px; }
select {
  appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}

input:focus, select:focus, textarea:focus { outline: none; border-color: var(--love); box-shadow: 0 0 0 3px rgba(194,86,74,.14); }
::placeholder { color: #b3a695; }

.radios { display: flex; flex-wrap: wrap; gap: 20px; }
.radios label, .check label { display: flex; align-items: center; gap: 9px; font-weight: 400; color: var(--ink-soft); cursor: pointer; }
.check label { align-items: flex-start; line-height: 1.6; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--love); width: 17px; height: 17px; margin: 0; flex: none; }
.check input[type="checkbox"] { margin-top: 3px; }

.err { font-size: 13px; color: var(--love-deep); }
.field.has-err input, .field.has-err select { border-color: var(--love); }

.form-note { margin-top: 4px; text-align: center; font-size: 14.5px; color: var(--peace); min-height: 22px; }

/* ── invite ───────────────────────────── */

.invite { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line); }
.invite h3 { font-size: 18px; }
.invite > p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.invite-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.invite-row input { flex: 1 1 200px; width: auto; }
.invite-row .btn { flex: none; }
.invite-out { margin-top: 12px; font-size: 14px; color: var(--peace); min-height: 20px; word-break: break-all; }

/* ── footer ───────────────────────────── */

.site-footer { background: var(--ink); color: var(--paper-2); padding: 52px 0 38px; }
.footer-inner { display: grid; gap: 26px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.site-footer .mark { stroke: var(--paper-2); }
.footer-brand p { font-weight: 600; font-size: 16px; line-height: 1.5; }
.site-footer .muted { color: #a49a8d; font-weight: 300; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; }
.footer-links a { color: var(--paper-2); }
.copy { font-size: 13px; color: #8a8076; border-top: 1px solid #332d27; padding-top: 22px; }

/* ── reveal ───────────────────────────── */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
.reveal[data-delay="5"] { transition-delay: .35s; }

/* ── responsive ───────────────────────── */

@media (max-width: 900px) {
  html { scroll-padding-top: 74px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 16px 20px;
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path .4s var(--ease), opacity .25s;
  }
  .site-nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 13px 8px; font-size: 16px; }
  .nav-cta { margin: 10px 0 0 !important; text-align: center; }

  .ladder li::after { display: none; }
}

@media (max-width: 720px) {
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .creed-item, .readings li { grid-template-columns: 1fr; gap: 8px; }
  .creed-num { padding-top: 0; }
  .r-date { padding-top: 0; }
  .timeline::before { left: 54px; }
  .timeline li { grid-template-columns: 54px 1fr; gap: 22px; }
  .t-time::after { right: -26.5px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .footer-links { flex-direction: column; }
  .invite-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-glow, .nav-toggle, .join-form, .invite { display: none; }
  body { background: #fff; }
  .section-dark { background: #fff; color: #000; }
}
