/* A · 잡지형 — 이 안 전용 외형 (색·크기는 원시안에서 추정) */
:root { --ivory: #f6f0e7; --ivory-2: #efe6d9; --wine: #6b1e24; --wine-d: #521419; --ink: #2e2421; --ink-2: #6f625a; --rule: #d8cdbf;
  --serif: "Noto Serif KR", serif; --sans: "Pretendard Variable", Pretendard, sans-serif; --brush: "Nanum Brush Script", cursive; }
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #1f5fbf; outline-offset: 3px; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 240, 231, .96); border-bottom: 1px solid var(--rule); height: 72px; display: grid; grid-template-columns: 340px 1fr auto; align-items: center; padding: 0 40px; max-width: 1440px; margin: 0 auto; }
.brand { text-decoration: none; display: grid; line-height: 1.2; }
.brand b { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.brand small { font-family: var(--serif); font-size: 10.5px; letter-spacing: .5em; color: var(--ink-2); margin-top: 3px; }
.nav { display: flex; gap: 48px; padding-left: 40px; }
.nav a { text-decoration: none; font-size: 15.5px; font-weight: 600; position: relative; padding: 8px 2px; }
.nav a[aria-current] { color: var(--wine); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--wine); }
.btn-solid { display: inline-flex; align-items: center; gap: 8px; background: var(--wine); color: #fff; border: 0; text-decoration: none; padding: 11px 28px; font-weight: 700; font-size: 15px; border-radius: 2px; }
.btn-solid:hover { background: var(--wine-d); }
.menu-btn, .sheet { display: none; }

.hero { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 340px 1fr 325px; gap: 10px; height: 470px; padding: 0 0 0 40px; }
.hero-text { padding: 34px 26px 0 0; }
.kicker { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-2); }
.kicker span { color: var(--wine); font-weight: 700; margin-right: 8px; }
.title { margin: 0; font-family: var(--serif); font-weight: 900; color: var(--wine); font-size: 104px; line-height: 1; letter-spacing: -.05em; }
.title small { display: block; font-size: 22px; letter-spacing: .08em; color: var(--ink); font-weight: 700; margin-bottom: 12px; }
.lead { font-family: var(--serif); font-size: 17px; line-height: 1.8; color: #4a3f39; margin: 28px 0 22px; }
.hero-text hr { width: 44px; border: 0; border-top: 1.5px solid var(--wine); margin: 0 0 20px; }
.more { text-decoration: none; color: var(--wine); font-weight: 700; font-size: 16px; }
.hero-photo { position: relative; border: 0; padding: 0; margin: 0; background: none; overflow: hidden; height: 470px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; transition: transform .6s; }
.hero-photo:hover img { transform: scale(1.02); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 10, 5, .55), transparent 42%); pointer-events: none; }
.script { position: absolute; left: 30px; bottom: 24px; z-index: 1; font-family: var(--brush); font-size: 40px; color: #fff; transform: rotate(-4deg); text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.side-card { position: relative; border: 0; padding: 0; overflow: hidden; background: #222; text-align: left; }
.side-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.side-card span { position: absolute; left: 22px; bottom: 44px; color: #fff; font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.35; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.side-card small { font-family: var(--sans); font-size: 13px; font-weight: 500; }
.side-card i { position: absolute; left: 22px; bottom: 14px; color: #fff; font-style: normal; font-size: 22px; }

.notice { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto auto; gap: 22px; align-items: center; padding: 14px 40px 14px 80px; border-bottom: 1px solid var(--rule); background: #fbf7f1; }
.tag { background: var(--wine); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 14px; }
.notice p { margin: 0; font-size: 15px; }
.notice time { color: var(--ink-2); font-size: 14px; }
.notice a { text-decoration: none; font-size: 20px; }

.lower { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; padding: 34px 40px; gap: 0; border-bottom: 1px solid var(--rule); }
.record { display: grid; grid-template-columns: 290px 1fr; gap: 30px; padding: 0 40px 0 40px; border-right: 1px solid var(--rule); }
.record-photo { border: 0; padding: 0; background: none; }
.record-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.eyebrow { font-family: var(--serif); font-size: 12.5px; letter-spacing: .12em; color: var(--wine); font-weight: 700; margin: 6px 0 8px; }
.record h2, .sec-h h2 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.3; margin: 0 0 14px; letter-spacing: -.03em; }
.body { color: #574b44; font-size: 15px; margin: 0 0 18px; }
.facts { list-style: none; padding: 16px 0 0; margin: 0 0 24px; border-top: 1px solid var(--rule); display: grid; gap: 8px; color: #574b44; font-size: 15px; }
.facts li { display: flex; gap: 10px; align-items: center; }
.facts svg { width: 18px; height: 18px; color: var(--ink-2); }
.essay { padding: 0 0 0 40px; }
.sec-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sec-h .eyebrow { width: 100%; margin-bottom: 0; }
.sec-h h2 { font-size: 24px; margin-bottom: 18px; }
.sec-h > a { margin-left: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.essay-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.essay-grid button { position: relative; border: 0; padding: 0; overflow: hidden; background: #ddd; }
.essay-grid img { width: 100%; height: 100%; object-fit: cover; }
.essay-grid span { position: absolute; left: 14px; bottom: 10px; color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.e1, .e2 { grid-column: span 3; aspect-ratio: 2 / 1; }
.e3, .e4, .e5 { grid-column: span 2; aspect-ratio: 1.15 / 1; }

.photos, .index { max-width: 1440px; margin: 0 auto; padding: 46px 80px 20px; }
.photos:focus { outline: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--rule); margin-bottom: 26px; }
.tabs button { border: 0; background: none; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs sup { font-size: 11px; margin-left: 3px; }
.tabs [aria-pressed="true"] { color: var(--wine); border-color: var(--wine); }
#count { font-size: 18px; color: var(--ink-2); font-weight: 400; }
.masonry { list-style: none; margin: 0; padding: 0; columns: 4; column-gap: 18px; }
.masonry li { break-inside: avoid; margin-bottom: 18px; }
.masonry button { border: 0; padding: 0; background: none; width: 100%; text-align: left; }
.masonry img { width: 100%; height: auto; }
.masonry span { display: block; font-size: 13.5px; color: var(--ink-2); padding-top: 7px; }
.ix { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ix li { display: grid; grid-template-columns: 220px 1fr 120px auto; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ix time { color: var(--ink-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.ix b { font-family: var(--serif); font-size: 20px; }
.ix span { color: var(--ink-2); font-size: 14.5px; }
.ix button { border: 0; background: none; color: var(--wine); font-weight: 700; font-size: 14.5px; }

.foot { margin-top: 50px; background: var(--ivory-2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 32px 80px; }
.foot a { text-decoration: none; display: grid; gap: 2px; border-left: 1px solid var(--rule); padding-left: 22px; }
.foot b { font-family: var(--serif); color: var(--wine); font-size: 19px; }
.foot span { font-size: 14px; color: var(--ink-2); }

.lb { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lb::backdrop { background: rgba(28, 20, 18, .92); }
.lb[open] { display: grid; place-items: center; }
.lb-fig { margin: 0; text-align: center; }
.lb-img { max-height: calc(100vh - 140px); max-width: 90vw; width: auto; height: auto; margin: 0 auto; }
.lb-cap { font-family: var(--serif); color: #fff; font-size: 22px; font-weight: 700; margin-top: 14px; }
.lb-meta { color: #cdbfb4; font-size: 14px; margin: 4px 0 0; }
.lb-btn { position: fixed; border: 1px solid rgba(255, 255, 255, .4); background: none; color: #fff; width: 52px; height: 52px; font-size: 30px; }
.lb-prev { left: 24px; top: 50%; } .lb-next { right: 24px; top: 50%; } .lb-close { right: 24px; top: 24px; }

@media (max-width: 760px) {
  html { scroll-padding-top: 64px; }
  .top { height: 60px; grid-template-columns: 1fr auto; padding: 0 16px; }
  .brand b { font-size: 16.5px; } .brand small { font-size: 9px; letter-spacing: .3em; }
  .nav, .top-cta { display: none; }
  .menu-btn { display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; background: none; border: 0; }
  .menu-btn span { width: 22px; height: 2px; background: var(--ink); }
  .sheet:not([hidden]) { display: grid; position: absolute; top: 60px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--rule); }
  .sheet a { padding: 14px 20px; text-decoration: none; font-weight: 700; border-top: 1px solid var(--rule); }
  .hero { display: block; height: auto; padding: 0; }
  .hero-text { padding: 22px 20px 18px; }
  .title { font-size: 64px; } .title small { font-size: 16px; margin-bottom: 8px; }
  .lead { font-size: 15px; margin: 14px 0 0; }
  .hero-text hr, .more { display: none; }
  .hero-photo { height: auto; width: 100%; display: block; }
  .hero-photo img { aspect-ratio: 4 / 3; height: auto; }
  .script { font-size: 30px; left: 16px; bottom: 14px; }
  .hero-side { display: none; }
  .notice { padding: 14px 20px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .notice time { display: none; }
  .lower { grid-template-columns: 1fr; padding: 22px 20px; }
  .record { grid-template-columns: 128px 1fr; gap: 16px; padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .record h2 { font-size: 21px; margin-bottom: 8px; } .body { font-size: 14px; margin-bottom: 10px; } .facts { font-size: 14px; padding-top: 10px; margin-bottom: 14px; }
  .record .btn-solid { padding: 10px 16px; font-size: 14px; }
  .essay { padding: 22px 0 0; }
  .essay-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .e1, .e2 { display: none; }
  .e3, .e4, .e5 { grid-column: span 1; aspect-ratio: 1; }
  .essay-grid span { font-size: 12px; left: 8px; bottom: 6px; }
  .photos, .index { padding: 32px 20px 10px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  .tabs button { flex: none; }
  .masonry { columns: 2; column-gap: 10px; }
  .masonry li { margin-bottom: 12px; }
  .ix li { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .ix time { grid-column: 1 / -1; font-size: 13px; } .ix span { display: none; }
  .foot { grid-template-columns: 1fr; padding: 24px 20px; gap: 14px; }
  .lb-btn { width: 44px; height: 44px; } .lb-prev { left: 6px; } .lb-next { right: 6px; } .lb-close { right: 8px; top: 8px; }
}
/* 보정 */
.hero-side { height: 470px; min-height: 0; }
.side-card { height: 100%; min-height: 0; }
.side-card img { position: absolute; inset: 0; }
.title { font-size: 86px; white-space: nowrap; letter-spacing: -.06em; }
.record-photo img { height: auto; }
.record-photo { align-self: start; }
@media (max-width: 760px) { .title { font-size: 62px; } }

/* ===== 중간 폭(761~1240px): 3열 히어로와 하단 구성을 유지하되, 단체 사진을 원본 4:3으로 두고 설명 칸 폭을 확보 ===== */
@media (min-width: 761px) and (max-width: 1240px) {
  .hero { grid-template-columns: 250px minmax(0, 1fr) clamp(180px, 20vw, 240px); height: auto; padding-left: 32px; }
  .hero-text { padding: 26px 18px 18px 0; }
  .title { font-size: 66px; }
  .title small { font-size: 18px; margin-bottom: 10px; }
  .lead { font-size: 15.5px; margin: 20px 0 16px; }
  /* 단체 사진: 칸 비율을 원본(4:3)과 같게 해 양옆 인물이 잘리지 않게 함 */
  .hero-photo { height: auto; align-self: start; }
  .hero-photo img { height: auto; aspect-ratio: 4 / 3; object-position: 50% 50%; }
  .script { font-size: 28px; white-space: nowrap; left: 20px; bottom: 16px; }
  .hero-side { height: auto; align-self: stretch; }
  .side-card span { font-size: 17px; left: 16px; bottom: 38px; }
  .side-card i { left: 16px; bottom: 10px; }
  .notice { padding-left: 32px; padding-right: 32px; }
  /* 하단: 모임 기록과 사진 모음을 위아래로 쌓아 각각 전체 폭 사용 */
  .lower { grid-template-columns: minmax(0, 1fr); padding: 30px 32px; row-gap: 30px; }
  .record { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 0 0 30px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .record-text { max-width: 520px; }
  .record h2 { font-size: 28px; }
  .essay { padding: 0; }
  .photos, .index { padding-left: 32px; padding-right: 32px; }
  .masonry { columns: 3; }
  .ix li { grid-template-columns: 180px 1fr 100px auto; }
  .foot { padding-left: 32px; padding-right: 32px; }
}
