/* Slowfold Coffee Roasters */
:root {
  --cream: #f3efe6;
  --cream-2: #e9e2d4;
  --white: #fbf9f4;
  --forest: #1d3a31;
  --forest-2: #284c41;
  --ink: #171a18;
  --text: #3f4541;
  --muted: #666c67;
  --line: #d9d2c3;
  --orange: #be4210;
  --orange-dark: #a3370c;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Fraunces", Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.7 var(--sans); color: var(--text); background: var(--cream); letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.035em; line-height: 1.25; font-weight: 700; }
.en { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 16px; }
.sample-note { background: var(--forest); color: #a9bdb4; font-size: 12.5px; text-align: center; padding: 7px 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px; font: 600 15px var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dark); }
.btn--forest { background: var(--forest); color: #fff; }
.btn--forest:hover { background: var(--forest-2); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(243,239,230,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 40px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -0.03em; }
.logo small { display: block; font-size: 9.5px; letter-spacing: .24em; color: var(--muted); font-weight: 600; margin-top: -2px; }
.gnb { display: flex; gap: 2px; margin-left: auto; }
.gnb a { padding: 10px 16px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 999px; }
.gnb a:hover { background: var(--cream-2); }
.gnb a[aria-current="page"] { background: var(--ink); color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
.menu-btn i { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] i:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: min(780px, calc(100svh - 106px)); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--forest); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(14,24,20,.85) 0%, rgba(14,24,20,.3) 55%, rgba(14,24,20,.1) 100%); }
.hero .wrap { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { color: #fff; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 9vw, 132px); line-height: .95; letter-spacing: -0.045em; }
.hero h1 em { font-style: italic; color: #f6c7a5; }
.hero__ko { margin-top: 26px; font-size: clamp(18px, 1.6vw, 21px); color: #e8e1d3; max-width: 26em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__card { flex: none; width: 300px; padding: 22px 24px; border-radius: 18px; background: rgba(251,249,244,.95); color: var(--text); }
.hero__card small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--orange); }
.hero__card b { display: block; margin-top: 6px; font-size: 20px; color: var(--ink); }
.hero__card p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.hero__card a { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--ink); }

/* page hero */
.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--orange); }
.page-hero h1 { margin-top: 14px; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 8vw, 112px); line-height: .95; letter-spacing: -0.045em; }
.page-hero p { margin-top: 20px; font-size: 18px; max-width: 36em; }

