/* 수제 베이크샵 Yeon */

:root {
  --by-cream: #F6EEDD;
  --by-linen: #E6D8BD;
  --by-paper: #FBF6EA;
  --by-walnut: #2E1C10;
  --by-wood: #5A3A22;
  --by-ink: #2A1D14;
  --by-ash: #6F5E4E;
  --by-caramel: #A9612B;
  --by-caramel-d: #7F4317;
  --by-butter: #E7C77E;
  --by-kakao: #FEE500;
  --by-kakao-ink: #191600;
  --by-focus: #3F6F86;

  --by-serif: "Gowun Batang", "Nanum Myeongjo", "Iowan Old Style", "Apple SD Gothic Neo", Georgia, serif;
  --by-sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --by-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --by-hand: "Nanum Pen Script", "Bradley Hand", cursive;

  --line: 1.5px solid var(--by-ink);
  --shadow: 6px 6px 0 var(--by-wood);
  --shadow-dark: 6px 6px 0 var(--by-caramel);
  --soft: 0 10px 24px rgba(46, 28, 16, .18);

  --wrap: 1120px;
  --gutter: 24px;
  --sec: clamp(64px, 9vw, 112px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--by-cream);
  color: var(--by-ink);
  font: 400 17px/1.75 var(--by-sans);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}

/* 종이 결 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 72px; }
#top { scroll-margin-top: 0; }

:focus-visible {
  outline: 3px solid var(--by-focus);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 글자 ---------- */
h1, h2, h3 { font-family: var(--by-serif); font-weight: 700; }

.h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.25;
  letter-spacing: -.015em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font: 500 12px/1.4 var(--by-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--by-caramel-d);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--by-caramel);
  flex: none;
}
.on-dark .eyebrow { color: var(--by-butter); }
.on-dark .eyebrow::before { background: var(--by-butter); }

.lead {
  margin-top: 20px;
  font-size: 18px;
  max-width: 34em;
}

/* 치수선 */
.dimline { position: relative; }
.dimline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 9px;
  border-inline: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  opacity: .75;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 16px/1.25 var(--by-sans);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--kakao {
  background: var(--by-kakao);
  color: var(--by-kakao-ink);
  border-color: var(--by-ink);
}
.btn--kakao:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--by-ink); }
.on-dark .btn--kakao:hover { box-shadow: 4px 4px 0 var(--by-caramel); }

.btn--primary {
  background: var(--by-walnut);
  color: var(--by-cream);
  border-color: var(--by-walnut);
}
.btn--primary:hover { background: var(--by-caramel-d); border-color: var(--by-caramel-d); }

.btn--outline {
  background: transparent;
  color: var(--by-ink);
  border-color: currentColor;
}
.btn--outline:hover { background: var(--by-ink); color: var(--by-cream); border-color: var(--by-ink); }

.btn--outline-cream { color: var(--by-cream); }
.btn--outline-cream:hover { background: var(--by-cream); color: var(--by-walnut); border-color: var(--by-cream); }

.cta-row { margin-top: 32px; }

