/* ==========================================================================
   Пар — кофейня и обжарка
   Светлая галерея: бумага, олива, терракота, Lora + Golos Text
   ========================================================================== */

:root {
  --paper: #f8f5ee;
  --paper-2: #efefe5;
  --paper-3: #e6e8dc;
  --ink: #20251f;
  --muted: #6f6a5f;
  --line: rgba(32, 37, 31, 0.16);
  --line-strong: rgba(32, 37, 31, 0.34);
  --olive: #5c6652;
  --olive-deep: #3f4838;
  --clay: #a4522b;
  --cream: #f6f1e7;
  --white: #fffdf8;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", "Trebuchet MS", sans-serif;
  --pad: clamp(20px, 3.4vw, 48px);
  --wrap: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(1100px 560px at 8% -10%, #fffaf1 0%, rgba(255, 250, 241, 0) 62%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.spa-loading {
  scroll-behavior: auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--olive);
  color: var(--paper);
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

main:focus {
  outline: none;
}

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

.section {
  padding-block: clamp(56px, 8vw, 110px);
}

.section--tight {
  padding-block: clamp(36px, 5vw, 64px);
}

#menu {
  scroll-margin-top: 0;
}

/* --- Typography ---------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--olive);
}

p {
  margin-top: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: none;
  background: var(--clay);
}

.kicker--light {
  color: #cfcabb;
}

.kicker--light::before {
  background: var(--cream);
}

.lead-text {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.62;
  color: var(--ink);
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

/* --- Buttons and links --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--olive-deep);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.btn-outline-light {
  border-color: rgba(246, 241, 231, 0.42);
  background: transparent;
  color: var(--cream);
}

.btn-outline-light:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn-small {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 9px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link:hover {
  color: var(--olive);
  border-color: var(--olive);
}

.text-link--light {
  color: var(--cream);
  border-color: rgba(246, 241, 231, 0.5);
}

.text-link--light:hover {
  color: var(--white);
  border-color: var(--white);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.arrow-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.arrow-link:hover {
  color: var(--olive);
  border-color: var(--olive);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--clay);
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(var(--wrap) + 2 * var(--pad)), 100%);
  min-height: 70px;
  margin-inline: auto;
  padding: 13px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
}

.brand-tail {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a {
  display: inline-block;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--olive);
  color: var(--olive);
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.header-phone {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.header-phone:hover {
  color: var(--olive);
}

.header-place {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.menu-toggle-lines span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 39;
  padding: 8px var(--pad) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(32, 37, 31, 0.08);
}

.nav-links--mobile {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.nav-links--mobile li {
  border-bottom: 1px solid var(--line);
}

.nav-links--mobile a {
  display: block;
  padding: 14px 0;
  border-bottom: 0;
}

.nav-links--mobile a.active {
  color: var(--olive);
}

.mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.mobile-contact a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: none;
}

.mobile-contact a:hover {
  color: var(--olive);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 2.2vw, 30px);
  width: min(calc(var(--wrap) + 2 * var(--pad)), 100%);
  min-height: calc(100dvh - 70px);
  margin-inline: auto;
  padding: clamp(22px, 3.6vh, 48px) var(--pad) 18px;
}

.hero-intro {
  grid-column: 1 / 8;
  min-width: 0;
}

.hero-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 6.2rem);
  line-height: 0.98;
}

.hero-aside {
  grid-column: 9 / 13;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 340px;
  padding-bottom: 6px;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-gallery {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: 1.08fr 0.84fr 1.08fr;
  gap: clamp(14px, 2vw, 28px);
  align-items: end;
  min-height: 0;
}

.hero-shot {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  min-width: 0;
}

.hero-shot img {
  width: 100%;
  height: clamp(260px, 47vh, 520px);
  object-fit: cover;
}

.hero-shot--main img {
  border-radius: var(--radius);
}

.hero-shot--cup {
  margin-bottom: clamp(16px, 3.6vh, 46px);
}

.hero-shot--cup img {
  border-radius: 999px 999px var(--radius) var(--radius);
}

.hero-shot--croissant img {
  border-radius: var(--radius);
}

.hero-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-foot {
  grid-column: 1 / 13;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-foot a:hover {
  color: var(--olive);
  border-color: var(--olive);
}

.hero-foot svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

/* --- Section heads and split layouts ------------------------------------ */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 64px);
  margin-bottom: clamp(24px, 4vw, 44px);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.03;
}

