/* Menubora - studio website.
 *
 * The frame stays quiet (warm paper, ink, one purple: 보라, the colour in the name) so the menus can be the
 * colour. Two bands borrow from the work itself: purple, like a printed counter menu, and night, like the
 * late-room menu. The device carried over from the menus is the line: an item, a run of dots, and what it
 * costs or what it is.
 */

:root {
  --paper: #f6f0e6;
  --desk: #ece2d2;
  --ink: #1c1a17;
  --ink-2: #4a453e;
  --soft: #7d756a;
  --rule: #ddd2c1;
  --bora: #6c3fb4;
  --bora-deep: #552f93;
  --night: #181412;
  --cream: #f3e8d6;
  --lilac: #c4a8ff;

  --display: "EB Garamond", "Nanum Myeongjo", Garamond, Georgia, serif;
  --sans: "Inter Tight", "Gothic A1", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: 64px; }

h1, h2, .wordmark { font-family: var(--display); }
h2 { font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.01em; }

/* ---------------------------------------------------------------- header */

.top {
  position: sticky; top: 0; z-index: 5;
  background: rgb(246 240 230 / 0.9);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-weight: 500; font-size: 27px; line-height: 1; letter-spacing: 0; text-decoration: none; }
.wordmark::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: var(--bora); }
.wordmark.small { font-size: 22px; }