/* ---------- 상단 바 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--by-cream);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.site-header.is-solid {
  background: var(--by-cream);
  color: var(--by-ink);
  box-shadow: inset 0 -1.5px 0 var(--by-ink);
}
.menu-open .site-header {
  background: var(--by-walnut);
  color: var(--by-cream);
  box-shadow: inset 0 -1px 0 rgba(246, 238, 221, .16);
}

.header-in {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.header-in > * { min-width: 0; }

.wordmark {
  justify-self: start;
  font: 700 22px/1.1 var(--by-serif);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span {
  text-decoration: underline;
  text-decoration-color: var(--by-caramel);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav ul { display: flex; gap: 32px; }
.nav a {
  display: inline-block;
  padding: 10px 2px;
  font: 500 15px/1.2 var(--by-sans);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 1.5px no-repeat;
  transition: background-size .25s var(--ease);
}
.nav a:hover { background-size: 100% 1.5px; }

.header-cta {
  justify-self: end;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}
.header-cta svg { width: 18px; height: 18px; }

.menu-btn {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-btn-bar,
.menu-btn-bar::before,
.menu-btn-bar::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s var(--ease), background-color .2s;
}
.menu-btn-bar { position: relative; }
.menu-btn-bar::before,
.menu-btn-bar::after { content: ""; position: absolute; left: 0; }
.menu-btn-bar::before { top: -6px; }
.menu-btn-bar::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn-bar { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn-bar::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* 모바일 메뉴 */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow-y: auto;
  background: var(--by-walnut);
  color: var(--by-cream);
  animation: menu-in .25s var(--ease);
}
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu-list li { border-bottom: 1px solid rgba(246, 238, 221, .16); }
.menu-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  font: 700 28px/1.2 var(--by-serif);
  text-decoration: none;
}
.menu-list svg { width: 22px; height: 22px; margin-left: auto; color: var(--by-butter); flex: none; }
.menu-num { font: 500 12px/1 var(--by-mono); letter-spacing: .14em; color: var(--by-butter); }
.menu-insta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 500 16px/1 var(--by-sans);
  color: var(--by-butter);
  text-decoration: none;
}
.menu-insta svg { width: 22px; height: 22px; }
.menu-open, .menu-open body { overflow: hidden; }

/* ---------- 물결 구분선 ---------- */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 14px;
  z-index: 3;
  pointer-events: none;
  background: var(--wave-c, var(--by-cream));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14A14 14 0 0 1 28 14Z'/%3E%3C/svg%3E") center bottom / 28px 14px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14A14 14 0 0 1 28 14Z'/%3E%3C/svg%3E") center bottom / 28px 14px repeat-x;
}

/* ---------- 섹션 ---------- */
.section { position: relative; padding-block: var(--sec); }
.bg-cream { background: var(--by-cream); --wave-c: var(--by-cream); }
.bg-linen { background: var(--by-linen); --wave-c: var(--by-linen); }
.bg-walnut { background: var(--by-walnut); --wave-c: var(--by-walnut); color: var(--by-cream); }

/* 사진 틀 */
.photo {
  overflow: hidden;
  border: var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  background: var(--by-linen);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.on-dark .photo { border-color: var(--by-cream); box-shadow: var(--shadow-dark); background: var(--by-wood); }

.credit {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--by-ash);
  text-align: right;
}
.credit a { color: var(--by-caramel-d); text-underline-offset: 2px; }
.on-dark .credit { color: rgba(246, 238, 221, .72); }
.on-dark .credit a { color: var(--by-butter); }

/* ---------- 1. 첫 화면 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: min(88vh, 760px);
  min-height: 640px;
  overflow: hidden;
  background: var(--by-walnut);
  color: var(--by-cream);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(46, 28, 16, .55) 0, rgba(46, 28, 16, 0) 150px),
    linear-gradient(90deg, rgba(46, 28, 16, .8) 0%, rgba(46, 28, 16, .74) 34%, rgba(46, 28, 16, .42) 50%, rgba(46, 28, 16, 0) 62%);
}
.hero-in { position: relative; z-index: 1; padding-top: var(--header-h); }
.hero-wave { display: none; --wave-c: var(--by-walnut); }
.hero-copy { max-width: 600px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.18;
  letter-spacing: -.02em;
  word-break: keep-all;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 24px;
  max-width: 30em;
  font-size: 18px;
  color: rgba(246, 238, 221, .9);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-cta > * { min-width: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 44px; }
.facts li {
  min-width: 0;
  padding-top: 18px;
  font: 500 13px/1.3 var(--by-mono);
  letter-spacing: .08em;
  color: var(--by-butter);
  white-space: nowrap;
}

/* ---------- 2. 월넛 타르트 ---------- */
.tart-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: start;
}
.tart-grid > * { min-width: 0; }
.tart-visual { grid-column: 1 / 6; position: relative; min-height: 560px; }
.tart-body { grid-column: 6 / 13; padding-left: 24px; }

