/* ---------------------------------------------------------------
   Craft floor.

   Everything below is byte-identical in every page that gets it
   right, so it ships here rather than being re-typed from the
   rules each time. Replace the :root values with the page's own
   palette; do not delete the rules that consume them.
   --------------------------------------------------------------- */

:root {
  /* Coffee plant-inspired palette */
  --ink: #2A2A2A;
  --ink-muted: #6B6B6B;
  --bg: #FFFFFF;
  --surface: #E8DCC4;
  --rule: #E0E0E0;
  --accent: #C62828;
  --accent-ink: #FFFFFF;

  /* Additional semantic colors */
  --espresso: #1A1515;
  --cherry: #C62828;
  --leaf: #558B2F;
  --sand: #E8DCC4;

  --measure: 60ch;

  scrollbar-color: var(--rule) transparent;
  caret-color: var(--accent);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8DCC4;
    --ink-muted: #A89F88;
    --bg: #1A1515;
    --surface: #2A2020;
    --rule: #3D3535;
    --accent: #EF5350;
    --accent-ink: #1A1515;

    --espresso: #E8E9EC;
    --cherry: #EF5350;
    --leaf: #66BB6A;
    --sand: #2A2020;
  }
}

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

.num {
  font-variant-numeric: tabular-nums;
}

button,
[role="button"],
summary,
input[type="checkbox"],
input[type="radio"] {
  min-height: 48px;
}

button {
  min-width: 48px;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

pre {
  overflow-x: auto;
}

table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}


@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .contact-form,
  .site-footer {
    display: none;
  }

  .hero {
    page-break-after: always;
  }
}

/* ---------------------------------------------------------------
   Layout utilities
   --------------------------------------------------------------- */

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.container-narrow {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 2rem;
}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding-inline: 1.5rem;
  }
}

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

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--espresso);
  margin: 0;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: var(--cherry);
}

@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 1rem;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }
}

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

.hero {
  padding-block: 6rem;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--espresso);
  margin: 0 0 1.5rem 0;
}

.hero-intro {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 2rem 0;
  max-width: 42rem;
}

.origin-badge {
  background: var(--bg);
  padding: 2rem;
  border-left: 1px solid var(--cherry);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.badge-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.badge-origin {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--espresso);
  margin: 0 0 0.375rem 0;
  line-height: 1.2;
}

.badge-location {
  font-size: 1.125rem;
  color: var(--ink);
  margin: 0 0 1rem 0;
}

.badge-notes {
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-block: 4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-intro {
    font-size: 1.125rem;
  }
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--cherry);
  color: var(--accent-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.btn-secondary {
  background: var(--leaf);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(85, 139, 47, 0.3);
}

@media (prefers-color-scheme: dark) {
  .btn-secondary {
    color: #1A1515;
  }
}

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

.menu-section {
  padding-block: 6rem;
  background: linear-gradient(to bottom, var(--bg), var(--sand), var(--bg));
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--espresso);
  margin: 0 0 3rem 0;
}

.menu-category {
  margin-bottom: 4rem;
}

.menu-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--espresso);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cherry);
}

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

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.menu-item:last-child {
  border-bottom: none;
}

.item-info {
  flex: 1;
}

.item-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--espresso);
  margin: 0 0 0.25rem 0;
}

.item-description {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

.item-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cherry);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .menu-section {
    padding-block: 4rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .menu-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .item-price {
    align-self: flex-start;
  }
}

/* ---------------------------------------------------------------
   Hours and location section
   --------------------------------------------------------------- */

.hours-section {
  padding-block: 6rem;
  background: var(--bg);
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.hours-list {
  margin: 0;
  padding: 0;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  gap: 2rem;
}

.hours-row:last-child {
  border-bottom: none;
}

.day {
  font-weight: 600;
  color: var(--espresso);
  font-size: 1.125rem;
  margin: 0;
}

.time {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin: 0;
  text-align: right;
}

.location-info {
  font-style: normal;
  line-height: 1.8;
}

.address-line {
  margin: 0 0 0.5rem 0;
  color: var(--ink);
  font-size: 1.125rem;
}

.contact-link {
  color: var(--cherry);
  text-decoration: none;
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hours-section {
    padding-block: 4rem;
  }

  .hours-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

/* ---------------------------------------------------------------
   Contact section
   --------------------------------------------------------------- */

.contact-section {
  padding-block: 6rem;
  background: var(--sand);
}

.contact-intro {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 2.5rem 0;
  max-width: 42rem;
}

.contact-form {
  max-width: 42rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.18s ease;
  min-height: 48px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cherry);
}

.form-textarea {
  resize: vertical;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-section {
    padding-block: 4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

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

.site-footer {
  padding-block: 3rem;
  background: var(--espresso);
  color: #FFFFFF;
  text-align: center;
}

.footer-text {
  margin: 0 0 0.5rem 0;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.footer-text:last-child {
  margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    color: #1A1515;
  }
}