.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav .nav-map { border: 1px solid var(--ink); border-radius: 999px; padding: 5px 14px; color: var(--ink); }
.nav .nav-map:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--bora); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
}
.button:hover { background: var(--bora-deep); }
.button.lilac { background: var(--lilac); color: var(--night); }
.button.lilac:hover { background: #d8c6ff; }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

/* ---------------------------------------------------------------- the line: item, dots, side */

.line { display: flex; align-items: baseline; gap: 10px; }
.line .item { flex: 0 1 auto; }
.dots {
  flex: 1 1 24px; min-width: 24px; height: 0.5em;
  background-image: radial-gradient(circle, #b8ab98 1.1px, transparent 1.4px);
  background-size: 7px 7px; background-repeat: repeat-x; background-position: left bottom;
}
.line .side, .line .price { flex: none; }
.price { color: var(--bora-deep); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- menu sheets shown as paper */

.sheet-frame {
  position: relative; display: block;
  aspect-ratio: 210 / 297; overflow: hidden;
  background: #fff; border-radius: 3px;
  box-shadow: 0 1px 2px rgb(40 25 10 / 0.10), 0 14px 34px rgb(40 25 10 / 0.18);
}
.sheet-frame iframe {
  position: absolute; top: 0; left: 0;
  width: 794px; height: 1123px; border: 0;
  transform-origin: 0 0; transform: scale(var(--s, 0.3));
  pointer-events: none;
}

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px);
}
h1 { font-weight: 400; font-size: clamp(48px, 5.8vw, 82px); line-height: 1.02; letter-spacing: -0.015em; }
.lede { margin-top: 26px; max-width: 31em; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.note { margin-top: 22px; font-size: 14px; color: var(--soft); }

.fan { position: relative; height: clamp(380px, 42vw, 560px); }
.fan .sheet-frame { position: absolute; width: clamp(190px, 21vw, 300px); }
.fan .f1 { left: 2%; top: 9%; transform: rotate(-8deg); }
.fan .f2 { left: 50%; top: 13%; transform: rotate(7deg); }
.fan .f3 { left: 26%; top: 0; transform: rotate(-1deg); z-index: 2; }

/* ---------------------------------------------------------------- our menus */

.desk { background: var(--desk); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.section-head p { color: var(--ink-2); max-width: 32em; }
.gallery { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.piece .sheet-frame { transition: transform 200ms ease, box-shadow 200ms ease; }
.piece .sheet-frame:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(40 25 10 / 0.10), 0 22px 44px rgb(40 25 10 / 0.24); }
.piece figcaption { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.piece figcaption b { display: block; font-family: var(--display); font-weight: 500; font-size: 23px; letter-spacing: 0; color: var(--ink); margin-bottom: 2px; }
.section-head .text-link { white-space: nowrap; }

/* ---------------------------------------------------------------- styles page: one menu, every style */

.styles-head { padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(32px, 4vw, 48px); }
.styles-head h1 { font-weight: 400; font-size: clamp(42px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -0.015em; }
.styles-head > p { margin-top: 18px; max-width: 38em; color: var(--ink-2); font-size: 18px; }
.kitchens { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.kitchens button {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer;
  background: transparent; border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px;
}
.kitchens button span { font-weight: 400; color: var(--soft); margin-left: 4px; }
.kitchens button:hover { background: rgb(28 26 23 / 0.06); }
.kitchens button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.kitchens button[aria-pressed="true"] span { color: rgb(246 240 230 / 0.7); }
.styles-page .desk { padding: clamp(40px, 6vw, 72px) 0; }
.styles-page .gallery { margin-top: 0; row-gap: clamp(28px, 4vw, 48px); }
.styles-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.styles-foot p { max-width: 36em; color: var(--ink-2); }

/* ---------------------------------------------------------------- what we make: a menu on a purple table */

.make { background: var(--bora); color: #fff8ef; padding: clamp(64px, 9vw, 112px) 0; }
.make-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.make h2 + p { margin-top: 22px; max-width: 26em; font-size: 18px; color: #ece3ff; }
.clip { margin-top: 36px; width: min(240px, 60%); }
.clip video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: var(--bora-deep); box-shadow: 0 2px 4px rgb(30 10 60 / 0.18), 0 24px 50px rgb(30 10 60 / 0.34); }
.clip figcaption { margin-top: 12px; font-size: 14px; color: #ece3ff; }
.card {
  background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 2px 4px rgb(30 10 60 / 0.18), 0 24px 50px rgb(30 10 60 / 0.32);
  transform: rotate(-0.8deg);
  display: grid; gap: 20px;
}
.card .item { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: 0; }
.card .side { font-size: 14px; font-weight: 600; color: var(--bora-deep); }
.card .desc { margin-top: 3px; font-size: 15px; color: var(--ink-2); max-width: 34em; }

/* ---------------------------------------------------------------- how it works */

.how { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-weight: 400;
  font-size: 48px; line-height: 1; color: var(--bora); margin-bottom: 14px;
}
.steps h3 { font-size: 17px; font-weight: 600; }
.steps p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* ---------------------------------------------------------------- the motion menu, live in a phone */

.band { background: var(--desk); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.split h2 + p { margin-top: 22px; }
.split p { max-width: 32em; color: var(--ink-2); }
.hint { margin-top: 18px; font-size: 14px; color: var(--soft) !important; }
.hint a { color: var(--ink); }

.ticks { margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--bora); border-bottom: 2.5px solid var(--bora); transform: rotate(-45deg);
}

.phone {
  justify-self: center; width: min(320px, 100%);
  padding: 11px; border-radius: 48px; background: var(--ink);
  box-shadow: 0 2px 4px rgb(40 25 10 / 0.12), 0 30px 60px rgb(40 25 10 / 0.28);
}
.phone-screen { position: relative; aspect-ratio: 390 / 812; overflow: hidden; border-radius: 38px; background: #f4ecdf; }
.phone-screen iframe {
  position: absolute; top: 0; left: 0; width: 390px; height: 812px; border: 0;
  transform-origin: 0 0; transform: scale(var(--s, 0.76));
}

/* ---------------------------------------------------------------- the map, offered quietly */

.night { background: var(--night); color: var(--cream); padding: clamp(56px, 7vw, 88px) 0; }
.night-row { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.night h2 { font-size: clamp(32px, 3.8vw, 46px); }
.night p { margin-top: 14px; max-width: 34em; color: #b9ad9b; }

/* ---------------------------------------------------------------- footer */

.foot-row { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: baseline; padding-top: 36px; padding-bottom: 48px; }
.fine { font-size: 13px; color: var(--soft); max-width: 56em; }

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav a:not(.nav-map) { display: none; }
  .hero, .section-head, .make-grid, .split, .night-row { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .fan { height: 420px; max-width: 460px; }
  .fan .sheet-frame { width: 210px; }
  .card { transform: none; }
  .foot-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .fan { height: 330px; }
  .fan .sheet-frame { width: 165px; }
  .gallery { gap: 14px; }
  .piece figcaption { font-size: 13.5px; }
  .piece figcaption b { font-size: 20px; }
  .steps { grid-template-columns: 1fr; }
  .phone { width: min(300px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .piece .sheet-frame { transition: none; }
}