/* sections */
.sec { padding: clamp(72px, 10vw, 132px) 0; }
.sec--white { background: var(--white); }
.sec--forest { background: var(--forest); color: #c5d3cc; }
.sec--forest h2, .sec--forest h3 { color: #fff; }
.sec-head { max-width: 700px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--orange); margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 48px); }
.sec-head h2 .en { font-size: 1.12em; }
.sec-head p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.sec--forest .sec-head p { color: #a9bdb4; }
.sec--forest .kicker { color: #f2a47c; }
.more { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* beans */
.beans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bean { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.bean__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bean__dot { width: 52px; height: 52px; border-radius: 50%; background: var(--c, #c98b5a); box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); }
.bean__no { font-family: var(--display); font-size: 15px; color: var(--muted); }
.bean h3 { margin-top: 22px; font-size: 24px; }
.bean h3 .en { display: block; font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 2px; }
.bean__origin { margin-top: 12px; font-size: 14px; color: var(--muted); }
.notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.notes span { padding: 4px 12px; border-radius: 999px; background: var(--cream); font-size: 13px; font-weight: 600; color: var(--ink); }
.roast { margin-top: 20px; }
.roast__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 6px; }
.roast__bar i { height: 6px; border-radius: 3px; background: var(--cream-2); }
.roast__bar i.on { background: var(--ink); }
.roast small { font-size: 12px; color: var(--muted); font-weight: 600; }
.bean__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; }
.bean__price { font-size: 19px; font-weight: 800; color: var(--ink); }
.bean__price small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.bean__flag { position: absolute; top: -10px; right: 22px; padding: 4px 12px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; }

/* split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev .split__img { order: 2; }
.split__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; }
.split h2 { font-size: clamp(30px, 3.6vw, 46px); }
.split p { margin-top: 18px; font-size: 17px; }
.split .btn { margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-top: 1px solid var(--line); }
.facts div { padding-top: 16px; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font-family: var(--display); font-size: 32px; color: var(--ink); }
.sec--forest .facts { border-color: rgba(255,255,255,.18); }
.sec--forest .facts div + div { border-color: rgba(255,255,255,.18); }
.sec--forest .facts dd { color: #fff; }
.sec--forest .facts dt { color: #a9bdb4; }

/* gallery strip */
.strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.strip img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.strip img:first-child { aspect-ratio: auto; }

/* wholesale band */
.band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: clamp(36px, 5vw, 56px); border-radius: 28px; background: var(--orange); color: #fff2e8; }
.band h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.band p { margin-top: 8px; }
.band .btn { background: #fff; color: var(--ink); }

/* menu page */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.menu-col h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); font-size: 24px; }
.menu-col h2 .en { font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.menu-col li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu-col b { color: var(--ink); font-size: 17px; }
.menu-col .p { font-weight: 700; color: var(--ink); }
.menu-col small { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.menu-col .new { margin-left: 6px; font-size: 11px; font-weight: 800; color: var(--orange); vertical-align: 2px; letter-spacing: .06em; }
.menu-note { margin-top: 28px; font-size: 14px; color: var(--muted); }
.menu-photo { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.menu-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 20px; }

/* brew calculator */
.brew { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.brew__ctrl { display: grid; gap: 22px; }
.brew__ctrl > div > span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #a9bdb4; margin-bottom: 10px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-width: 64px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: transparent; color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--forest); }
.brew__card { background: var(--white); color: var(--text); border-radius: 24px; padding: clamp(24px, 3vw, 36px); }
.brew__card > small { font-size: 13px; color: var(--muted); font-weight: 600; }
.brew__nums { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brew__nums div { padding: 18px 0; }
.brew__nums div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.brew__nums dt { font-size: 13px; color: var(--muted); }
.brew__nums dd { font-family: var(--display); font-size: clamp(34px, 4vw, 48px); color: var(--ink); line-height: 1.1; }
.brew__nums dd small { font-family: var(--sans); font-size: 15px; margin-left: 2px; }
.brew__steps { counter-reset: b; }
.brew__steps li { counter-increment: b; position: relative; padding: 8px 0 8px 32px; font-size: 15px; }
.brew__steps li::before { content: counter(b); position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* subscription */
.subs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.subs article { padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); }
.subs article.pick { border: 2px solid var(--ink); }
.subs h3 { font-size: 20px; }
.subs p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.subs b { display: block; margin-top: 18px; font-size: 24px; color: var(--ink); }
.subs b small { font-size: 14px; font-weight: 500; color: var(--muted); }

/* visit */
.store { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.store__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.open-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); }
.open-pill i { width: 8px; height: 8px; border-radius: 50%; background: #999; }
.open-pill[data-state="open"] i { background: #2f9e5b; box-shadow: 0 0 0 4px rgba(47,158,91,.18); }
.open-pill[data-state="closed"] i { background: var(--orange); }
.store h2 { margin-top: 16px; font-size: clamp(28px, 3vw, 38px); }
.info-list { margin-top: 20px; }
.info-list div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-list dt { color: var(--muted); }
.info-list dd { color: var(--ink); }
.store__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.amen li { padding: 24px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.amen b { display: block; font-size: 17px; color: var(--ink); }
.amen span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #fff; }
.form input, .form select, .form textarea { min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font: inherit; }
.form select option { color: var(--ink); }
.form textarea { min-height: 110px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #8ea398; }
.form-msg { font-size: 14px; color: #f6c7a5; min-height: 1.4em; }

/* footer */
.footer { background: var(--ink); color: #8b918c; font-size: 14px; padding: 64px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo { color: #fff; }
.footer .logo small { color: #8b918c; }
.footer h3 { color: #fff; font-size: 14px; letter-spacing: .1em; margin-bottom: 12px; }
.footer li { padding: 3px 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__tag { margin-top: 16px; max-width: 24em; }
.footer__info { margin-top: 24px; line-height: 1.9; }
.footer__info span + span::before { content: "|"; margin: 0 10px; color: #3a3f3c; }

.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero .wrap { flex-direction: column; align-items: flex-start; }
  .beans, .subs { grid-template-columns: 1fr 1fr; }
  .beans .bean:last-child { grid-column: 1 / -1; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .amen { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .gnb { display: none; }
  .menu-btn { display: block; }
  .gnb.is-open { display: flex; flex-direction: column; gap: 4px; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; }
  .gnb.is-open a { padding: 14px 18px; font-size: 18px; }
  .split, .brew, .store { grid-template-columns: 1fr; }
  .split--rev .split__img { order: 0; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .header__in { height: 64px; }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 160px; }
  .hero__card { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .beans, .subs, .menu-grid, .amen { grid-template-columns: 1fr; }
  .beans .bean:last-child { grid-column: auto; }
  .menu-photo { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .facts div + div, .brew__nums div + div { padding-left: 12px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__info span { display: block; }
  .footer__info span + span::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
