/* ---------------------------------------------------------------
   Indie Coffee - Artisan Coffee Shop Landing Page

   Visual World: Artisan Pottery & Morning Light
   Palette derived from coffee, ceramics, and warm morning light
   --------------------------------------------------------------- */

:root {
  /* Color Palette - Coffee & Pottery */
  --cream: #F8F9FA;
  --espresso: #2D1B0E;
  --terracotta: #8B4019;
  --latte: #EDE5D8;
  --brown: #5C3D2E;

  /* Semantic mappings */
  --ink: var(--espresso);
  --ink-muted: var(--brown);
  --bg: var(--cream);
  --surface: var(--latte);
  --rule: var(--brown);
  --accent: var(--terracotta);
  --accent-ink: var(--cream);

  /* Typography */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Measure */
  --measure: 60ch;

  /* Browser theming */
  scrollbar-color: var(--rule) transparent;
  caret-color: var(--accent);
  color-scheme: light;
}

/* Dark mode - warm, café-at-night palette */
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1A1410;
    --espresso: #F5EFE6;
    --terracotta: #E89B6D;
    --latte: #2D2419;
    --brown: #C8B5A0;

    --ink: var(--espresso);
    --ink-muted: var(--brown);
    --bg: var(--cream);
    --surface: var(--latte);
    --rule: var(--brown);
    --accent: var(--terracotta);
    --accent-ink: var(--cream);

    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------
   Base & Reset
   --------------------------------------------------------------- */

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  text-wrap: pretty;
  margin: 0 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: bold;
  text-wrap: balance;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

address {
  font-style: normal;
}

/* ---------------------------------------------------------------
   Browser Surfaces
   --------------------------------------------------------------- */

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

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

button,
[role="button"],
input,
textarea {
  min-height: 44px;
}

button {
  min-width: 44px;
}

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

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

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

@media (max-width: 768px) {
  .container {
    padding: 0 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;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  margin: 0;
}

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

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

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

@media (max-width: 640px) {
  .main-nav {
    gap: 1.25rem;
  }

  .main-nav a {
    font-size: 0.95rem;
  }
}

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

.hero {
  padding: 5rem 0;
  background: var(--bg);
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--ink);
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

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

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(45, 27, 14, 0.15);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 107, 60, 0.3);
}

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

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

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

/* ---------------------------------------------------------------
   Menu Section
   --------------------------------------------------------------- */

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

.section-title {
  text-align: center;
  color: var(--ink);
  margin: 0 0 1rem;
}

.section-intro {
  text-align: center;
  color: var(--ink-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.menu-category h3 {
  color: var(--accent);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.menu-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(92, 61, 46, 0.2);
}

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

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

.item-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.125rem;
}

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

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

@media (max-width: 640px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ---------------------------------------------------------------
   Hours Section
   --------------------------------------------------------------- */

.hours-section {
  padding: 5rem 0;
  background: var(--bg);
}

.hours-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.hours-intro {
  color: var(--ink-muted);
  margin: 0 0 2rem;
}

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

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(92, 61, 46, 0.2);
}

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

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

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

.location-info h3 {
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.location-info p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.location-info a {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .hours-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ---------------------------------------------------------------
   Contact Section
   --------------------------------------------------------------- */

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

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

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

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

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

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid rgba(92, 61, 46, 0.3);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease;
}

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

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

.submit-button {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(45, 27, 14, 0.15);
  font-family: var(--font-body);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 107, 60, 0.3);
}

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

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

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

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

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------
   Motion
   --------------------------------------------------------------- */

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

  .menu-item {
    transition: transform 0.2s ease;
  }

  .menu-item:hover {
    transform: translateX(4px);
  }
}

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

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .site-header,
  .cta-button,
  .contact-form,
  .submit-button {
    display: none;
  }

  .hero,
  .menu-section,
  .hours-section {
    padding: 1rem 0;
    background: #fff;
  }

  .section-title {
    font-size: 18pt;
    margin-bottom: 0.5rem;
    page-break-after: avoid;
  }

  .menu-category {
    page-break-inside: avoid;
  }

  .menu-category h3 {
    color: #000;
    border-color: #000;
  }

  .item-price {
    color: #000;
  }

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

  a[href^="tel:"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
  }
}
@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%); }
