/* 카멜로 커피랩 — 공통 틀. 색·서체는 _design/brand.json */
@font-face { font-family: "SUIT"; src: url("fonts/SUIT-Heavy.otf") format("opentype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Hahmlet"; src: url("fonts/Hahmlet.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }

:root {
  --paper: #FAFAF6; --paper-2: #EEF2E6; --ink: #171717; --ink-soft: #5D6259; --line: #DCE2D3;
  --accent: #2F6E2B; --copper: #D9474F; --leaf: #7CBF3D; --night: #141414;
  --serif: "Hahmlet", "Noto Serif KR", serif; --en: "Fraunces", "Hahmlet", serif;
  --eyebrow: "Inter", "Pretendard", sans-serif; --sans: "Pretendard", system-ui, sans-serif;
  --wrap: 1240px; --pad: 40px; --gap: 128px; --head: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.75 var(--sans); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: var(--gap) 0; }
.sec.tint { background: var(--paper-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; }

/* 글 모양 */
.eyebrow { font: 600 12px/1.4 var(--eyebrow); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px; }
.h1 { font: 500 clamp(44px, 6.4vw, 92px)/1.08 var(--serif); letter-spacing: -.02em; margin: 0; }
.h2 { font: 500 clamp(32px, 3.8vw, 52px)/1.2 var(--serif); letter-spacing: -.015em; margin: 0 0 20px; }
.h3 { font: 500 24px/1.35 var(--serif); margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 34em; margin: 0; }
.small { font-size: 14px; color: var(--ink-soft); }
.num { font-family: var(--en); font-feature-settings: "lnum", "tnum"; }

/* 단추 */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 99px; background: var(--ink); color: #fff; font: 500 15px/1 var(--sans); letter-spacing: .02em; border: 1px solid var(--ink); cursor: pointer; transition: background .25s, color .25s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.kakao { background: #FEE500; color: #191919; border-color: #FEE500; }
.btn.kakao:hover { background: #f2d800; border-color: #f2d800; color: #191919; }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--copper); color: #fff; border-color: var(--copper); }
.link { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link::after { content: "→"; transition: transform .25s; }
.link:hover::after { transform: translateX(4px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* 머리 */
.top { position: fixed; inset: 0 0 auto; height: var(--head); z-index: 50; transition: background .3s, box-shadow .3s; }
.top.stuck, .top.solid { background: rgba(250,250,246,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 30px; height: 14px; }
.logo b { font: 900 22px/1 "SUIT", var(--sans); letter-spacing: .04em; }
.logo small { display: block; font: 600 8.5px/1 var(--eyebrow); letter-spacing: .24em; color: var(--ink-soft); margin-top: 5px; }
.nav { display: flex; gap: 34px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.top.on-photo:not(.stuck) { color: #fff; }
.top.on-photo:not(.stuck) .logo small { color: rgba(255,255,255,.8); }
.top.on-photo:not(.stuck) .cart { border-color: #fff; }
.top.on-photo:not(.stuck) .nav a::after { background: #fff; }
.cart { font: 600 12px/1 var(--eyebrow); letter-spacing: .14em; border: 1px solid var(--ink); border-radius: 99px; padding: 9px 14px; }
.cart .n { display: inline-block; min-width: 1.2em; text-align: center; }
.menu-btn { display: none; background: none; border: 0; font: 600 12px/1 var(--eyebrow); letter-spacing: .2em; padding: 10px 0; cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--paper); padding: 24px 20px; display: flex; flex-direction: column; transform: translateY(-100%); transition: transform .45s cubic-bezier(.7,0,.2,1); visibility: hidden; }
.sheet.open { transform: none; visibility: visible; }
.sheet .row { display: flex; justify-content: space-between; align-items: center; }
.sheet nav { display: flex; flex-direction: column; gap: 6px; margin: 48px 0 auto; }
.sheet nav a { font: 500 40px/1.35 var(--serif); }
.sheet .hours { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
main { display: block; }
.page-pad { padding-top: var(--head); }

/* 하위 쪽 머리 */
.phead { padding: calc(var(--head) + 96px) 0 72px; border-bottom: 1px solid var(--line); }
.phead .h1 { margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chips a { border: 1px solid var(--line); border-radius: 99px; padding: 9px 18px; font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s; }
.chips a:hover { border-color: var(--ink); background: #fff; }
.photo-head { position: relative; min-height: 72vh; display: flex; align-items: flex-end; color: #fff; padding: calc(var(--head) + 80px) 0 80px; overflow: hidden; }
.photo-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,.25), rgba(20,14,10,.62)); z-index: 1; }
.photo-head .wrap { position: relative; z-index: 2; }
.photo-head .eyebrow, .photo-head .lead { color: rgba(255,255,255,.86); }

/* 사진 */
.ph { position: relative; overflow: hidden; background: var(--paper-2); border-radius: 4px; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
a:hover .ph img, .ph:hover img { transform: scale(1.03); }
.r45 { aspect-ratio: 4 / 5; } .r43 { aspect-ratio: 4 / 3; } .r32 { aspect-ratio: 3 / 2; } .r11 { aspect-ratio: 1; } .r169 { aspect-ratio: 16 / 9; }

/* 카드 줄 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card .h3 { margin-top: 20px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.card .h3 .num { font-size: 18px; font-weight: 400; color: var(--ink-soft); white-space: nowrap; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 52px; }
.sec-head .h2 { margin: 0; }

/* 반반 */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
.split.flip { grid-template-columns: 5fr 7fr; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; }
.ticks li::before { content: attr(data-n); font: 400 14px/1.8 var(--en); color: var(--copper); }

/* 띠 */
.band { position: relative; color: #fff; overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(22,16,12,.58); z-index: 1; }
.band .wrap { position: relative; z-index: 2; }
.band .eyebrow { color: rgba(255,255,255,.8); }
.band.dark { background: var(--night); }
.band.dark::before { display: none; }

/* 맛 표기 */
.notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.notes li { font-size: 13px; font-weight: 500; border: 1px solid currentColor; border-radius: 99px; padding: 4px 12px; opacity: .85; }
.roast { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.roast i { display: inline-flex; gap: 3px; }
.roast i b { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.roast i b.on { background: var(--accent); }

/* 원두 봉투 카드 — 흰 바탕 봉투 사진 위에 라벨 */
.bag { position: relative; overflow: hidden; background: #fff; border-radius: 4px; aspect-ratio: 4 / 5; }
.bag img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.label { position: absolute; left: 33.5%; top: 30%; width: 33%; aspect-ratio: 3 / 4; background: var(--lc, #f6efe4); color: var(--lt, var(--ink)); display: flex; flex-direction: column; justify-content: space-between; padding: 7% 6%; box-shadow: 0 1px 2px rgba(0,0,0,.18); transform: perspective(400px) rotateY(-4deg); container-type: inline-size; }
.label b { font: 600 13cqw/1.25 var(--serif); }
.label small { font: 600 6.4cqw/1.3 var(--eyebrow); letter-spacing: .14em; opacity: .8; }
.label svg { width: 60%; height: auto; }

/* 바닥 */
.foot { background: var(--night); color: #d8cfc6; padding: 96px 0 0; overflow: hidden; }
.foot .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot h4 { font: 600 11px/1 var(--eyebrow); letter-spacing: .22em; text-transform: uppercase; color: #fff; margin: 0 0 22px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot a:hover { color: #fff; }
.foot form { display: flex; border-bottom: 1px solid rgba(255,255,255,.4); margin-top: 14px; }
.foot input { flex: 1; min-width: 0; background: none; border: 0; padding: 10px 0; color: #fff; outline: none; }
.foot input::placeholder { color: rgba(255,255,255,.45); }
.foot form button { background: none; border: 0; color: #fff; font-weight: 600; cursor: pointer; }
.foot .demo { order: 9; font-size: 11.5px; line-height: 1.6; color: rgba(255,255,255,.42); padding: 18px 0 26px; margin: 0; border-top: 1px solid rgba(255,255,255,.1); }
.foot > .wrap { display: flex; flex-direction: column; }
.foot .mark { font: 500 clamp(56px, 13.5vw, 200px)/1 var(--en); letter-spacing: -.04em; color: rgba(255,255,255,.08); white-space: nowrap; margin: 8px 0 0; padding-bottom: 18px; user-select: none; }
.foot ul li { overflow-wrap: normal; }
.foot .mailto { white-space: nowrap; font-size: 14px; }

/* 견본 안내 창 */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(20,14,10,.45); display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal .box { background: var(--paper); border-radius: 8px; padding: 36px 32px 28px; max-width: 380px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal p { margin: 0 0 24px; }

/* 나타나기 */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* 폰 */
@media (max-width: 960px) {
  :root { --pad: 20px; --gap: 80px; --head: 60px; }
  body { font-size: 16px; }
  .nav, .top .cart { display: none; }
  .menu-btn { display: block; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .cards { grid-template-columns: 1fr; gap: 22px; }
  .cards .card { display: grid; grid-template-columns: 112px 1fr; gap: 0 16px; align-items: center; }
  .cards .card .ph { grid-row: span 2; aspect-ratio: 1; }
  .cards .card .h3 { margin: 0; font-size: 19px; flex-wrap: wrap; gap: 4px 12px; align-self: end; }
  .cards .card p { align-self: start; font-size: 14px; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .foot .cols > div:nth-child(3), .foot .cols > div:nth-child(4) { grid-column: 1 / -1; }
  .phead { padding: calc(var(--head) + 56px) 0 48px; }
  .photo-head { min-height: 64vh; padding-bottom: 48px; }
}