.section-note {
  max-width: 36ch;
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.story-media {
  margin: 0;
  min-width: 0;
}

.story-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-3);
}

.story-media--square img {
  aspect-ratio: 1;
}

.story-media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.03;
}

.story-copy p {
  max-width: 50ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.story-copy .lead-text {
  color: var(--ink);
}

.pull-quote {
  margin: 28px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--clay);
}

.pull-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-style: italic;
  line-height: 1.3;
  color: var(--olive);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(24px, 3.4vw, 48px);
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
}

.stat-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-copy .arrow-link {
  margin-top: 28px;
}

/* --- Menu ---------------------------------------------------------------- */

.section-menu {
  background: var(--paper-2);
}

.menu-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(28px, 4vw, 64px);
}

.menu-group {
  min-width: 0;
}

.menu-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.menu-group-head h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-group-head span {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
}

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.menu-row-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.menu-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
}

.menu-dots {
  flex: 1;
  min-width: 12px;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-5px);
}

.menu-price {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-desc {
  max-width: 34ch;
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(20px, 4vw, 36px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Gallery ------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper-3);
  text-align: left;
  cursor: zoom-in;
}

.gallery-item--a {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-item--b {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  aspect-ratio: 1;
}

.gallery-item--c {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
  aspect-ratio: 1;
}

.gallery-item--d {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  aspect-ratio: 1;
}

.gallery-item--e {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gallery-caption span:last-child {
  color: var(--muted);
}

/* --- Quote band ---------------------------------------------------------- */

.quote-band {
  padding-block: clamp(56px, 9vw, 120px);
  background: var(--olive-deep);
  color: var(--cream);
}

.quote {
  margin: 0;
  max-width: 980px;
}

.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.quote blockquote p {
  margin: 0;
}

.quote figcaption {
  margin-top: 28px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfcabb;
}

/* --- Visit --------------------------------------------------------------- */

.visit-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--olive-deep);
  color: var(--cream);
}

.visit-copy {
  padding: clamp(28px, 5vw, 64px);
}

.visit-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.02;
  color: var(--cream);
}

.visit-copy > p {
  max-width: 42ch;
  margin: 0;
  color: #d9d6c8;
  font-size: 14px;
  line-height: 1.7;
}

.visit-hours {
  display: grid;
  gap: 7px;
  margin: 26px 0;
  padding: 18px 0;
  border-top: 1px solid rgba(246, 241, 231, 0.24);
  border-bottom: 1px solid rgba(246, 241, 231, 0.24);
}

.visit-hours div,
.hours-list div,
.footer-hours dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.visit-hours dt,
.hours-list dt,
.footer-hours dt {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfcabb;
}

.visit-hours dd,
.hours-list dd,
.footer-hours dd {
  margin: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.visit-media {
  margin: 0;
  min-height: 100%;
}

.visit-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

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

.page-hero {
  padding-block: clamp(44px, 7vw, 90px) clamp(28px, 4vw, 50px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 5.8vw, 5.4rem);
  line-height: 0.99;
}

.page-lead {
  max-width: 58ch;
  margin: 24px 0 0;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--muted);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Values -------------------------------------------------------------- */

.section-values {
  background: var(--paper-2);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 5vw, 80px);
}

.value-card {
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}

.value-num {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--clay);
}

.value-card h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
}

