/* 선남sea — palette from a Korean fish-market price board: white board, blue and red marker. */
:root {
  --ice: #f4f7f8;        /* page: crushed-ice white */
  --board: #ffffff;      /* the owner's whiteboard */
  --marker: #123a6b;     /* blue marker: headings, links, board text */
  --marker-red: #c8202a; /* red marker: only for the board's notes */
  --text: #1d2a36;
  --muted: #55636f;
  --line: #d5dee3;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --hand: "Nanum Pen Script", "Pretendard Variable", cursive;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ice);
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  letter-spacing: -0.01em;
  word-break: keep-all;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--marker); }
:focus-visible { outline: 3px solid var(--marker-red); outline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--marker); letter-spacing: -0.035em; line-height: 1.2; text-wrap: balance; }
h2 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; }
p { margin: 0; }

.draft-note {
  background: var(--marker-red);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 6px var(--gutter);
}

/* ---------------------------------------------------------------- header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--ice) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: block; line-height: 0; }
.wordmark img { height: 36px; width: auto; }
.top nav { display: flex; gap: 4px; }
.top nav a {
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
}
.top nav a:hover { background: var(--board); }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--marker);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.button:hover { background: #0d2c52; }

/* ---------------------------------------------------------------- hero */
/* Mobile: photo, then words, then the board overlapping the photo's bottom edge. */
.hero { display: grid; padding-bottom: 56px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-text { padding: 28px var(--gutter) 0; display: grid; gap: 16px; justify-items: start; }
.hero h1 { font-size: clamp(40px, 11vw, 76px); font-weight: 900; }
.hero-text p { font-size: 18px; color: var(--muted); max-width: 30em; }

.board {
  margin: 36px var(--gutter) 0;
  padding: 22px 24px 20px;
  background: var(--board);
  border: 3px solid var(--marker);
  border-radius: 6px;
  box-shadow: 6px 8px 0 rgba(18, 58, 107, 0.12);
  transform: rotate(-1.2deg);
  font-family: var(--hand);
  color: var(--marker);
  max-width: 420px;
  animation: board-settle 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.2s both;
}
.board h2 { font-family: var(--hand); font-weight: 400; font-size: 40px; line-height: 1; margin-bottom: 10px; }
.board ul { list-style: none; margin: 0; padding: 0; }
.board li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 32px;
  line-height: 1.35;
  border-bottom: 1px dashed var(--line);
}
.board em { font-style: normal; font-size: 26px; color: var(--marker-red); }
.board-sign { margin-top: 12px; font-size: 24px; line-height: 1.25; color: var(--text); }

@keyframes board-settle {
  from { opacity: 0; transform: rotate(-6deg) translateY(16px); }
}

