/* Kahve Pınarı — ortak stiller */
:root {
  --cream: #f7f0e6;
  --paper: #fffaf3;
  --foam: #efe2cf;
  --crema: #c98a4b;
  --caramel: #a8642c;
  --roast: #5a3622;
  --espresso: #2a1a12;
  --ink: #2a1a12;
  --muted: #6f5848;
  --line: #e3d4c0;
  --radius: 18px;
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--caramel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--roast); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--espresso); }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--caramel); font-weight: 600; margin-bottom: .8rem; display: block; }
.skip { position: absolute; left: -999px; top: 0; background: var(--espresso); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 240, 230, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--espresso); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand svg { width: 34px; height: 34px; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--roast); text-decoration: none; font-size: .95rem; font-weight: 500; }
.menu a:hover { background: var(--foam); color: var(--espresso); }
.menu a[aria-current="page"] { background: var(--espresso); color: var(--paper); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--espresso); }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 0; padding: 8px 16px 18px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; border-radius: 12px; font-size: 1.05rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--caramel); font-weight: 500; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-art { position: relative; }
.hero-art .steam path { animation: steam 4s ease-in-out infinite; opacity: .0; }
.hero-art .steam path:nth-child(2) { animation-delay: 1.3s; }
.hero-art .steam path:nth-child(3) { animation-delay: 2.6s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(14px); }
  40% { opacity: .55; }
  100% { opacity: 0; transform: translateY(-22px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .steam path { animation: none; opacity: .4; }
  html { scroll-behavior: auto; }
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .98rem; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--espresso); color: var(--paper); }
.btn-dark:hover { background: var(--roast); color: var(--paper); }
.btn-ghost { border: 1.5px solid var(--roast); color: var(--roast); }
.btn-ghost:hover { background: var(--foam); color: var(--espresso); }

@media (max-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 340px; margin: 0 auto; order: -1; }
}

/* Sections */
section { padding: 88px 0; }
.section-dark { background: var(--espresso); color: #eadccb; }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark .eyebrow { color: var(--crema); }
.section-paper { background: var(--paper); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.philosophy { text-align: center; }
.philosophy blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3.1rem); line-height: 1.25;
  margin: 0 auto; max-width: 18em; color: var(--paper);
}
.philosophy .bean-row { display: flex; justify-content: center; gap: 14px; margin: 0 0 28px; color: var(--crema); }
.philosophy .bean-row svg { width: 22px; height: 22px; }

/* Coffee cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(42, 26, 18, .35); border-color: var(--crema); color: var(--ink); }
.card .cup { height: 150px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 18px; background: var(--cream); border-radius: 12px; padding: 16px; }
.card .cup svg { height: 100%; width: auto; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 1em; flex: 1; }
.card .more { font-weight: 600; font-size: .9rem; color: var(--caramel); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fact-list li { background: var(--cream); border-radius: 14px; padding: 18px 20px; border-left: 4px solid var(--crema); }
.fact-list strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--espresso); }
.fact-list span { color: var(--muted); font-size: .95rem; }

/* Timeline */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 40px; padding: 14px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--crema); box-shadow: 0 0 0 4px var(--paper); }
.timeline .when { font-family: var(--serif); font-weight: 600; color: var(--caramel); text-align: right; padding-top: 2px; }
.timeline .what { color: var(--ink); }
.timeline .what b { font-family: var(--serif); font-size: 1.08rem; display: block; color: var(--espresso); }
@media (max-width: 560px) {
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 32px; }
  .timeline li::before { left: 1px; }
  .timeline .when { text-align: left; }
}

/* Page head */
.page-head { padding: 64px 0 40px; }
.page-head .lead { font-size: 1.18rem; color: var(--muted); max-width: 40em; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Article */
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-bottom: 96px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: .92rem; }
.toc h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--espresso); }
.toc a.active { border-left-color: var(--caramel); color: var(--espresso); font-weight: 600; }
.prose { max-width: 700px; font-size: 1.08rem; }
.prose h2 { margin-top: 2.2em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.article-layout .prose > p:first-of-type::first-letter {
  font-family: var(--serif); float: left; font-size: 4.2em; line-height: .85; padding: 6px 10px 0 0; color: var(--caramel); font-weight: 600;
}
.pull {
  margin: 2em 0; padding: 26px 30px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4; color: var(--roast);
}
.pull small { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--muted); }
.word-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -0.2em 0 1.4em; padding: 0; list-style: none; }
.word-chips li { background: var(--foam); border-radius: 999px; padding: 4px 14px; font-size: .9rem; }
.word-chips b { font-weight: 600; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
}

/* Coffee detail page */
.coffee-hero { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: center; padding: 56px 0 72px; }
.coffee-hero .lead { font-size: 1.2rem; color: var(--muted); }
.cup-figure { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px 24px; }
.cup-figure svg { margin: 0 auto; height: 260px; width: auto; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 18px; font-size: .88rem; color: var(--muted); padding: 0; list-style: none; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 860px) {
  .coffee-hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 48px; }
  .cup-figure { max-width: 380px; width: 100%; margin: 0 auto; }
  .cup-figure svg { height: 220px; }
}
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 40px; }
.spec { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.spec .k { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.spec .v { font-family: var(--serif); font-size: 1.45rem; color: var(--espresso); line-height: 1.2; margin-top: 4px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 70px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--espresso); color: var(--paper); font-family: var(--serif); font-weight: 600; display: grid; place-items: center; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1em 0 2em; }
.compare > div { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.compare h3 { font-size: 1.15rem; }
.compare p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
.detail-body { padding-bottom: 80px; }
.detail-body .prose { margin: 0 auto; }

.next-coffees { padding: 64px 0 88px; background: var(--paper); border-top: 1px solid var(--line); }
.next-coffees .cards { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
@media (max-width: 860px) { .next-coffees .cards { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--espresso); color: #cdb9a5; padding: 56px 0 36px; font-size: .95rem; }
.site-footer a { color: #eadccb; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--crema); margin: 0 0 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .brand { color: var(--paper); margin-bottom: 12px; }
.foot-motto { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #eadccb; }
.copyright { border-top: 1px solid rgba(234, 220, 203, .15); margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font-family: var(--serif); font-size: clamp(5rem, 16vw, 9rem); color: var(--crema); line-height: 1; }