.dial { width: min(320px, 72%); }
.dial-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial-dim line { stroke: var(--by-ink); stroke-width: 1.2; }
.dial-dim .dial-ext { stroke: var(--by-ash); stroke-width: 1; stroke-dasharray: 3 4; }
.dial-dim-bg { fill: var(--by-cream); }
.dial-dim text { font: 500 13px var(--by-mono); letter-spacing: .04em; fill: var(--by-ink); }
.dial-scallop { fill: var(--by-butter); stroke: var(--by-ink); stroke-width: 1.5; stroke-linejoin: round; }
.dial-rim { fill: none; stroke: var(--by-caramel); stroke-width: 1.5; stroke-dasharray: 2 5; }
.dial-fill { fill: rgba(169, 97, 43, .26); stroke: var(--by-ink); stroke-width: 1.5; }
.dial-nuts ellipse { fill: rgba(90, 58, 34, .55); stroke: var(--by-ink); stroke-width: .8; }
.dial-slices line { stroke: var(--by-ink); stroke-width: 1.5; stroke-linecap: round; }
.dial-center { fill: var(--by-ink); }

.dial-meta { margin-top: 18px; max-width: calc(100% - 8px); }
.tart-visual .dial-meta { max-width: max(140px, calc(100% - min(240px, 54%) - 20px)); }
.dial-toggle {
  display: inline-flex;
  padding: 3px;
  border: var(--line);
  border-radius: 999px;
  background: var(--by-paper);
}
.dial-toggle button {
  min-width: 64px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 500 13px/1 var(--by-mono);
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.dial-toggle button[aria-pressed="true"] { background: var(--by-walnut); color: var(--by-cream); }
.dial-toggle button:not([aria-pressed="true"]):hover { background: var(--by-linen); }
.dial-note { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--by-ash); }

.sq {
  position: absolute;
  top: 0;
  right: 0;
  width: min(240px, 54%);
  margin-top: min(236px, 52%);
  transform: rotate(2deg);
}
.sq::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 2;
  width: 88px;
  height: 26px;
  background: rgba(231, 199, 126, .9);
  transform: translateX(-50%) rotate(-4deg);
  clip-path: polygon(0 12%, 4% 0, 96% 0, 100% 14%, 97% 50%, 100% 86%, 96% 100%, 4% 100%, 0 88%, 3% 50%);
}
.sq .photo { aspect-ratio: 1 / 1; }

.specs { margin-top: 36px; border-top: var(--line); }
.specs > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(42, 29, 20, .45);
}
.specs > div > * { min-width: 0; }
.specs dt {
  padding-top: 3px;
  font: 500 13px/1.6 var(--by-mono);
  letter-spacing: .08em;
  color: var(--by-ash);
}
.specs dd { font-size: 16px; line-height: 1.7; }

.price { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin-top: 40px; }
.price > * { min-width: 0; }
.price-num {
  padding-top: 22px;
  font: 700 clamp(56px, 8vw, 96px)/1 var(--by-serif);
  letter-spacing: -.02em;
  color: var(--by-ink);
}
.price-num::before { color: var(--by-caramel); opacity: 1; }
.price-note { padding-bottom: 10px; font-size: 15px; color: var(--by-ash); }

/* ---------- 3. 배송 ---------- */
.deliv-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: center;
}
.deliv-grid > * { min-width: 0; }
.deliv-body { grid-column: 1 / 8; }
.deliv-note { grid-column: 8 / 13; padding: 24px 0; }

.zone { margin-top: 36px; }
.sub { margin-bottom: 14px; font-size: 22px; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 20px;
  border: var(--line);
  border-radius: 999px;
  background: var(--by-cream);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.chips .chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--by-caramel);
  flex: none;
}
.chip--dashed { border-style: dashed; background: transparent; }
.dim-inline {
  display: inline-block;
  padding-top: 11px;
  margin-top: -11px;
  font: 700 18px/1 var(--by-mono);
  color: var(--by-caramel-d);
}
.dim-inline::before { height: 7px; }
.deliv-guide { margin-top: 28px; font-size: 15px; color: var(--by-ash); }

