/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #F4EBD9;
  background: #1A0F0A;
}

/* Typography scale */
.shop-name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #F4EBD9;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
  color: #E8B84D;
  margin-bottom: 3rem;
}

.section-head {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #E8B84D;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* Main ground with texture */
.poster-ground {
  min-height: 100vh;
  background: linear-gradient(135deg, #2D1810 0%, #1A0F0A 100%);
  background-attachment: fixed;
  position: relative;
}

.poster-ground::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(244, 235, 217, 0.03) 2px, rgba(244, 235, 217, 0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(244, 235, 217, 0.03) 2px, rgba(244, 235, 217, 0.03) 4px);
  pointer-events: none;
  opacity: 0.4;
}

/* Header */
.site-header {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  position: relative;
  z-index: 10;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #C85A3C;
  text-transform: uppercase;
}

/* Hero composition - asymmetric poster layout */
.hero-composition {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 6vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  min-height: 90vh;
  position: relative;
  z-index: 1;
}

.illustration-zone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coffee-cup-illustration {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.message-zone {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Featured menu */
.featured-menu {
  background: rgba(61, 36, 22, 0.4);
  padding: 2rem;
  border-left: 4px solid #C85A3C;
  margin-top: 2rem;
}

.menu-label {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #C85A3C;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.menu-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-highlights li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.125rem;
  line-height: 1.4;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(244, 235, 217, 0.15);
}

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

.item-name {
  font-weight: 600;
  color: #F4EBD9;
}

.item-price {
  font-weight: 700;
  color: #E8B84D;
  font-variant-numeric: tabular-nums;
}

/* Hours and location */
.hours-location {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  background: rgba(45, 24, 16, 0.5);
  position: relative;
  z-index: 1;
}

.info-column {
  display: flex;
  flex-direction: column;
}

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

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

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

.hours-row dd {
  color: #E8B84D;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

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

.location-details p {
  margin-bottom: 0.75rem;
  color: #F4EBD9;
}

.phone-number {
  font-weight: 600;
  color: #C85A3C;
  font-variant-numeric: tabular-nums;
}

/* About story */
.about-story {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.story-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #F4EBD9;
}

.story-content p {
  max-width: 65ch;
}

/* Contact section */
.contact-section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  background: rgba(61, 36, 22, 0.3);
  position: relative;
  z-index: 1;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-weight: 600;
  font-size: 1rem;
  color: #E8B84D;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: #F4EBD9;
  background: rgba(26, 15, 10, 0.8);
  border: 2px solid rgba(232, 184, 77, 0.3);
  border-radius: 0;
  transition: border-color 0.2s ease-out;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #E8B84D;
  background: rgba(26, 15, 10, 0.95);
}

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

.submit-button {
  padding: 1rem 2.5rem;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1A0F0A;
  background: #E8B84D;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease-out;
  align-self: flex-start;
}

.submit-button:hover {
  background: #C85A3C;
  color: #F4EBD9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 184, 77, 0.3);
}

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

.submit-button:focus {
  outline: 3px solid #C85A3C;
  outline-offset: 3px;
}

/* Footer */
.site-footer {
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  border-top: 1px solid rgba(232, 184, 77, 0.2);
  position: relative;
  z-index: 1;
}

.social-links {
  display: flex;
  gap: 2rem;
}

.social-links a {
  font-weight: 600;
  color: #E8B84D;
  text-decoration: none;
  transition: color 0.2s ease-out;
  position: relative;
}

.social-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #C85A3C;
  transform: scaleX(0);
  transition: transform 0.2s ease-out;
}

.social-links a:hover {
  color: #C85A3C;
}

.social-links a:hover::after {
  transform: scaleX(1);
}

.social-links a:focus {
  outline: 2px solid #C85A3C;
  outline-offset: 4px;
}

.footer-note {
  font-size: 0.875rem;
  color: rgba(244, 235, 217, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-composition {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .illustration-zone {
    order: -1;
  }

  .coffee-cup-illustration {
    max-width: 300px;
  }

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

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

  .social-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Light mode preference */
@media (prefers-color-scheme: light) {
  body {
    background: #F4EBD9;
    color: #2D1810;
  }

  .poster-ground {
    background: linear-gradient(135deg, #F4EBD9 0%, #E8DCC4 100%);
  }

  .poster-ground::before {
    background-image:
      repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(45, 24, 16, 0.02) 2px, rgba(45, 24, 16, 0.02) 4px),
      repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(45, 24, 16, 0.02) 2px, rgba(45, 24, 16, 0.02) 4px);
  }

  .shop-name {
    color: #2D1810;
  }

  .tagline {
    color: #5C3A24;
  }

  .section-head {
    color: #3D2416;
  }

  .wordmark {
    color: #C85A3C;
  }

  .featured-menu {
    background: rgba(232, 184, 77, 0.15);
    border-left-color: #C85A3C;
  }

  .menu-label {
    color: #3D2416;
  }

  .menu-highlights li {
    border-bottom-color: rgba(45, 24, 16, 0.15);
  }

  .item-name {
    color: #2D1810;
  }

  .item-price {
    color: #5C3A24;
  }

  .hours-location {
    background: rgba(232, 184, 77, 0.1);
  }

  .hours-row dt,
  .location-details p {
    color: #2D1810;
  }

  .hours-row dd {
    color: #5C3A24;
  }

  .phone-number {
    color: #C85A3C;
  }

  .story-content {
    color: #2D1810;
  }

  .contact-section {
    background: rgba(232, 184, 77, 0.08);
  }

  .form-group label {
    color: #3D2416;
  }

  .form-group input,
  .form-group textarea {
    color: #2D1810;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(61, 36, 22, 0.2);
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: #5C3A24;
    background: rgba(255, 255, 255, 0.95);
  }

  .submit-button {
    background: #C85A3C;
    color: #F4EBD9;
  }

  .submit-button:hover {
    background: #3D2416;
    color: #F4EBD9;
  }

  .site-footer {
    border-top-color: rgba(61, 36, 22, 0.2);
  }

  .social-links a {
    color: #5C3A24;
  }

  .social-links a:hover {
    color: #C85A3C;
  }

  .footer-note {
    color: rgba(45, 24, 16, 0.6);
  }
}

/* Custom selection color */
::selection {
  background: #C85A3C;
  color: #F4EBD9;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1A0F0A;
}

::-webkit-scrollbar-thumb {
  background: #5C3A24;
  border: 2px solid #1A0F0A;
}

::-webkit-scrollbar-thumb:hover {
  background: #C85A3C;
}

@media (prefers-color-scheme: light) {
  ::-webkit-scrollbar-track {
    background: #F4EBD9;
  }

  ::-webkit-scrollbar-thumb {
    background: #C85A3C;
    border-color: #F4EBD9;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #5C3A24;
  }
}

/* Focus visible */
:focus-visible {
  outline: 3px solid #E8B84D;
  outline-offset: 3px;
}

/* Print styles */
@media print {
  .poster-ground::before {
    display: none;
  }

  .hero-composition {
    break-inside: avoid;
    min-height: auto;
  }

  .contact-form,
  .social-links {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .shop-name,
  .section-head,
  .item-name,
  .hours-row dt,
  .location-details p {
    color: #2D1810;
  }

  .tagline,
  .menu-label,
  .item-price,
  .hours-row dd {
    color: #5C3A24;
  }

  .phone-number {
    color: #C85A3C;
  }
}
