/* 마리서사 RE:OPEN — 공통 스타일 (디자인 가이드 기준) */
:root {
  --ink: #1A1614;
  --ink-2: #211C19;
  --paper: #EFE6D2;
  --paper-2: #F8F4EA;
  --red: #8E2B23;
  --gold: #D9A85C;
  --gold-hover: #F2C784;
  --muted: #5A544B;
  --line: rgba(239, 230, 210, .14);
  --serif: 'Noto Serif KR', serif;
  --sans: 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
.serif { font-family: var(--serif); }
.wrap { max-width: 1360px; margin: 0 auto; }
.wrap-narrow { max-width: 1180px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: .3em; color: var(--gold); line-height: 1.6; }

/* ---------- GNB ---------- */
.gnb {
  position: sticky; top: 0; z-index: 20; height: 84px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(26, 22, 20, .92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.logo:hover { color: var(--paper); }
.logo span { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.tabs { display: flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid rgba(239, 230, 210, .2); border-radius: 999px; }
.tabs a { height: 36px; padding: 0 18px; border-radius: 999px; color: var(--paper); font-size: 14px; font-weight: 500; display: flex; align-items: center; white-space: nowrap; }
.tabs a:hover { background: rgba(239, 230, 210, .08); }
.tabs a[aria-current="page"] { background: var(--red); }
.lang { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid rgba(239, 230, 210, .2); border-radius: 999px; font-size: 12px; letter-spacing: .06em; }
.lang span { height: 28px; padding: 0 12px; border-radius: 999px; display: flex; align-items: center; background: var(--gold); color: var(--ink); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 582px; padding: 96px 40px 80px; display: flex; align-items: center; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,22,20,.94) 0%, rgba(26,22,20,.82) 48%, rgba(26,22,20,.35) 100%); }
.hero-body { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: 76px; line-height: 1.1; letter-spacing: -.01em; }
.hero .tagline { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--gold); }
.hero-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-top: 8px; }
.hero-cols > p { flex: 1 1 360px; max-width: 520px; font-size: 15px; line-height: 1.8; color: rgba(239, 230, 210, .85); }
.schedule { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.schedule > div { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 2px solid var(--red); }
.schedule > div + div { border-left-color: rgba(239, 230, 210, .3); }
.schedule dt { font-weight: 700; }
.schedule dd { letter-spacing: .04em; color: rgba(239, 230, 210, .75); line-height: 1.6; }

/* ---------- Notice ---------- */
.notice { padding: 40px; background: var(--ink-2); border-top: 1px solid rgba(239,230,210,.1); border-bottom: 1px solid rgba(239,230,210,.1); }
.notice .wrap { display: flex; gap: 16px; align-items: flex-start; }
.notice svg { flex: none; margin-top: 2px; }
.notice b { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .08em; color: var(--gold); }
.notice p { font-size: 14px; line-height: 1.7; color: rgba(239, 230, 210, .8); }

/* ---------- Preface ---------- */
.preface { padding: 88px 40px; background: linear-gradient(90deg, #8E2B23 0%, #4A1F1B 42%, #1A1614 100%); }
.preface .wrap { padding: 0 60px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.preface-text { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.preface .quote { font-family: var(--serif); font-weight: 700; font-size: 30px; }
.preface .by { font-size: 12px; letter-spacing: .2em; color: rgba(239, 230, 210, .7); }
.preface-text > p:last-child { margin-top: 12px; font-size: 15px; line-height: 1.85; color: rgba(239, 230, 210, .85); }
.preface .portrait { flex: 0 0 260px; width: 260px; height: 260px; object-fit: cover; border-radius: 4px; border: 1px solid rgba(239,230,210,.2); }

/* ---------- Rooms (accordion) ---------- */
.rooms { padding: 100px 40px; }
.rooms .wrap-narrow { display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid rgba(239, 230, 210, .2); }
.section-head h2 { font-family: var(--serif); font-weight: 700; font-size: 32px; }
.btn-outline { height: 40px; padding: 0 18px; border: 1px solid var(--gold); border-radius: 4px; background: transparent; color: var(--gold); font-family: inherit; font-size: 13px; cursor: pointer; }
.btn-outline:hover { background: rgba(217, 168, 92, .1); }

.room { border: 1px solid rgba(239, 230, 210, .12); border-radius: 4px; overflow: hidden; }
.room summary { list-style: none; display: flex; align-items: center; gap: 24px; padding: 22px 28px; cursor: pointer; }
.room summary::-webkit-details-marker { display: none; }
.room summary:hover { background: rgba(239, 230, 210, .04); }
.room .no { width: 28px; font-size: 13px; letter-spacing: .1em; color: var(--gold); }
.room .head { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.room .title { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.room .sub { font-size: 12px; letter-spacing: .06em; color: rgba(239, 230, 210, .6); }
.room .lead { font-size: 13px; color: rgba(239, 230, 210, .8); }
.room .chev { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.room[open] summary { background: var(--red); }
.room[open] .no, .room[open] .sub { color: rgba(239, 230, 210, .8); }
.room[open] .title { font-size: 20px; }
.room[open] .lead { display: none; }
.room[open] .chev { transform: rotate(180deg); }
.room[open] .chev path { stroke: var(--paper); }

.room-body { padding: 40px 48px 48px; background: var(--ink-2); display: flex; flex-direction: column; gap: 32px; }
.room-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.room-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.room-text .big { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.4; }
.room-text p:not(.big) { font-size: 14px; line-height: 1.85; color: rgba(239, 230, 210, .8); }
.room-img { flex: 0 0 300px; width: 300px; height: 220px; object-fit: cover; border-radius: 4px; border: 1px solid rgba(239, 230, 210, .12); }
.kv { display: flex; flex-direction: column; }
.kv > p { margin-bottom: 8px; font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.kv dl, .kv ol { padding: 0; list-style: none; }
.kv dl > div, .kv li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid rgba(239, 230, 210, .14); font-size: 13px; line-height: 1.7; }
.kv dl > div:last-child, .kv li:last-child { border-bottom: 1px solid rgba(239, 230, 210, .14); }
.kv dt, .kv li > span:first-child { color: var(--gold); }
.kv dd, .kv li > span:last-child { color: rgba(239, 230, 210, .85); }

/* ---------- CTA ---------- */
.cta { padding: 24px 40px 80px; }
.cta .wrap-narrow { display: flex; flex-direction: column; gap: 12px; }
.cta a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: 4px; background: var(--paper); color: var(--ink); }
.cta a:hover { background: var(--paper-2); color: var(--ink); }
.cta a > span:first-child { display: flex; flex-direction: column; gap: 6px; }
.cta strong { font-family: var(--serif); font-size: 20px; color: var(--red); }
.cta small { font-size: 13px; color: var(--muted); }
.cta .arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }

/* ---------- Online ---------- */
.online-hero { position: relative; min-height: 500px; padding: 96px 40px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.online-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.online-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,22,20,.55) 0%, rgba(26,22,20,.75) 60%, #1A1614 100%); }
.online-hero .body { position: relative; z-index: 1; max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.online-hero h1 { font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1.25; }
.online-hero p.desc { font-size: 15px; line-height: 1.8; color: rgba(239, 230, 210, .85); }
.btn-red { margin-top: 8px; height: 48px; padding: 0 28px; border-radius: 999px; background: var(--red); color: var(--paper); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.btn-red:hover { background: #A3342B; color: var(--paper); }

.room-grid-sec { padding: 40px 40px 100px; }
.room-grid-sec h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; margin-bottom: 28px; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; height: 260px; padding: 20px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(239, 230, 210, .12); background: var(--ink-2); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; }
.tile:hover { color: var(--paper); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .25s, transform .4s; }
.tile:hover img { opacity: .9; transform: scale(1.03); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,22,20,0) 30%, rgba(26,22,20,.9) 100%); }
.tile span { position: relative; z-index: 1; }
.tile .no { font-size: 12px; letter-spacing: .1em; color: var(--gold); }
.tile .name { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.tile-tip { height: 260px; padding: 24px; border-radius: 4px; border: 1px dashed rgba(239, 230, 210, .25); color: rgba(239, 230, 210, .7); display: flex; flex-direction: column; justify-content: center; gap: 10px; font-size: 13px; line-height: 1.7; }
.tile-tip b { font-size: 12px; letter-spacing: .1em; color: var(--gold); font-weight: 400; }

/* ---------- Popup ---------- */
.dim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dim[hidden] { display: none; }
.modal { position: relative; width: 400px; max-width: 100%; padding: 44px 40px 36px; border-radius: 6px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal .x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal h2 { margin-top: 6px; font-family: var(--serif); font-weight: 700; font-size: 24px; }
.modal p { font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.modal .ok { margin-top: 10px; width: 100%; height: 48px; border: 0; border-radius: 4px; background: var(--red); color: var(--paper); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.modal label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.modal input { width: 16px; height: 16px; accent-color: var(--red); }

/* ---------- Footer ---------- */
.footer { padding: 40px 40px 100px; border-top: 1px solid rgba(239, 230, 210, .1); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12px; line-height: 1.8; color: rgba(239, 230, 210, .6); }
.footer .copy { letter-spacing: .12em; }

/* ---------- Mobile (≤768px) ---------- */
@media (max-width: 768px) {
  html { scroll-padding-top: 120px; }
  .gnb { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
  .logo svg { width: 24px; height: 24px; }
  .logo span { font-size: 15px; }
  .lang { padding: 3px; }
  .lang span { height: 26px; padding: 0 10px; font-size: 11px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; border: 0; padding: 0; scrollbar-width: none; }
  .tabs a { flex: none; height: 34px; padding: 0 14px; font-size: 13px; border: 1px solid rgba(239, 230, 210, .2); }
  .tabs a[aria-current="page"] { border-color: var(--red); }

  .hero { min-height: 0; padding: 56px 20px 40px; }
  .hero::after { background: linear-gradient(180deg, rgba(26,22,20,.7) 0%, rgba(26,22,20,.9) 70%, #1A1614 100%); }
  .hero-body { gap: 18px; }
  .eyebrow { font-size: 11px; letter-spacing: .22em; }
  .hero h1 { font-size: 46px; }
  .hero .tagline { font-size: 19px; }
  .hero-cols { gap: 20px; }
  .hero-cols > p { flex-basis: 100%; font-size: 14px; }
  .hero-cols > p br { display: none; }
  .schedule { flex-basis: 100%; font-size: 13px; }

  .notice { padding: 20px; }
  .notice p { font-size: 13px; }

  .preface { padding: 48px 20px; }
  .preface .wrap { padding: 0; flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .preface .quote { font-size: 22px; }
  .preface-text > p:last-child { font-size: 14px; }
  .preface .portrait { width: 160px; height: 160px; flex-basis: auto; }

  .rooms { padding: 56px 16px; }
  .section-head h2 { font-size: 24px; }
  .section-head { margin-bottom: 8px; padding: 0 4px 12px; }
  .btn-outline { height: 36px; padding: 0 12px; font-size: 12px; }
  .room summary { gap: 12px; padding: 14px 12px 14px 16px; }
  .room .title, .room[open] .title { font-size: 15px; }
  .room .sub { font-size: 11px; }
  .room .lead { display: none; }
  .room .no { width: auto; font-size: 12px; }
  .room-body { padding: 20px; gap: 18px; }
  .room-row { gap: 18px; flex-direction: column-reverse; }
  .room-text { flex-basis: auto; }
  .room-text .big { font-size: 17px; }
  .room-text .big br { display: none; }
  .room-text p:not(.big) { font-size: 13px; }
  .room-img { width: 100%; height: 200px; flex-basis: auto; }
  .kv dl > div, .kv li { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 10px 0; font-size: 12px; }

  .cta { padding: 0 16px 32px; }
  .cta a { padding: 18px; }
  .cta strong { font-size: 16px; }
  .cta small { font-size: 12px; }
  .cta .arrow { width: 40px; height: 40px; }

  .online-hero { min-height: 0; padding: 64px 20px; }
  .online-hero h1 { font-size: 30px; }
  .online-hero p.desc { font-size: 14px; }
  .online-hero p.desc br { display: none; }
  .room-grid-sec { padding: 24px 16px 64px; }
  .room-grid { grid-template-columns: 1fr; }
  .tile, .tile-tip { height: 200px; }

  .modal { padding: 40px 24px 28px; }

  .footer { padding: 24px 20px 56px; }
  .footer .wrap { font-size: 11px; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 60px; }
  .preface .portrait { display: none; }
}