.note {
  position: relative;
  max-width: 400px;
  margin-inline: auto;
  padding: 44px 32px 34px;
  border-radius: 2px;
  background-color: var(--by-paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(169, 97, 43, .14) 33px 34px);
  background-position: 0 18px;
  box-shadow: var(--soft);
  transform: rotate(-1.5deg);
}
.note::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 104px;
  height: 28px;
  background: rgba(231, 199, 126, .9);
  transform: translateX(-50%) rotate(3deg);
  clip-path: polygon(0 12%, 4% 0, 96% 0, 100% 14%, 97% 50%, 100% 86%, 96% 100%, 4% 100%, 0 88%, 3% 50%);
}
.note-label {
  font: 500 12px/1.4 var(--by-mono);
  letter-spacing: .14em;
  color: var(--by-caramel-d);
}
.note-big { margin-top: 12px; font: 700 26px/1.35 var(--by-serif); }
.note-small { margin-top: 6px; font-size: 15px; color: var(--by-ash); }
.note-hand {
  margin-top: 20px;
  font: 400 27px/1.25 var(--by-hand);
  color: var(--by-caramel-d);
}

/* ---------- 4. 나눔 ---------- */
.mood .photo { aspect-ratio: 16 / 9; max-height: 520px; }
.share-card {
  position: relative;
  z-index: 2;
  width: 440px;
  max-width: 100%;
  margin: -150px 0 0 40px;
  padding: 32px 36px 36px;
  border: var(--line);
  border-radius: 4px;
  background: var(--by-paper);
  box-shadow: var(--shadow);
}
.share-card p { margin-top: 16px; }

/* ---------- 5. 주문 방법 ---------- */
.section--order { padding-top: 0; }
.order-inner { padding-top: var(--sec); border-top: 1px solid rgba(42, 29, 20, .35); }
.order-head { max-width: 720px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.step {
  position: relative;
  min-width: 0;
  padding: 28px 28px 32px;
  border: var(--line);
  border-radius: 4px;
  background: var(--by-paper);
  box-shadow: var(--shadow);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  left: calc(100% + 1.5px);
  width: calc(32px - 3px);
  border-top: 1.5px dashed var(--by-ink);
}
.step-num { font: 500 28px/1 var(--by-mono); color: var(--by-caramel); letter-spacing: .02em; }
.step h3 { margin-top: 18px; font-size: 22px; line-height: 1.35; }
.step p { margin-top: 10px; font-size: 16px; line-height: 1.7; color: var(--by-ash); }

.order-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 48px;
}
.order-foot > * { min-width: 0; }
.notice {
  flex: 1 1 360px;
  padding: 16px 22px;
  border: 2px solid var(--by-butter);
  border-left-width: 8px;
  border-radius: 4px;
  background: var(--by-paper);
  font-size: 16px;
}

/* ---------- 6. 카페 납품 ---------- */
.flour-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.flour { position: absolute; width: 240px; height: 180px; fill: var(--by-cream); }
.flour--tr { top: 24px; right: 8px; }
.flour--bl { bottom: 16px; left: 8px; }

.whole-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: center;
}
.whole-grid > * { min-width: 0; }
.whole-photo { grid-column: 1 / 5; }
.whole-photo .photo { aspect-ratio: 4 / 5; }
.whole-body { grid-column: 6 / 13; }
.whole-body .lead { color: rgba(246, 238, 221, .86); }

