/* 라스트 커피 · tokens */
:root {
  --bg: #133621;
  --surface: #1a4429;
  --ink: #f4d96c;
  --muted: #c2b46a;
  --accent: #f4d96c;
  --accent-ink: #133621;
  --gold-soft: #f9eaa6;
  --f-menu: #1a4429;
  --f-hours: #0c2616;
  --f-loc: #22533a;
  --f-res: #2b6142;
  --row: #143520;

  --display: "Stack Sans Headline", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --text: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.6vw, 1.75rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.4rem, 10vw, 10rem);

  --m: clamp(20px, 4vw, 56px);
  --gap: clamp(72px, 8vw, 120px);
  --toe: 999px 0 0 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.55;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -0.022em; line-height: 1.05; margin: 0; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* controls: one button shape, the toe of a last */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px 0 34px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--toe);
  font-weight: 600; font-size: var(--step-body); text-decoration: none;
  transition: transform .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover { transform: translateX(-4px); }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--bg); color: var(--accent); }
.btn-dark:hover { background: #0c2616; }
.btn-small { min-height: 40px; padding: 0 20px 0 24px; font-size: var(--step-small); }
.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; font-weight: 600; transition: text-underline-offset .2s var(--ease), opacity .2s; }
.link:hover { text-underline-offset: 9px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- hero: a stack of folders ---------- */
.hero { background: var(--bg); overflow: hidden; }
.bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 24px var(--m) 0; font-size: var(--step-small);
}
.bar-links { display: flex; gap: 28px; }
.bar a { text-decoration: none; transition: opacity .2s; }
.bar a:hover { opacity: .7; }
.wordmark { font-family: var(--display); font-size: var(--step-lead); letter-spacing: 0.02em; }
.bar-cta { justify-self: end; font-weight: 600; }

.hero-head { text-align: center; padding: clamp(40px, 6vh, 80px) var(--m) 0; }
.hero h1 { font-size: var(--step-display); }
.hero-sub { font-size: var(--step-lead); line-height: 1.4; max-width: 30em; margin: 32px auto 0; text-wrap: balance; }

.folders { width: 86vw; margin: clamp(32px, 5vh, 64px) auto 0; }
.folder {
  position: relative; display: block; height: 44px;
  background: var(--c); color: var(--ink); text-decoration: none;
  transition: transform .26s var(--ease);
}
.folder:first-child { margin-top: 40px; }
.folder:hover, .folder:focus-visible { transform: translateY(-6px); }
.tab {
  position: absolute; top: -40px; left: var(--tx);
  height: 40px; padding: 0 28px 0 30px;
  display: flex; align-items: center;
  background: var(--c); border-radius: 40px 0 0 0;
  font-size: var(--step-small); font-weight: 600;
}
.folder-front { position: relative; background: var(--accent); color: var(--accent-ink); }
.tab-front { --c: var(--accent); left: 14%; color: var(--accent-ink); }
.front-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 32px;
  padding: 36px 36px 0; align-items: start;
}
.status { font-size: var(--step-lead); font-weight: 600; line-height: 1.3; }
.status-note { margin: 12px 0 28px; max-width: 32em; text-wrap: balance; }
.front-last { margin: 0; aspect-ratio: 2 / 1; overflow: hidden; }
.last-drawing {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%;
  mix-blend-mode: multiply; filter: brightness(1.05) contrast(1.08);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateX(-2%) rotate(-1deg); } to { transform: translateX(2%) rotate(1deg); } }