.value-card p {
  max-width: 42ch;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* --- Roastery ------------------------------------------------------------ */

.origins {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.origins li {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.origin-country {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.origin-name {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
}

.origin-notes {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.roastery-note {
  margin: 16px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Timeline ------------------------------------------------------------ */

.section-timeline {
  background: var(--paper-2);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  position: relative;
  padding: 24px 20px 0 0;
  border-right: 1px solid var(--line);
}

.timeline-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

.timeline-year {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.timeline-item p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- CTA band ------------------------------------------------------------ */

.cta-band {
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--olive-deep);
  color: var(--cream);
}

.cta-band-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 1.02;
  color: var(--cream);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 6px;
}

/* --- Contacts ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact-block {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.contact-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.contact-block .kicker {
  margin-bottom: 10px;
}

.contact-block address {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-style: normal;
  line-height: 1.25;
}

.contact-block p {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.hours-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.hours-list dt {
  color: var(--muted);
}

.contact-link {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  margin-bottom: 4px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-link:hover {
  color: var(--clay);
  border-color: var(--clay);
}

.map-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.map-facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
}

.map-lines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, var(--line) 31px 32px);
  opacity: 0.55;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
}

.map-pin {
  position: relative;
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.5;
}

.map-address {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.25;
}

.map-facade .btn,
.map-facade .map-note {
  position: relative;
}

.map-note {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.map-consent {
  position: relative;
  max-width: 38ch;
  margin: 0;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 14px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.map-links a:hover {
  color: var(--olive);
  border-color: var(--olive);
}

.section-directions {
  background: var(--paper-2);
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.direction {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.direction-num {
  display: block;
  margin-bottom: 18px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--clay);
}

.direction h3 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.15;
}

.direction p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-photo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.contact-photo-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.03;
}

.contact-photo-copy p {
  max-width: 40ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.contact-photo-copy .arrow-link {
  margin-top: 26px;
}

.contact-photo {
  margin: 0;
}

.contact-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.contact-photo figcaption {
  padding-top: 10px;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer :focus-visible,
.visit-grid :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--cream);
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  padding-top: clamp(40px, 6vw, 72px);
  background: var(--ink);
  color: var(--cream);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 0.8fr;
  gap: clamp(24px, 4vw, 56px);
  width: min(calc(var(--wrap) + 2 * var(--pad)), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.brand--footer .brand-mark {
  color: var(--cream);
}

.brand--footer .brand-tail {
  color: #9f998c;
}

.footer-brand p {
  max-width: 34ch;
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #c9c4b8;
}

.footer-brand .footer-quote {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.35;
  color: var(--cream);
}

.footer-label {
  margin: 0 0 14px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9f998c;
}

.footer-nav ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  font-size: 12px;
  text-decoration: none;
  color: var(--cream);
}

.footer-nav a:hover {
  color: #d8a37e;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.6;
}

.footer-contacts address {
  margin-bottom: 2px;
  font-style: normal;
  color: var(--cream);
}

.footer-contacts a {
  color: var(--cream);
  text-decoration: none;
  width: fit-content;
}

.footer-contacts a:hover {
  color: #d8a37e;
}

.footer-contacts span {
  color: #9f998c;
}

.footer-hours dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.footer-hours dt {
  color: #9f998c;
}

.footer-hours dd {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: min(calc(var(--wrap) + 2 * var(--pad)), 100%);
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 16px var(--pad);
  border-top: 1px solid rgba(246, 241, 231, 0.16);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9f998c;
}

/* --- Lightbox ------------------------------------------------------------ */

.lightbox {
  display: none;
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: 92dvh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.lightbox[open] {
  display: block;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

.lightbox::backdrop {
  background: rgba(20, 24, 19, 0.8);
  backdrop-filter: blur(5px);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  max-height: 92dvh;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.lightbox-counter {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lightbox-close,
.lightbox-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  background: #161914;
}

.lightbox-figure img {
  width: 100%;
  height: auto;
  max-height: calc(92dvh - 150px);
  object-fit: contain;
  margin-inline: auto;
}

.lightbox-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 11px 16px;
  background: var(--paper);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lightbox-figure figcaption span:first-child {
  color: var(--ink);
}

.lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
}

.lightbox-hint {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Contact page extras ------------------------------------------------- */

.page-hero--contacts {
  background: var(--paper);
}

/* --- Motion -------------------------------------------------------------- */

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] {
    animation: lb-in 0.22s var(--ease);
  }

  .lightbox[open]::backdrop {
    animation: lb-fade 0.22s var(--ease);
  }

  .hero-intro,
  .hero-aside {
    animation: hero-rise 0.7s var(--ease) both;
  }

  .hero-aside {
    animation-delay: 0.08s;
  }
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
  .header-contact {
    display: none;
  }

  .site-nav {
    margin-left: 0;
  }
}

@media (max-width: 960px) {
  .site-nav,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    min-height: 64px;
  }

  .hero {
    grid-template-rows: auto auto auto;
    min-height: 0;
    padding-top: 20px;
  }

  .hero-intro,
  .hero-aside {
    grid-column: 1 / 13;
  }

  .hero-aside {
    justify-self: start;
    max-width: 100%;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .hero-shot--croissant {
    grid-column: 1 / 3;
  }

  .hero-shot img {
    height: clamp(220px, 36vh, 420px);
  }

  .hero-shot--croissant img {
    height: clamp(200px, 30vh, 360px);
  }

  .hero-shot--cup {
    margin-bottom: 0;
  }

  .hero-foot {
    justify-content: flex-start;
    gap: 10px 22px;
  }

  .split,
  .visit-grid,
  .contact-grid,
  .contact-photo-grid,
  .cta-band-inner {
    grid-template-columns: 1fr;
  }

  .visit-grid {
    display: grid;
  }

  .visit-media {
    order: -1;
  }

  .visit-media img {
    min-height: 280px;
  }

  .menu-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .menu-group:last-child {
    grid-column: 1 / 3;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding: 18px 0 18px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item:last-child {
    border-bottom: 0;
    padding-right: 0;
  }

  .timeline-item::before {
    top: 26px;
    left: 0;
  }

  .directions-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .direction {
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }

  .direction-num {
    margin-bottom: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    gap: 36px;
  }

  .map-card {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 700px) {
  .hero-foot a,
  .footer-nav a,
  .footer-contacts a,
  .map-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-nav a,
  .footer-contacts a {
    width: 100%;
  }

  .footer-nav ul,
  .footer-contacts {
    gap: 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-note {
    max-width: 44ch;
  }

  .menu-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .menu-group:last-child {
    grid-column: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item--a {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    aspect-ratio: 2 / 1;
  }

  .gallery-item--b {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .gallery-item--c {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .gallery-item--d {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .gallery-item--e {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-contacts {
    grid-column: 1 / 3;
  }

  .footer-brand {
    margin-bottom: 6px;
  }

  .lightbox-hint {
    display: none;
  }

  .lightbox-figure img {
    max-height: calc(92dvh - 138px);
  }
}

@media (max-width: 560px) {
  .brand-tail {
    display: none;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-intro h1 {
    font-size: clamp(2.6rem, 10vw, 3.8rem);
  }

  .hero-lead {
    font-size: 13.5px;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-shot,
  .hero-shot--croissant {
    grid-column: auto;
  }

  .hero-shot img,
  .hero-shot--croissant img {
    height: clamp(230px, 34vh, 340px);
  }

  .hero-shot--cup {
    margin-bottom: 0;
  }

  .hero-shot--cup img {
    border-radius: var(--radius);
  }

  .hero-foot {
    font-size: 8.5px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 4 / 3 !important;
  }

  .gallery-caption {
    left: 10px;
    bottom: 10px;
  }

  .page-hero h1 {
    font-size: clamp(2.7rem, 11vw, 3.8rem);
  }

  .origins li {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }

  .origin-notes {
    grid-column: 1 / 3;
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-contacts {
    grid-column: auto;
  }

  .footer-bottom {
    justify-content: flex-start;
  }

  .lightbox {
    width: calc(100vw - 16px);
  }

  .lightbox-toolbar,
  .lightbox-nav {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .text-link,
  .arrow-link,
  .nav-links a,
  .gallery-item img,
  .contact-link,
  .lightbox-close,
  .lightbox-nav button {
    transition: none;
  }

  .hero-intro,
  .hero-aside,
  .lightbox[open],
  .lightbox[open]::backdrop {
    animation: none;
  }

  .btn,
  .menu-toggle-lines span {
    transition: none;
  }

  .btn:hover,
  .gallery-item:hover img {
    transform: none;
  }
}