/* ---------- 7. 문의 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.contact-side { grid-column: 1 / 6; padding-right: 16px; }
.contact-form { grid-column: 6 / 13; }
.contact-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; }
.contact-btns > * { max-width: 100%; }

.form-card {
  padding: 36px;
  border: var(--line);
  border-radius: 4px;
  background: var(--by-paper);
  box-shadow: var(--shadow);
}
.form-title { margin-bottom: 24px; font-size: 24px; line-height: 1.35; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; line-height: 1.4; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: var(--line);
  border-radius: 4px;
  background: var(--by-cream);
  font-size: 16px;
  line-height: 1.4;
  transition: background-color .2s, border-color .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--by-ash); opacity: 1; }
.field input:hover,
.field select:hover,
.field textarea:hover { background: #FFFDF7; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; background: #FFFDF7; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232A1D14' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field textarea { min-height: 136px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.unit { position: relative; }
.unit input { padding-right: 52px; }
.unit span {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font: 500 14px/1 var(--by-mono);
  color: var(--by-ash);
  pointer-events: none;
}
.form-actions { display: flex; justify-content: flex-end; margin-top: 24px; }

.form-status {
  margin-top: 20px;
  padding: 22px 22px 24px;
  border: var(--line);
  border-radius: 4px;
  background: var(--by-butter);
  animation: status-in .35s var(--ease);
}
@keyframes status-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-status-title { font: 700 20px/1.4 var(--by-serif); }
.form-status p + p { margin-top: 6px; font-size: 16px; }
.form-status-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.form-status-btns > * { min-width: 0; }
.form-status .btn--outline { background: var(--by-paper); }
.form-status .btn--outline:hover { background: var(--by-ink); }

/* ---------- 8. 바닥글 ---------- */
.site-footer { position: relative; padding: 80px 0 40px; }
.foot-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
}
.foot-grid > * { min-width: 0; }
.foot-brand { grid-column: 1 / 7; }
.foot-links { grid-column: 7 / 10; }
.foot-nav { grid-column: 10 / 13; }
.site-footer .wordmark { font-size: 24px; }
.site-footer .wordmark span { text-decoration-color: var(--by-butter); }
.foot-line { margin-top: 14px; font-size: 15px; color: rgba(246, 238, 221, .78); }

.hygiene {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  max-width: 100%;
  margin-top: 28px;
  padding: 8px 22px 8px 20px;
  border: 1.5px solid var(--by-butter);
  border-radius: 999px;
}
.hygiene-label { font: 500 11px/1.3 var(--by-mono); letter-spacing: .14em; color: rgba(246, 238, 221, .85); }
.hygiene-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--by-butter);
  color: var(--by-walnut);
  font: 700 28px/1 var(--by-serif);
  flex: none;
}
.hygiene-word { font: 700 16px/1.2 var(--by-serif); color: var(--by-butter); }

.foot-links, .foot-nav ul { display: flex; flex-direction: column; gap: 4px; }
.foot-links a, .foot-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 15px;
  color: var(--by-cream);
  text-decoration: none;
}
.foot-links svg { width: 18px; height: 18px; color: var(--by-butter); flex: none; }
.foot-links a:hover, .foot-nav a:hover { color: var(--by-butter); text-decoration: underline; text-underline-offset: 4px; }

.foot-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 238, 221, .18);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(246, 238, 221, .7);
}
.foot-bottom > * { min-width: 0; }
.foot-credits a { color: var(--by-butter); text-underline-offset: 2px; }

/* ---------- 모바일 고정 바 ---------- */
.mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: var(--line);
  background: var(--by-cream);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.mbar.is-visible { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.mbar .btn { width: 100%; }
.menu-open .mbar { visibility: hidden; }

/* ---------- 나타나는 효과 (JS가 rv-on을 켤 때만) ---------- */
.rv-on [data-reveal] > * {
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--rv-i, 0) * 90ms);
}
.rv-on [data-reveal]:not(.is-in) > * { opacity: 0; transform: translateY(16px); }
.rv-on [data-reveal]:not(.is-in) > .sq { transform: translateY(16px) rotate(2deg); }
.rv-on [data-reveal]:not(.is-in) > .note { transform: translateY(16px) rotate(-1.5deg); }
.rv-on [data-reveal] .photo img { transition: clip-path 1s cubic-bezier(.6, 0, .2, 1) .15s; }
.rv-on [data-reveal]:not(.is-in) .photo img { clip-path: inset(100% 0 0 0); }