/* story, inside the open folder */
.story { padding: clamp(96px, 14vh, 160px) 36px clamp(96px, 14vh, 160px); text-align: center; }
.story h2 { font-size: var(--step-head); }
.statement { font-size: var(--step-lead); font-weight: 500; line-height: 1.5; max-width: 26em; margin: 40px auto 0; }
.thumb {
  display: inline-block; width: 2.1em; height: 0.95em; margin: 0 .14em;
  vertical-align: -0.12em; clip-path: url(#last); background: var(--accent-ink);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-foot { max-width: 34em; margin: 32px auto 0; }

/* ---------- menu ---------- */
.menu { background: var(--f-menu); padding: var(--gap) var(--m); }
.menu-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.menu-head h2, .hours h2, .location h2 { font-size: var(--step-display); }
.menu-head p { max-width: 30em; font-size: var(--step-lead); line-height: 1.45; }
.menu-jump { display: none; }
.cat { margin-top: 96px; scroll-margin-top: 72px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 40px; }
.cat-head h3 { font-size: var(--step-head); }
.cat-head span { font-size: var(--step-body); }
.cat-note { margin: -16px 0 40px; max-width: 34em; }
.items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 36px; }
.item { display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start; }
.bullet { width: 48px; height: 22px; fill: var(--accent); margin-top: 4px; transition: transform .26s var(--ease); }
.item:hover .bullet { transform: translateX(-6px); }
.item-line { display: flex; justify-content: space-between; gap: 16px; }
.item-line b { font-weight: 600; }
.item-line span { font-variant-numeric: tabular-nums; font-weight: 600; }
.item-desc { margin-top: 6px; max-width: 38ch; }
.item-note { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }

/* ---------- hours ---------- */
.hours {
  background: var(--f-hours); padding: var(--gap) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start;
}
.hours-live { grid-column: 1 / 7; }
.hours-now { font-size: var(--step-lead); font-weight: 600; margin-top: 48px; line-height: 1.35; }
.hours-left { margin-top: 8px; font-size: var(--step-lead); line-height: 1.35; }
.hours-left:empty { display: none; }
.hours-notes { margin-top: 40px; display: grid; gap: 10px; max-width: 32em; }
.hours-notes li { padding-left: 28px; position: relative; }
.hours-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 7px; background: var(--accent); border-radius: var(--toe); }
.week { grid-column: 8 / 13; width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: var(--step-lead); margin-top: 24px; }
.week th, .week td { padding: 16px 28px; background: var(--row); font-weight: 500; transition: background-color .3s, color .3s; }
.week th { text-align: left; border-radius: var(--toe); }
.week td { text-align: right; font-variant-numeric: tabular-nums; }
.week tr.today th, .week tr.today td { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.week tr.closed td { opacity: .75; }

/* ---------- location ---------- */
.location {
  background: var(--f-loc); padding: var(--gap) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start;
}
.loc-text { grid-column: 1 / 6; }
.address { font-size: var(--step-lead); font-weight: 600; margin-top: 40px; }
.ways { margin: 32px 0 40px; display: grid; gap: 14px; }
.ways li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.ways .bullet { width: 36px; height: 17px; margin-top: 5px; }
.ways b { font-weight: 600; }
.map { grid-column: 6 / 13; margin: 0; }
.map-frame { position: relative; background: var(--accent); overflow: hidden; aspect-ratio: 3 / 2; }
.map-frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15) brightness(1.04); }
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pin svg { width: 64px; height: 30px; fill: var(--bg); order: 2; animation: bob 2.4s ease-in-out infinite; }
.pin b { background: var(--bg); color: var(--accent); padding: 4px 12px 4px 14px; border-radius: var(--toe); font-size: var(--step-small); }
.pin-stn b { background: var(--accent-ink); opacity: .85; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.map figcaption, .hood-frame figcaption { margin-top: 16px; font-size: var(--step-small); }

/* ---------- neighbourhood: one frame, contents change ---------- */
.hood {
  background: var(--bg); padding: var(--gap) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: center;
}
.hood-list { grid-column: 1 / 6; }
.hood h2 { font-size: var(--step-head); }
.hood-sub { margin-top: 24px; max-width: 30em; }
.rows { margin-top: 40px; }
.rows button {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; background: none; border: 0; color: var(--ink); cursor: pointer; text-align: left;
  font: inherit; transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.rows button b { font-size: var(--step-lead); font-weight: 600; }
.rows button span { font-size: var(--step-body); }
.rows button[aria-pressed="false"] { opacity: .5; }
.rows button:hover, .rows button:focus-visible { opacity: 1; transform: translateX(8px); }
.hood-frame { grid-column: 6 / 13; margin: 0; }
.frame { position: relative; aspect-ratio: 2.15 / 1; clip-path: url(#last); background: var(--surface); cursor: pointer; }
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos);
  opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 6s linear;
}
.frame img.on { opacity: 1; transform: scale(1); }

/* ---------- reservation coupon ---------- */
.reserve { background: var(--f-res); padding: var(--gap) var(--m); }
.coupon {
  width: calc(100% * 10 / 12); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  background: var(--accent); color: var(--accent-ink);
}
.coupon-left { padding: 48px; display: flex; flex-direction: column; gap: 28px; }
.coupon-left h2 { font-size: var(--step-head); }
.coupon-left p { max-width: 28em; }
.coupon-right { position: relative; padding: 48px; display: flex; flex-direction: column; gap: 10px; border-left: 5px dotted var(--f-res); }
.coupon-right::before, .coupon-right::after {
  content: ""; position: absolute; left: -16.5px; width: 28px; height: 28px; border-radius: 50%; background: var(--f-res);
}
.coupon-right::before { top: -14px; }
.coupon-right::after { bottom: -14px; }
.coupon input {
  width: 100%; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: 0;
  background: var(--gold-soft); color: var(--accent-ink); font: inherit; font-size: var(--step-body);
  transition: background-color .2s;
}
.coupon input::placeholder { color: #4d5d33; }
.coupon input:focus { outline: 3px solid var(--accent-ink); outline-offset: 0; background: #fff4c4; }
.submit {
  height: 56px; margin-top: 6px; border: 0; border-radius: var(--toe);
  background: var(--accent-ink); color: var(--accent); font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .22s var(--ease), background-color .22s;
}
.submit:hover { background: #0c2616; transform: translateX(-4px); }
.submit:active { transform: scale(.98); }

/* ---------- footer: the mark, built large ---------- */
.foot { background: var(--bg); padding: 72px var(--m) 32px; }
.mark { display: flex; gap: 4px; align-items: flex-end; height: clamp(180px, 24svh, 260px); text-decoration: none; }
.mark span {
  flex: 1; height: var(--h); background: var(--c); color: var(--t, var(--accent-ink));
  display: flex; align-items: flex-end; padding: 0 0 .02em .08em; overflow: hidden;
  font-family: var(--display); font-weight: 300; font-size: var(--step-display); line-height: .78;
  transition: transform .3s var(--ease);
}
.mark:hover span:nth-child(odd) { transform: translateY(-8px); }
.foot-cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; margin-top: 56px; }
.foot-cols > div { grid-column: span 2; }
.foot-cols > .foot-contact { grid-column: 9 / 13; }
.foot-cols h2 { font-family: var(--text); font-size: var(--step-small); font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.foot-cols li { margin-bottom: 6px; font-size: var(--step-small); }
.foot-cols a { text-decoration: none; transition: opacity .2s; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-contact p { font-size: var(--step-body); }
.credits { margin-top: 56px; font-size: var(--step-small); color: var(--muted); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 32px; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; font-size: var(--step-small); }

/* ---------- entrances ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 75ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .credits { grid-template-columns: 1fr 1fr; }
  .front-grid { grid-template-columns: 1fr 1fr; }
  .hours-live { grid-column: 1 / 13; }
  .week { grid-column: 1 / 13; margin-top: 16px; }
  .loc-text { grid-column: 1 / 13; }
  .map { grid-column: 1 / 13; }
  .hood-list, .hood-frame { grid-column: 1 / 13; }
  .coupon { width: 100%; }
  .foot-cols > div { grid-column: span 3; }
  .foot-cols > .foot-contact { grid-column: 1 / 13; }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
  .bar { grid-template-columns: 1fr auto; padding-top: 20px; }
  .bar-links { display: none; }
  .hero-head { padding-top: 72px; }
  .hero-sub { font-size: var(--step-body); margin-top: 20px; }
  .folders { width: 100%; margin-top: 48px; }
  .folder { height: 44px; }
  .folder:first-child { margin-top: 32px; }
  .tab { top: -32px; height: 32px; padding: 0 18px 0 20px; border-radius: 32px 0 0 0; left: var(--txm, var(--tx)); }
  .folder:nth-child(1) { --txm: 64%; }
  .folder:nth-child(2) { --txm: 5%; }
  .folder:nth-child(3) { --txm: 34%; }
  .folder:nth-child(4) { --txm: 66%; }
  .tab-front { left: 6%; }
  .front-grid { grid-template-columns: 1fr; padding: 28px 20px 0; gap: 8px; }
  .front-last { order: -1; margin: -8px -20px 8px; }
  .actions .btn { width: 100%; }
  .story { padding: 96px 20px; text-align: left; }
  .statement { margin-top: 28px; max-width: none; }
  .story-foot { margin-left: 0; }

  .menu-head { grid-template-columns: 1fr; gap: 24px; }
  .menu-jump {
    display: flex; gap: 20px; position: sticky; top: 0; z-index: 5;
    margin: 40px calc(var(--m) * -1) 0; padding: 14px var(--m); background: var(--f-menu); font-weight: 600;
  }
  .menu-jump a { text-decoration: none; }
  .cat { margin-top: 72px; }
  .items { grid-template-columns: 1fr; row-gap: 28px; }
  .item { grid-template-columns: 40px 1fr; gap: 14px; }
  .bullet { width: 40px; height: 18px; }

  .hours-now { margin-top: 32px; }
  .week th, .week td { padding: 14px 18px; }
  .week { font-size: var(--step-body); }

  .coupon { grid-template-columns: minmax(0, 1fr); }
  .pin-stn { display: none; }
  .credits { grid-template-columns: 1fr; }
  .coupon-left { padding: 32px 24px; }
  .coupon-right { padding: 32px 24px; border-left: 0; border-top: 5px dotted var(--f-res); }
  .coupon-right::before, .coupon-right::after { top: -16.5px; bottom: auto; }
  .coupon-right::before { left: -14px; }
  .coupon-right::after { left: auto; right: -14px; }
  .coupon input { height: 54px; }
  .reserve { padding-inline: 12px; }

  .mark { height: 160px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-cols > div, .foot-cols > .foot-contact { grid-column: auto; }
  .foot-cols > .foot-contact { grid-column: 1 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .3s linear; }
  .last-drawing, .pin svg { animation: none; }
  .frame img { transition: opacity .2s linear; transform: none; }
  .btn, .folder, .rows button, .mark span, .submit { transition: none; }
}

