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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Open Sans', Arial, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--background);
  background-image: url(../img/grain.svg);
  font-variant-numeric: tabular-nums lining-nums;
}

h1, h2, h3, h4 {
  font-family: 'Lora', 'PT Serif', Georgia, serif;
  color: var(--heading);
  margin: 0;
  font-variant-numeric: lining-nums;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 2rem;
}

p { margin: 0 0 1rem; max-width: 65ch; }

a { color: var(--primary-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--primary); }

:focus-visible {
  outline: 3px solid var(--on-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface-dark);
  color: var(--on-dark);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

.site-header {
  background-color: var(--background);
  background-image: url(../img/grain.svg);
  border-bottom: 1.5px solid var(--line);
  z-index: 50;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--heading);
  text-decoration: none;
}
.brand-icon { width: 1.6rem; height: 1.6rem; color: var(--primary); }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav a:hover { color: var(--primary-dark); border-bottom-color: var(--primary); }

@media (min-width: 700px) {
  .site-header { position: sticky; top: 0; }
  section[id] { scroll-margin-top: 4.5rem; }
}

.section { padding: clamp(4rem, 11vw, 7.5rem) 0; }

.section-roast {
  background-color: var(--surface-primary);
  background-image: url(../img/grain.svg);
  color: var(--on-dark);
}
.section-roast h2 { color: var(--heading-dark); }

.section-dark {
  background-color: var(--surface-dark);
  background-image: url(../img/grain.svg);
  color: var(--on-dark);
}
.section-dark h2, .section-dark h3 { color: var(--heading-dark); }
.section-dark a { color: var(--on-dark); }
.section-dark a:hover { color: var(--secondary); }
.section-dark :focus-visible, .site-footer :focus-visible, .section-roast :focus-visible {
  outline-color: var(--on-dark);
}

.hero { padding-top: clamp(3rem, 8vw, 6rem); }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.kicker, .group-title {
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker { color: var(--primary-dark); margin-bottom: 1rem; }

.lead { font-size: 1.3rem; margin-top: 1.5rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin: 2rem 0 1.5rem; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--on-primary); }

.btn-outline { background: transparent; color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline:hover { background: var(--primary-dark); color: var(--on-primary); }

.section-dark .btn-primary, .section-dark .btn-primary:hover { color: var(--on-primary); }
.btn-outline-light { background: transparent; color: var(--on-dark) !important; border-color: var(--secondary); }
.btn-outline-light:hover { background: var(--on-dark); color: var(--surface-dark) !important; border-color: var(--on-dark); }

.hero-phone { font-size: 1.2rem; }
.phone-link {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}

.hero-art { display: none; }
.stamp {
  width: min(18rem, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 2.5rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface-light);
  color: var(--line);
  box-shadow: 0 6px 18px rgba(59, 36, 24, 0.08);
  transform: rotate(-3deg);
}
.stamp svg { width: 100%; height: 100%; display: block; }

@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.6fr 1fr; }
  .hero-art { display: block; }
}

.about-grid { display: grid; gap: 2rem; align-items: center; }
.about-art { width: 5.5rem; color: var(--secondary); }
.about-art svg { width: 100%; display: block; }
.about-text p { font-size: 1.25rem; }
.about-text p:last-child { margin-bottom: 0; }

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 9rem 1fr; gap: 3.5rem; align-items: start; }
  .about-art { width: 8rem; }
}

.menu-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.menu-card {
  position: relative;
  background: var(--surface-light);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 14px rgba(59, 36, 24, 0.06);
}
@media (min-width: 560px) { .menu-card { padding: 2.5rem 2.25rem; } }

.group-title { color: var(--primary-dark); margin-bottom: 1.5rem; }

.menu-item + .menu-item { margin-top: 1.75rem; }
.menu-item p { margin-bottom: 0; }

.menu-name {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.menu-name::after {
  content: "";
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--secondary);
  margin-bottom: 0.3rem;
}

.menu-art {
  display: block;
  width: 4.5rem;
  margin: 2rem 0 0 auto;
  color: var(--secondary);
}

.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1.5px solid var(--secondary);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  background: rgba(251, 245, 234, 0.04);
}
.contact-card .group-title { color: var(--secondary); }
.contact-card p { color: var(--on-dark); }
.contact-card .btn { margin-top: auto; }
.contact-card p + .btn { margin-top: 0.5rem; }

.contact-big {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 700;
}
.contact-big a { text-decoration-color: var(--secondary); }

.hours {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.6rem;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  line-height: 1.1;
  color: var(--on-dark);
  margin-bottom: 1rem;
}
.hours .dash { color: var(--secondary); }

.contact-art {
  display: block;
  width: 4.5rem;
  margin: 2.5rem 0 0 auto;
  color: var(--secondary);
}

.site-footer {
  background-color: var(--surface-dark);
  background-image: url(../img/grain.svg);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(201, 165, 127, 0.35);
  padding: 2rem 0;
  font-size: 1rem;
}
.site-footer p { margin: 0 0 0.35rem; max-width: none; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--secondary); }
.footer-brand {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--on-dark);
}
