/* ==========================================================
   BNI Suwon Hana Chapter — one-page invitation
   ========================================================== */

:root {
  --paper: #e9e4d9;
  --sheet: #f8f5ee;
  --sheet-2: #f2eee4;
  --ink: #14181c;
  --red: #cc0a2f;
  --red-deep: #a3061f;
  --muted: #6d6559;
  --gold: #a2814f;
  --line: #ddd6c7;
  --line-strong: #c9c1af;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 28px 20px 40px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, li, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 700; }

::selection { background: var(--red); color: #fff; }

.sheet {
  width: min(1060px, 100%);
  margin: 0 auto;
  background: var(--sheet);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 70px -45px rgba(20, 24, 28, 0.55);
}

/* ---------- Banner ---------- */

.banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 40px 22px;
  background: linear-gradient(180deg, #d40b2f 0%, #c0092a 100%);
  color: #fff;
}

.banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 28px;
  background: var(--sheet);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.banner-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.banner-brand b {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.banner-brand b sup {
  font-size: 12px;
  top: -1.4em;
}

.banner-brand > span {
  display: flex;
  flex-direction: column;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.banner-brand > span small {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  opacity: 0.85;
}

.banner-word {
  position: relative;
  z-index: 1;
  padding-bottom: 6px;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---------- Invitation card ---------- */

.card {
  position: relative;
  padding: 44px 60px 50px;
  text-align: center;
}

.one-mark {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 22px;
}

.one-team {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  transform: rotate(-16deg);
}

.one-team i {
  font-style: normal;
  color: var(--red);
}

.one-word {
  font-size: 58px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.one-word b { color: var(--red); }

.card h1 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.035em;
}

.card h1 em {
  font-style: normal;
  color: var(--red);
}

.lead {
  max-width: 620px;
  margin: 18px auto 0;
  color: #4d4740;
  font-size: 15px;
  line-height: 1.8;
}

/* CTA */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  padding: 20px 46px;
  min-width: 340px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 30px -18px rgba(204, 10, 47, 0.85);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.cta svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.25s ease;
}

.cta:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -18px rgba(204, 10, 47, 0.9);
}

.cta:hover svg { transform: translateX(4px); }

.cta:active { transform: translateY(0); }

/* Facts */

.facts {
  margin: 40px auto 0;
  max-width: 760px;
  border-top: 2px solid var(--ink);
}

.facts li {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  grid-template-areas: "tag body action";
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.facts li > div { grid-area: body; }
.facts li > .tag { grid-area: tag; }
.facts li > .mini-btn { grid-area: action; }

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.facts strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.mini-btn:hover {
  background: var(--sheet-2);
  border-color: var(--ink);
}

.mini-btn.is-done {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.mini-btn.is-error {
  border-color: var(--red);
  color: var(--red);
}

/* ---------- 길찾기 팝업 ---------- */

.dir-modal {
  width: min(420px, calc(100vw - 32px));
  padding: 26px 26px 22px;
  border: 0;
  border-radius: 18px;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(20, 24, 28, 0.65);
}

.dir-modal::backdrop {
  background: rgba(20, 24, 28, 0.55);
}

.dir-modal h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dir-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dir-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dir-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
}

.dir-link:hover {
  border-color: var(--ink);
  background: #fff;
}

.dir-link .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
}

.dir-link.is-naver .dot { background: #03c75a; }
.dir-link.is-kakao .dot {
  background: #fee500;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.dir-link.is-tmap .dot { background: #1e4fa3; }

.dir-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
}

.dir-close {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.facts p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.cta-wide {
  width: 100%;
  max-width: 760px;
}

/* ---------- Extras: greeting / about / agenda ---------- */

.extras {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: left;
}

.extra + .extra {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.extra-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.extra-title::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 2px;
  background: var(--red);
}

/* greeting */

.letter {
  margin-top: 16px;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}

.letter p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #484239;
}

.letter-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.letter-head.no-photo { gap: 0; }

.letter-photo {
  flex: 0 0 auto;
  width: 132px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper-3);
}

.letter-lead {
  margin-top: 0 !important;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sign-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(204, 10, 47, 0.45);
  border-radius: 50%;
  color: var(--red);
  font-weight: 700;
  font-size: 16px;
}

.signature strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.signature span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

/* about BNI */

.extra-text {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #4a443c;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.mini-stats li {
  padding: 16px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}

.mini-stats strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mini-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

/* this week guests */

.extra-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.guests {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.guest-col {
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.guest-col h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.guest-col h3 span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-size: 11.5px;
}

.guest-list {
  margin-top: 6px;
}

.guest-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.guest-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guest-card {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
}

.guest-card.is-portrait { object-position: left center; }
.guest-card.is-landscape { object-position: center top; }

.guest-text strong { display: block; }

.guest-list li:last-child { border-bottom: 0; }

.guest-item strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.guest-item span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
}

.guest-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 10px 0;
}

.guest-reset {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
}

/* agenda */

.agenda {
  margin-top: 2px;
}

/* 당일 진행 순서 — 위아래 간격 타이트하게 */
.extras .extra-agenda {
  margin-top: 24px;
  padding-top: 18px;
}

.extras .extra-agenda + .extra {
  margin-top: 24px;
  padding-top: 18px;
}

.agenda li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.agenda li:last-child {
  border-bottom: 1px solid var(--line);
}

.agenda-time {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--red);
}

.agenda strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.agenda p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sheet-cta {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

/* ---------- Fields ---------- */

.fields {
  padding: 34px 60px 40px;
  background: var(--sheet-2);
  border-top: 1px solid var(--line);
}

.fields-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.fields-head h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fields-head p {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.cell-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cell-label {
  padding-top: 4px;
}

.cell-label b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cell-label b span {
  color: var(--red);
  margin-right: 5px;
}

.cell-label small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.people {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.person {
  width: 100px;
  text-align: center;
}

.person img {
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 410;
  object-fit: cover;
  object-position: 50% 18%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.person strong {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.person span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.person em {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

/* ---------- Footer ---------- */

.sheet-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 60px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.sheet-foot a {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
}

/* ---------- Wide screens: readable measure / two columns ---------- */

@media (min-width: 900px) {
  .extras {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 44px 48px;
    align-items: start;
  }

  .extras .extra {
    margin: 0;
    padding: 0;
    border-top: 0;
  }

  .extras .extra:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .extras .extra:nth-of-type(2) { grid-column: 2; grid-row: 1; }

  .extras .extra.extra-agenda {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 10px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
  }

  .extras .extra:nth-of-type(4) {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 10px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
  }

  .letter { padding: 30px 32px; }
  .letter p {
    font-size: 15.5px;
    line-height: 1.95;
    max-width: 58ch;
  }
  .letter-lead { font-size: 17px; }

  .extra-text {
    font-size: 15.5px;
    line-height: 1.95;
    max-width: 58ch;
  }

  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .mini-stats strong { font-size: 24px; }

  .agenda li { padding: 14px 0; }
  .agenda li > div p { max-width: 70ch; }
}

@media (max-width: 820px) {
  body { padding: 16px 12px 28px; }

  .sheet { border-radius: 20px; }

  .banner { padding: 20px 22px 18px; }
  .banner-brand b { font-size: 32px; }
  .banner-brand > span { font-size: 19px; }
  .banner-brand > span small { font-size: 9px; letter-spacing: 0.2em; }
  .banner-word { font-size: 22px; }

  .card { padding: 34px 22px 38px; }
  .one-word { font-size: 46px; }
  .one-team { font-size: 11px; }

  .cta {
    width: 100%;
    min-width: 0;
    padding: 18px 20px;
    font-size: 17px;
  }

  .facts li {
    grid-template-columns: 78px 1fr;
    gap: 14px;
    padding: 15px 0;
  }

  .tag { font-size: 12.5px; padding: 7px 0; }
  .facts strong { font-size: 15.5px; }
  .facts p { font-size: 12px; }

  .fields { padding: 26px 22px 30px; }

  .fields-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cell-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
  }

  .cell-label b { font-size: 14px; }

  .people { gap: 10px; }

  .person { width: calc(25% - 8px); }
  .person strong { font-size: 12px; }
  .person span { font-size: 10px; }
  .person em { font-size: 9.5px; }

  .sheet-foot { padding: 18px 22px; font-size: 11.5px; }
}

@media (max-width: 420px) {
  .person { width: calc(33.333% - 7px); }
  .person strong { font-size: 11.5px; }
}
