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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #F4EBD9;
  background-color: #2D1810;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Paper texture overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(0deg, transparent 48%, rgba(244, 235, 217, 0.02) 50%, transparent 52%),
    linear-gradient(90deg, transparent 48%, rgba(244, 235, 217, 0.02) 50%, transparent 52%);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 1;
}

main {
  position: relative;
  z-index: 2;
}

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

  body::before {
    background-image:
      linear-gradient(0deg, transparent 48%, rgba(61, 36, 22, 0.02) 50%, transparent 52%),
      linear-gradient(90deg, transparent 48%, rgba(61, 36, 22, 0.02) 50%, transparent 52%);
  }
}

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

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

/* Typography */
h1, h2, h3 {
  margin: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #E8B84D;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #E8B84D;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #E8B84D;
  margin-bottom: 1.5rem;
}

@media (prefers-color-scheme: light) {
  h1, h2, h3 {
    color: #3D2416;
  }
}

/* Links */
a {
  color: #E8B84D;
  text-decoration: none;
  position: relative;
  transition: color 0.15s ease-out;
}

a:hover {
  color: #C85A3C;
}

a:not(.cta-button):not(.submit-button)::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-out;
}

a:not(.cta-button):not(.submit-button):hover::after {
  transform: scaleX(1);
}

@media (prefers-color-scheme: light) {
  a {
    color: #5C3A24;
  }

  a:hover {
    color: #C85A3C;
  }
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: 100vh;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 5vw, 6rem);
  background-color: rgba(61, 36, 22, 0.4);
}

@media (prefers-color-scheme: light) {
  .hero {
    background-color: transparent;
  }
}

.hero-illustration svg {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-message {
  max-width: 600px;
}

.tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: #F4EBD9;
  margin: 1.5rem 0 2rem;
  line-height: 1.4;
}

@media (prefers-color-scheme: light) {
  .tagline {
    color: #5C3A24;
  }
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: #E8B84D;
  color: #2D1810;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

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

.cta-button::after {
  display: none;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-illustration {
    order: -1;
  }

  .hero-illustration svg {
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-message {
    margin: 0 auto;
  }
}

/* Menu Section */
.menu {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 6rem);
  background-color: #1A0F0A;
}

@media (prefers-color-scheme: light) {
  .menu {
    background-color: #F4EBD9;
  }
}

.menu h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(3rem, 6vw, 6rem);
  max-width: 1200px;
  margin: 0 auto;
}

.menu-category {
  /* no card styling, flat poster approach */
}

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

.menu-item {
  border-bottom: 1px solid rgba(244, 235, 217, 0.2);
  padding-bottom: 1rem;
}

@media (prefers-color-scheme: light) {
  .menu-item {
    border-bottom-color: rgba(61, 36, 22, 0.2);
  }
}

.menu-item.featured {
  border-left: 4px solid #C85A3C;
  padding-left: 1rem;
  background-color: rgba(200, 90, 60, 0.05);
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.menu-item dt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.item-name {
  flex: 1;
}

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

@media (prefers-color-scheme: light) {
  .item-price {
    color: #C85A3C;
  }
}

.menu-item dd {
  margin: 0;
  font-size: 1rem;
  color: rgba(244, 235, 217, 0.8);
  line-height: 1.5;
}

@media (prefers-color-scheme: light) {
  .menu-item dd {
    color: rgba(61, 36, 22, 0.7);
  }
}

/* Info Section */
.info {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 6rem);
  background-color: rgba(61, 36, 22, 0.3);
}

@media (prefers-color-scheme: light) {
  .info {
    background-color: rgba(92, 58, 36, 0.1);
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: clamp(3rem, 6vw, 6rem);
  max-width: 1000px;
  margin: 0 auto;
}

.hours-card h2,
.location-card h2 {
  margin-bottom: 2rem;
}

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

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(244, 235, 217, 0.2);
}

@media (prefers-color-scheme: light) {
  .hours-row {
    border-bottom-color: rgba(61, 36, 22, 0.2);
  }
}

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

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

@media (prefers-color-scheme: light) {
  .hours-row dd {
    color: #C85A3C;
  }
}

address {
  font-style: normal;
  line-height: 1.8;
}

address p {
  margin: 0.5rem 0;
}

/* Contact Section */
.contact {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 6rem);
  background-color: #2D1810;
}

@media (prefers-color-scheme: light) {
  .contact {
    background-color: #F4EBD9;
  }
}

.contact h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

@media (prefers-color-scheme: light) {
  .form-group label {
    color: #3D2416;
  }
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: #F4EBD9;
  background-color: #1A0F0A;
  border: 2px solid #5C3A24;
  transition: border-color 0.15s ease-out;
}

@media (prefers-color-scheme: light) {
  .form-group input,
  .form-group textarea {
    color: #3D2416;
    background-color: #FFFFFF;
    border-color: #C85A3C;
  }
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #E8B84D;
  outline: none;
}

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

.submit-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: #E8B84D;
  color: #2D1810;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease-out;
  width: 100%;
  margin-top: 1rem;
}

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

/* Footer */
.footer {
  padding: clamp(3rem, 6vw, 4rem) clamp(1.5rem, 5vw, 6rem);
  background-color: #1A0F0A;
  text-align: center;
}

@media (prefers-color-scheme: light) {
  .footer {
    background-color: rgba(92, 58, 36, 0.1);
  }
}

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

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #E8B84D;
  margin-bottom: 1.5rem;
}

@media (prefers-color-scheme: light) {
  .footer-brand {
    color: #3D2416;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

@media (prefers-color-scheme: light) {
  .footer-note {
    color: rgba(61, 36, 22, 0.6);
  }
}

/* Print Stylesheet */
@media print {
  body::before {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }

  .hero {
    page-break-inside: avoid;
    background-color: transparent;
  }

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

  .menu,
  .info,
  .contact,
  .footer {
    background-color: white;
  }

  h1, h2, h3,
  .item-price,
  .hours-row dd,
  .footer-brand {
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
