/* Imrov Roast
   Layout concept: asymmetric hero (headline + roast log card), one full-width roast-scale strip as the bold element,
   then quiet rows and cards. Colours come from the roast scale itself, with a cobalt accent for actions. */
:root {
  --bg: #ECEFEA;
  --surface: #F8F9F6;
  --fg: #1D1B18;
  --muted: #5B574F;
  --line: #D1D6CD;
  --accent: #2B4CD1;
  --accent-fg: #FFFFFF;
  --roast-green: #7E8F4E;
  --roast-light: #C9A15C;
  --roast-medium: #8A5A33;
  --roast-dark: #3B2418;
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --scale: linear-gradient(90deg, var(--roast-green) 0%, var(--roast-light) 32%, var(--roast-medium) 64%, var(--roast-dark) 100%);
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110F;
    --surface: #1D1916;
    --fg: #EFEBE4;
    --muted: #A8A196;
    --line: #38322C;
    --accent: #9DB0FF;
    --accent-fg: #0F1535;
    --roast-dark: #4E3023;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14110F;
  --surface: #1D1916;
  --fg: #EFEBE4;
  --muted: #A8A196;
  --line: #38322C;
  --accent: #9DB0FF;
  --accent-fg: #0F1535;
  --roast-dark: #4E3023;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--font-body);
}
img { max-width: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 40px;
}
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--font-mono); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.7rem, 4.2vw, 2.8rem); line-height: 1.14; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.65rem); line-height: 1.25; }
h3 { font-size: 1.05rem; line-height: 1.3; }
p { margin: 0 0 1em; }

/* Header */
.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 1rem var(--font-display);
  letter-spacing: -.01em;
  color: var(--fg);
  text-decoration: none;
}
.dots { display: inline-flex; gap: 3px; }
.dots i { display: block; width: 7px; height: 7px; border-radius: 50%; }
.dots i:nth-child(1) { background: var(--roast-green); }
.dots i:nth-child(2) { background: var(--roast-light); }
.dots i:nth-child(3) { background: var(--roast-medium); }
.dots i:nth-child(4) { background: var(--roast-dark); box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-right: auto; }
.nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang button {
  padding: 7px 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 .8rem var(--font-mono);
  letter-spacing: .06em;
  cursor: pointer;
}
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-fg);
  font: 600 .95rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .88; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); opacity: 1; }
.btn.small { padding: 7px 12px; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: start;
  padding-block: 48px 44px;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font: 500 .76rem var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lead { max-width: 60ch; margin: 20px 0 28px; color: var(--muted); font-size: 1.0625rem; }

/* Roast log card */
.log {
  overflow: hidden;
  padding: 0 20px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font: 400 .875rem var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.log::before { content: ""; display: block; height: 6px; margin: 0 -20px 16px; background: var(--scale); }
.log h2 {
  margin-bottom: 8px;
  color: var(--muted);
  font: 500 .74rem var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.log dl { margin: 0; }
.log .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.log .row:last-child { border-bottom: 0; }
.log dt { color: var(--muted); }
.log dd { margin: 0; text-align: right; }

/* Sections */
.section { padding-block: 40px; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.page-head { padding-block: 44px 32px; }
.page-head .lead { margin-bottom: 0; }

/* Roast scale strip */
.scale-bar { height: 22px; border-radius: 3px; background: var(--scale); box-shadow: 0 0 0 1px var(--line); margin-top: 20px; }
.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font: 500 .72rem var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.scale-note { max-width: 60ch; margin: 16px 0 0; color: var(--muted); }

/* Text columns */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.grid3 h3 { margin-bottom: 10px; }
.grid3 p { margin: 0; color: var(--muted); }

/* Coffee lots */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--fg);
  font: 500 .85rem var(--font-body);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.lots { display: grid; gap: 16px; }
.lots.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lot {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.origin { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.specs div { min-width: 0; }
.specs dt { color: var(--muted); font: 500 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.specs dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.notes { margin: 0; font-size: .95rem; }
.roast-label {
  display: block;
  margin: 12px 0 10px;
  color: var(--muted);
  font: 500 .72rem var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bar { position: relative; height: 8px; border-radius: 2px; background: var(--scale); box-shadow: 0 0 0 1px var(--line); }
.bar i {
  position: absolute;
  left: var(--pos);
  top: -4px;
  bottom: -4px;
  width: 4px;
  margin-left: -2px;
  border-radius: 1px;
  background: var(--fg);
  box-shadow: 0 0 0 2px var(--surface);
}
.price { margin: 0; font: 500 1.05rem var(--font-mono); font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: .85rem; }
@media (min-width: 900px) {
  .lots.rows .lot {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
    align-items: center;
    gap: 28px;
  }
  .lots.rows .price { text-align: right; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.about-grid p { max-width: 62ch; }
.facts { display: grid; gap: 0; align-content: start; }
.fact { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.fact:first-child { padding-top: 0; }
.fact-v { font: 500 1.35rem var(--font-mono); font-variant-numeric: tabular-nums; }
.fact-l { color: var(--muted); font-size: .9rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; min-width: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 3px solid var(--roast-medium);
  color: var(--muted);
  font: 500 .8rem var(--font-mono);
  letter-spacing: .1em;
}
.steps li:nth-child(1)::before { border-top-color: var(--roast-green); }
.steps li:nth-child(2)::before { border-top-color: var(--roast-light); }
.steps li:nth-child(3)::before { border-top-color: var(--roast-medium); }
.steps li:nth-child(4)::before { border-top-color: var(--roast-dark); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 56px; }
.contact-grid h2 { margin-bottom: 12px; font-size: 1rem; }
.contact-grid > div > h2:not(:first-child) { margin-top: 32px; }
address { font-style: normal; }
.copyline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.copyline .mono { overflow-wrap: anywhere; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 400; text-align: left; }
.hours td { font-family: var(--font-mono); font-size: .9rem; text-align: right; }
.hours tr.today th, .hours tr.today td { color: var(--accent); font-weight: 600; }
.today-tag { font-size: .8rem; font-weight: 400; }

/* Footer */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
