/* ---------------------------------------------------------------
   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 {
  --ink: #2C1810;
  --ink-muted: #6B4E3D;
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --rule: #E5DDD2;
  --accent: #D4863D;
  --accent-ink: #FFFFFF;
  --accent-hover: #B8722F;
  --secondary-accent: #2D5F5D;
  --secondary-accent-ink: #FFFFFF;

  --measure: 60ch;

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

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F5EFE7;
    --ink-muted: #B8A89A;
    --bg: #1A1410;
    --surface: #251E18;
    --rule: #3D342B;
    --accent: #E09B5C;
    --accent-ink: #1A1410;
    --accent-hover: #F2AD72;
    --secondary-accent: #4A8885;
    --secondary-accent-ink: #1A1410;
  }
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, 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;
  line-height: 1.2;
  margin: 0;
}

::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;
  text-decoration-thickness: 1.5px;
}

a:hover {
  color: var(--accent-hover);
}

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

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

button {
  min-width: 44px;
}

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

/* ---------------------------------------------------------------
   Site structure
   --------------------------------------------------------------- */

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

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.primary-nav a:hover {
  color: var(--accent);
}

.primary-nav a:focus-visible {
  outline-offset: 8px;
}

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

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 36rem;
}

.hero-lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--secondary-accent);
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-body {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 2.5rem 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.brew-diagram {
  width: 100%;
  max-width: 280px;
  color: var(--ink);
}

.brew-diagram svg {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  min-height: 44px;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--rule);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:active {
  transform: translateY(1px);
}

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

.menu-section {
  background: var(--surface);
  padding: 5rem 2rem;
}

.section-header {
  max-width: 1400px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.03em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--ink-muted);
  margin: 0;
}

.menu-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem 2.5rem;
}

.menu-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--secondary-accent);
  letter-spacing: -0.02em;
}

.menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.item-name {
  font-weight: 600;
  font-size: 1.0625rem;
  flex: 1;
}

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

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

.menu-note {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 1.75rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--rule);
}

.menu-note p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.menu-note p + p {
  margin-top: 0.5rem;
}

.menu-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------
   Hours section
   --------------------------------------------------------------- */

.hours-section {
  padding: 5rem 2rem;
}

.hours-content {
  max-width: 1400px;
  margin: 0 auto;
}

.hours-intro {
  margin-bottom: 3rem;
}

.hours-intro h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  letter-spacing: -0.03em;
}

.hours-intro p {
  font-size: 1.25rem;
  color: var(--ink-muted);
  margin: 0;
  max-width: 42rem;
}

.hours-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 56rem;
}

.hours-block h3,
.location-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.25rem 0;
  color: var(--secondary-accent);
  letter-spacing: -0.01em;
}

.hours-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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

.hours-row dt {
  font-weight: 600;
}

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

address {
  font-style: normal;
}

address p {
  margin: 0 0 0.75rem 0;
  line-height: 1.7;
}

address a {
  font-weight: 600;
}

.parking-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

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

.contact-section {
  background: var(--surface);
  padding: 5rem 2rem;
}

.contact-content {
  max-width: 48rem;
  margin: 0 auto;
}

.contact-section .section-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.form-field input,
.form-field textarea {
  padding: 0.875rem 1rem;
  border: 2px solid var(--rule);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: var(--accent);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.form-actions {
  margin-top: 0.5rem;
}

.form-confirmation {
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 2.5rem;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.confirmation-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.confirmation-header h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--secondary-accent);
  letter-spacing: -0.02em;
}

.confirmation-header p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink-muted);
}

.confirmation-details dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
}

.confirmation-details dt {
  font-weight: 600;
  color: var(--ink);
  align-self: start;
}

.confirmation-details dd {
  margin: 0;
  color: var(--ink-muted);
  word-break: break-word;
}

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

.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 1rem;
  margin: 0 0 2rem 0;
  opacity: 0.8;
}

.footer-legal {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.6;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
    padding: 1rem;
  }

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

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

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

  .section-header h2,
  .hours-intro h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 600px) {
  .header-content {
    padding: 1rem;
  }

  .primary-nav {
    gap: 1.25rem;
  }

  .primary-nav a {
    font-size: 0.9375rem;
  }

  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .menu-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hours-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .contact-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

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

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

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

  .section-header h2,
  .hours-intro h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .menu-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hours-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .contact-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .menu-note {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}


/* ---------------------------------------------------------------
   Print
   --------------------------------------------------------------- */

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

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

  .hero {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }

  .menu-section,
  .hours-section,
  .contact-section {
    padding: 1.5rem 0;
    background: transparent;
  }

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

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="tel:"]:after {
    content: " (" attr(href) ")";
  }
}
