/* ---------------------------------------------------------------
   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 {
  /* Espresso machine brass panel palette */
  --brass-dark: #5A4010;
  --brass-light: #6B5010;
  --brass-shine: #8B6914;
  --copper: #B87333;
  --verdigris: #43A598;
  --mahogany: #4A2511;
  --enamel: #F5F3E8;

  --ink: #2C1810;
  --ink-muted: #6B4423;
  --bg: var(--brass-dark);
  --surface: var(--brass-light);
  --rule: var(--copper);
  --accent: var(--verdigris);
  --accent-ink: var(--enamel);

  --measure: 60ch;

  scrollbar-color: var(--copper) transparent;
  caret-color: var(--verdigris);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode: desaturated and lifted brass tones */
    --brass-dark: #3A3020;
    --brass-light: #4F4535;
    --brass-shine: #6B5D45;
    --copper: #5A4A3A;
    --verdigris: #6BBFB0;
    --mahogany: #2A1B10;
    --enamel: #E8E6DC;

    --ink: #E8E6DC;
    --ink-muted: #B8B0A0;
    --bg: var(--brass-dark);
    --surface: var(--brass-light);
    --rule: var(--copper);
    --accent: var(--verdigris);
    --accent-ink: #1A1510;

    scrollbar-color: var(--copper) transparent;
    caret-color: var(--verdigris);
    color-scheme: dark;
  }
}

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

/* Prevent any overflowing element from widening the document past the
   viewport. Without this a single oversized heading or image at a
   narrow viewport stretches the scroll width, which makes every
   paragraph on the page measure as flush to the viewport edge. */
html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  color: var(--enamel);
  background: var(--bg);
  background-image:
    linear-gradient(135deg,
      rgba(212, 175, 55, 0.1) 0%,
      rgba(139, 105, 20, 0.1) 100%);
}

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;
}

/* 44px is the smallest reliably tappable target. Anything the reader
   presses needs it; a link inside a paragraph does not, which is why
   this is not on `a`. */
button,
[role="button"],
summary,
input[type="checkbox"],
input[type="radio"] {
  min-height: 44px;
}

button {
  min-width: 44px;
}

/* A document is one column, so the only thing that reliably breaks it
   is content that cannot shrink: a wide table, a long URL, a code
   block. These make the narrow viewport survivable without needing a
   layout per breakpoint. */
img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

pre {
  overflow-x: auto;
}

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

@media (max-width: 480px) {
  body {
    /* Thumbs cover the edges; text should not start underneath them. */
    padding-inline: 1rem;
  }
}

/* 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;
  }
}

/* ---------------------------------------------------------------
   Espresso Machine Brass Panel Components
   --------------------------------------------------------------- */

/* Typography */
h1, h2, h3, .dial-label, .brass-label {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header - Group Head */
.brass-header {
  background: linear-gradient(180deg, var(--brass-light) 0%, var(--brass-dark) 100%);
  border-bottom: 4px solid var(--copper);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(212, 175, 55, 0.4);
  padding: 2rem 0;
}

.group-head {
  text-align: center;
}

.shop-name {
  font-size: clamp(3.5rem, 10vw, 7rem);
  margin: 0;
  color: var(--enamel);
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(212, 175, 55, 0.3);
  letter-spacing: 0.08em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.tagline {
  font-size: 1rem;
  margin: 0.5rem 0 0;
  color: var(--enamel);
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
}

/* Hero Dial */
.hero-panel {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--brass-dark) 0%, var(--brass-light) 50%, var(--brass-dark) 100%);
  border-bottom: 2px solid var(--copper);
}