/* ---------- 900px 미만 ---------- */
@media (max-width: 899px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-in { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(46, 28, 16, .55) 0, rgba(46, 28, 16, 0) 150px),
      linear-gradient(90deg, rgba(46, 28, 16, .8) 0%, rgba(46, 28, 16, .6) 45%, rgba(46, 28, 16, 0) 72%);
  }
  .hero-copy { max-width: 560px; }

  .tart-grid, .deliv-grid, .whole-grid, .contact-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .tart-visual, .tart-body, .deliv-body, .deliv-note,
  .whole-photo, .whole-body, .contact-side, .contact-form { grid-column: 1 / -1; }

  .tart-visual { min-height: 0; display: flex; flex-direction: column; align-items: center; }
  .dial { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .dial-svg { width: 240px; }
  .tart-visual .dial-meta { max-width: 320px; }
  .sq {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 48px auto 0;
    transform: rotate(1deg);
  }
  .rv-on [data-reveal]:not(.is-in) > .sq { transform: translateY(16px) rotate(1deg); }
  .tart-body { padding-left: 0; margin-top: 56px; }

  .deliv-note { padding: 48px 0 8px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-left: 30px; position: relative; }
  .steps::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 24px;
    bottom: 24px;
    border-left: 1.5px dashed var(--by-ink);
  }
  .step:not(:last-child)::after { display: none; }
  .step::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 38px;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--by-ink);
    border-radius: 50%;
    background: var(--by-caramel);
  }

  .whole-photo { max-width: 420px; }
  .whole-body { margin-top: 48px; }

  .contact-side { padding-right: 0; }
  .contact-form { margin-top: 48px; }

  .foot-brand, .foot-links, .foot-nav { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-links { grid-column: 1 / 2; }
  .foot-nav { grid-column: 2 / 3; }
}

/* ---------- 720px 미만 ---------- */
@media (max-width: 719px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .lead { font-size: 16px; }

  .header-cta { display: none; }
  .mbar { display: block; }

  .hero { display: block; height: auto; min-height: 0; overflow: hidden; }
  .hero-media { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .hero-media img { object-position: 78% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(46, 28, 16, .6) 0, rgba(46, 28, 16, 0) 46%); }
  .hero-in { padding-top: 40px; padding-bottom: 64px; }
  .hero-wave { display: block; }
  .hero-lead { font-size: 16px; }
  .hero-cta { flex-direction: column; margin-top: 28px; }
  .hero-cta .btn { width: 100%; }
  .facts { gap: 12px 24px; margin-top: 36px; }

  .btn { width: 100%; padding: 0 20px; }
  .header-cta, .dial-toggle button { width: auto; }
  .contact-btns { align-items: stretch; }

  .specs > div { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }

  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip { padding: 6px 16px; }
  .note { transform: rotate(-1deg); padding: 40px 24px 30px; }
  .rv-on [data-reveal]:not(.is-in) > .note { transform: translateY(16px) rotate(-1deg); }
  .note-big { font-size: 23px; }

  .mood .photo { aspect-ratio: 4 / 3; }
  .share-card { width: auto; margin: 16px 0 0; padding: 26px 22px 28px; }

  .whole-photo { max-width: none; }
  .whole-photo .photo { max-height: 400px; }

  .form-card { padding: 26px 20px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
  .form-status-btns { flex-direction: column; }

  .order-foot > div { width: 100%; }
  .notice { flex-basis: auto; }

  .flour { width: 160px; height: 120px; }

  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot-links, .foot-nav { grid-column: 1 / -1; }
  .site-footer { padding-bottom: calc(40px + 80px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 380px) {
  .wordmark { font-size: 19px; }
  .menu-list a { font-size: 25px; }
}

/* ---------- 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn--kakao:hover { transform: none; }
}

/* 사진 판 고르기용 감싸개 (optimize_images.py): 배치에 끼지 않음 */
picture{display:contents}