/* ---------------------------------------------------------------- about */
.about {
  display: grid;
  gap: 24px;
  padding: 64px var(--gutter);
  background: var(--board);
}
.about-body { display: grid; gap: 14px; max-width: 34em; color: var(--muted); }
.about figure { margin: 0; }
.about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.about figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- menu: a price board */
.menu { padding: 64px var(--gutter); }
.menu-note { margin-top: 10px; color: var(--muted); max-width: 34em; }
.menu-photo { margin: 28px 0 0; }
.menu-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.menu-groups { display: grid; gap: 40px; margin-top: 36px; }
.menu-group h3 { font-size: 24px; font-weight: 800; }
.menu-group .when { font-size: 15px; color: var(--muted); margin-top: 2px; }
.menu-group ul { list-style: none; margin: 14px 0 0; padding: 0; border-top: 2px solid var(--marker); }
.menu-group li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.menu-group .item { flex: 1; font-weight: 600; }
.menu-group small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.menu-group .price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--marker); }
.menu-unit { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- rooms */
.rooms { display: grid; background: var(--marker); color: #e8eef5; }
.rooms img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rooms-text { display: grid; gap: 14px; justify-items: start; padding: 40px var(--gutter) 56px; }
.rooms h2 { color: #fff; }
.rooms .button { background: #fff; color: var(--marker); margin-top: 8px; }
.rooms .button:hover { background: var(--ice); }

/* ---------------------------------------------------------------- branches */
.branches { padding: 64px var(--gutter); }
.branches-note { margin-top: 10px; color: var(--muted); max-width: 34em; }
.branch-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.branch { background: var(--board); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; }
.branch-body { padding: 20px; display: grid; gap: 6px; }
.branch h3 { font-size: 22px; font-weight: 800; }
.branch h3 span { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.branch .addr { color: var(--text); }
.branch .extra { font-size: 15px; color: var(--muted); }
.branch .extra:empty { display: none; }

/* Kakao "지도 퍼가기" renders at a fixed pixel size; stretch it to the card. */
.branch-map { background: var(--ice); border-bottom: 1px solid var(--line); }
.branch-map .root_daum_roughmap { width: 100% !important; }
.branch-map .root_daum_roughmap .wrap_map { height: 220px !important; }
.branch-map .root_daum_roughmap .cont { display: none; } /* address/phone footer: the card already shows them */

/* Booking is by phone: the call button is the card's main action. */
.branch .call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  margin-top: 10px;
  padding: 0 clamp(14px, 4vw, 18px);
  border-radius: 12px;
  background: var(--marker);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.branch .call span, .branch .call strong { white-space: nowrap; }
.branch .call strong { font-variant-numeric: tabular-nums; font-size: 18px; }
.branch .call:hover { background: #0d2c52; }
.branch .book-online {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 12px;
  border: 2px solid var(--marker);
  color: var(--marker);
  font-weight: 700;
  text-decoration: none;
}
.branch .book-online:hover { background: var(--ice); }
.maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.maps a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--marker);
}
.maps a:hover { border-color: var(--marker); }

.top nav .nav-book { background: var(--marker); color: #fff; }
.top nav .nav-book:hover { background: #0d2c52; }

/* ---------------------------------------------------------------- footer */
.foot { padding: 56px var(--gutter) calc(56px + env(safe-area-inset-bottom)); background: var(--board); border-top: 1px solid var(--line); display: grid; gap: 24px; }
.sign { font-family: var(--hand); font-size: 36px; line-height: 1.15; color: var(--marker); }
.sign span { display: flex; align-items: center; justify-content: flex-end; gap: 6px; max-width: 9em; }
/* The seal stamped next to the sign-off, a little crooked like a real chop. */
.sign .stamp { width: 44px; height: 44px; transform: rotate(-6deg); }
.biz { font-size: 14px; color: var(--muted); display: grid; gap: 12px; }
.biz dl { margin: 0; display: grid; gap: 4px; }
.biz dl div { display: flex; gap: 10px; }
.biz dt { flex: 0 0 7.5em; color: var(--text); font-weight: 600; }
.biz dd { margin: 0; min-width: 0; }
.biz a { color: inherit; font-variant-numeric: tabular-nums; }
.biz .todo dd { color: var(--marker-red); font-weight: 700; } /* draft only: still to fill in */
.biz .copy { font-size: 13px; }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .wordmark img { height: 44px; }
  .hero {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto auto;
    align-items: end;
    padding: 0 0 80px;
  }
  .hero-photo { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 21 / 9; }
  .hero-text { grid-column: 1; grid-row: 2; padding-top: 48px; }
  /* The board pins to the photo, like it hangs on the shop wall. */
  .board { grid-column: 2; grid-row: 1 / 3; align-self: end; justify-self: end; margin: 0 var(--gutter) 0 0; max-width: 460px; width: 100%; }
  .board h2 { font-size: 48px; }
  .board li { font-size: 36px; }
  .board em { font-size: 30px; }

  .about { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; column-gap: 48px; align-items: start; padding-block: 96px; }
  .about h2, .about-body { grid-column: 1; }
  .about-photo-a { grid-column: 2; grid-row: 1 / 3; }
  .about-photo-b { grid-column: 1 / -1; }
  .about-photo-b img { aspect-ratio: 21 / 9; }

  .menu, .branches { padding-block: 96px; max-width: 1200px; margin-inline: auto; }
  .menu-photo img { aspect-ratio: 21 / 9; object-position: center 55%; }
  .menu-groups { grid-template-columns: repeat(3, 1fr); gap: 40px; }

  .rooms { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .rooms img { height: 100%; aspect-ratio: auto; }
  .rooms-text { padding: 56px; }

  .branch-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .branch-map .root_daum_roughmap .wrap_map { height: 260px !important; }
  .foot { grid-template-columns: 1fr auto; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .board { animation: none; }
}