.hero-dial {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-dial .dial-face {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brass-shine), var(--brass-light) 40%, var(--brass-dark));
  border: 8px solid var(--copper);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 -4px 8px rgba(212, 175, 55, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.dial-ring {
  text-align: center;
  margin: 0.5rem 0;
}

.dial-text {
  font-size: 1.5rem;
  color: var(--enamel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.dial-ring.inner .dial-text {
  font-size: 1.25rem;
}

.center-text {
  font-size: 1rem;
  opacity: 0.8;
}

/* Menu Panel */
.menu-panel {
  padding: 4rem 0;
  background: var(--brass-dark);
  border-bottom: 2px solid var(--copper);
}

.section-heading {
  text-align: center;
  font-size: 2.5rem;
  color: var(--enamel);
  margin: 0 0 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.menu-dial {
  position: relative;
}

.menu-dial .dial-face {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brass-light), var(--brass-dark));
  border: 6px solid var(--copper);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.3),
    inset 0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 -3px 6px rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.menu-dial:hover .dial-face {
  transform: translateY(-4px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 -3px 6px rgba(212, 175, 55, 0.2);
}

.menu-dial.featured .dial-face {
  border-color: var(--verdigris);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 -3px 6px rgba(212, 175, 55, 0.2);
}

.dial-label {
  font-size: 1.5rem;
  color: var(--enamel);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.dial-description {
  font-size: 0.875rem;
  color: var(--enamel);
  opacity: 0.9;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.dial-price {
  font-size: 2rem;
  color: var(--enamel);
  font-weight: 700;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}

/* Hours Gauge */
.hours-panel {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--brass-dark) 0%, var(--brass-light) 100%);
  border-bottom: 2px solid var(--copper);
}

.hours-gauge {
  max-width: 800px;
  margin: 0 auto;
}

.gauge-face {
  background: radial-gradient(circle at 30% 30%, var(--brass-light), var(--brass-dark));
  border: 6px solid var(--copper);
  border-radius: 16px;
  padding: 2rem;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 -4px 8px rgba(212, 175, 55, 0.3);
}

.gauge-scale {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gauge-marker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: rgba(245, 243, 232, 0.1);
  border-left: 1px solid var(--copper);
  border-radius: 4px;
  color: var(--enamel);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gauge-marker .time {
  color: var(--enamel);
  opacity: 0.9;
  font-weight: 400;
}

/* Contact Form */
.contact-panel {
  padding: 4rem 0;
  background: var(--brass-dark);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto 3rem;
}

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

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.brass-label {
  font-size: 0.875rem;
  color: var(--enamel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.brass-input {
  background: var(--enamel);
  border: 3px solid var(--copper);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--ink);
  font-family: inherit;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.brass-input:focus {
  outline: none;
  border-color: var(--verdigris);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(67, 165, 152, 0.2);
}

.brass-input::placeholder {
  color: var(--ink-muted);
  opacity: 0.6;
}

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

.mahogany-handle {
  background: linear-gradient(180deg, #6B3822 0%, var(--mahogany) 100%);
  border: 3px solid var(--copper);
  border-radius: 8px;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--enamel);
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  position: relative;
  overflow: hidden;
}

.mahogany-handle:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.mahogany-handle:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.handle-label {
  position: relative;
  z-index: 1;
}

/* Location */
.location {
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: center;
  padding: 2rem;
  background: rgba(245, 243, 232, 0.1);
  border: 2px solid var(--copper);
  border-radius: 8px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(212, 175, 55, 0.2);
}

.location-heading {
  font-size: 1.5rem;
  color: var(--enamel);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

address {
  font-style: normal;
  color: var(--enamel);
  line-height: 1.8;
}

address p {
  margin: 0.25rem 0;
}

/* Footer */
.brass-footer {
  background: linear-gradient(180deg, var(--brass-dark) 0%, #5D4A1F 100%);
  border-top: 3px solid var(--copper);
  padding: 2rem 0;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
}

.brass-footer p {
  text-align: center;
  color: var(--enamel);
  opacity: 0.8;
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

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

  .hero-dial .dial-face {
    width: 300px;
    height: 300px;
  }

  .dial-text {
    font-size: 1.125rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .section-heading {
    font-size: 2rem;
  }

  .gauge-marker {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .hero-dial .dial-face {
    width: 240px;
    height: 240px;
  }

  .dial-text {
    font-size: 1rem;
  }

  .dial-ring.inner .dial-text {
    font-size: 0.875rem;
  }
}
@media (max-width: 480px) {
  /* --impeccable-mobile-pad */
  body { padding-inline: max(1rem, 16px); }
  .container, [class*="container"], section, header, footer, nav, main, article {
    padding-inline: max(1rem, 16px);
  }
}
/* --impeccable-measure */
p, li, dt, dd, blockquote, figcaption, td, th { max-width: min(75ch, 100%); }
