/* ---------------------------------------------------------------
   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 {
  /* Seed-to-cup traceability map palette */
  --ink: #6B4423;
  --ink-muted: #8B7355;
  --bg: #F5F1E8;
  --surface: #EDE8DD;
  --rule: #D4C4B0;
  --accent: #C4653C;
  --accent-ink: #ffffff;
  --route: #D4A574;
  --terrain: #8B9D7C;

  /* Under 80 rendered characters. ch is the width of a 0 and most
     letters are narrower, so 75ch measures nearer 95. */
  --measure: 60ch;

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

p {
  text-wrap: pretty;
}

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

/* The surfaces you did not draw, which otherwise ship with browser
   defaults belonging to no design system. */
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

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

/* Put on any cell holding a figure, so columns of numbers line up. */
.num {
  font-variant-numeric: tabular-nums;
}

/* Motion only for readers who have not asked the OS to stop it. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

/* ---------------------------------------------------------------
   Page-specific styles
   --------------------------------------------------------------- */

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  text-align: center;
}

.shop-name {
  margin: 0 0 32px;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.journey-map {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 0 auto 48px;
  display: block;
}

.journey-map .origin-label {
  fill: var(--ink);
  font-size: 14px;
  font-style: italic;
  text-anchor: middle;
  font-weight: 500;
}

.journey-map .origin-coords {
  fill: var(--ink-muted);
  font-size: 10px;
  text-anchor: middle;
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
}

.journey-map .destination-label {
  fill: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-anchor: middle;
}

/* Waypoints Navigation */
.waypoints {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.waypoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 150ms ease-out, color 150ms ease-out;
}

.waypoint:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.waypoint-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.waypoint-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-heading {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
}

.section-intro {
  margin: 0 0 48px;
  font-size: 18px;
  color: var(--ink-muted);
  text-align: center;
}

/* Menu Section */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.menu-item {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.item-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.item-origin {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.origin-pin {
  flex-shrink: 0;
}

.item-description {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.item-price {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Hours & Location Section */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.location-block {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.block-heading {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.hours-list {
  margin: 0;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

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

.hours-row dt {
  font-weight: 500;
  color: var(--ink);
}

.hours-row dd {
  margin: 0;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.shop-address {
  margin: 0 0 16px;
  font-style: normal;
}

.address-line {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink);
}

.coordinates {
  margin: 8px 0 0;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  color: var(--ink-muted);
}

.parking-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* About Section */
.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-content p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--rule);
  border-radius: 4px;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 101, 60, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-ink);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background 150ms ease-out, transform 150ms ease-out;
}

.form-submit:hover {
  background: #B35930;
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 101, 60, 0.2);
}

/* Footer */
.footer {
  padding: 48px 24px 32px;
  text-align: center;
  border-top: 1px solid var(--rule);
}

.footer-text {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-coords {
  margin: 0;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  color: var(--ink-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .shop-name {
    font-size: 36px;
  }

  .section-heading {
    font-size: 28px;
  }

  .waypoints {
    gap: 32px;
  }

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

  .location-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hours-row {
    flex-direction: column;
    gap: 4px;
  }
}
