/* ===============================================================
   Futurist Bolted Book - Indie Coffee Shop Landing
   =============================================================== */

:root {
  /* Light Mode - Industrial Aluminum */
  --ground: #E8EAE6;
  --ink: #161514;
  --ink-muted: #44433B;
  --surface: #E0E2DE;
  --rule: #716D65;
  --accent: #BF1B1A;
  --accent-ink: #E8EAE6;

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

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAE8D8;
    --ink-muted: #C1B69C;
    --ground: #1A1816;
    --surface: #252320;
    --rule: #44433B;
    --accent: #C31D1C;
    --accent-ink: #1A1816;
  }
}

/* ===============================================================
   Reset & Foundation
   =============================================================== */

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: Impact, 'Arial Black', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}

/* Browser surfaces */
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

a {
  color: var(--ink);
  text-decoration: none;
}

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

/* ===============================================================
   Aluminum Bolts - Fixed Position Rivets
   =============================================================== */

.bolt {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  object-fit: contain;
}

.bolt-top-left {
  top: 0;
  left: 0;
  width: clamp(144px, 20vw, 288px);
  height: auto;
}

.bolt-top-right {
  top: 0;
  right: 0;
  width: clamp(179px, 30vw, 432px);
  height: auto;
}

.bolt-bottom-right {
  bottom: 0;
  right: 0;
  width: clamp(144px, 20vw, 288px);
  height: auto;
}

/* ===============================================================
   Navigation - Horizontal Bar
   =============================================================== */

.main-nav {
  position: fixed;
  top: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  z-index: 100;
}

.main-nav a {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--ink);
  letter-spacing: 0.15em;
  transition: color 0.15s ease-out;
}

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

.nav-separator {
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* ===============================================================
   Hero Section - Explosive Diagonal Typography
   =============================================================== */

.hero {
  position: relative;
  min-height: 35vh;
  padding: clamp(2rem, 8vw, 4rem) clamp(1rem, 5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 5;
  overflow: hidden;
}

.shop-name {
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.9;
  margin: 0;
  transform: rotate(35deg);
  transform-origin: left center;
  position: relative;
  letter-spacing: 0.05em;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.tagline {
  font-size: clamp(1.25rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  transform: rotate(-18deg);
  transform-origin: left center;
  position: relative;
  left: 30%;
  top: -2rem;
  letter-spacing: 0.05em;
  margin: 0;
  color: var(--ink);
  display: block;
}

/* ===============================================================
   Menu - Typographic Forest with Percussive Collision
   =============================================================== */

.menu {
  position: relative;
  min-height: clamp(50vh, 60vh, 70vh);
  padding: clamp(2rem, 4vw, 4rem);
  z-index: 1;
}

.menu-grid {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.menu-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.item-name {
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: block;
}

.item-price {
  font-size: clamp(1.125rem, 2vw, 1.75rem);
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  display: block;
}

/* Menu items at unique angles - creating typographic collision */
.menu-item-1 {
  left: 10%;
  top: 0%;
  transform: rotate(-22deg);
  z-index: 6;
}

.menu-item-2 {
  left: 30%;
  top: 5%;
  transform: rotate(28deg);
  z-index: 5;
}

.menu-item-3 {
  left: 50%;
  top: 15%;
  transform: rotate(-15deg);
  z-index: 4;
}

.menu-item-4 {
  left: 15%;
  top: 38%;
  transform: rotate(35deg);
  z-index: 3;
}

.menu-item-5 {
  left: 50%;
  top: 50%;
  transform: rotate(-25deg);
  z-index: 2;
}

.menu-item-6 {
  left: 60%;
  top: 55%;
  transform: rotate(18deg);
  z-index: 1;
}

/* ===============================================================
   Hours Block - Rotated +25°
   =============================================================== */

.hours-block {
  position: relative;
  min-height: 20vh;
  padding: clamp(2rem, 4vw, 4rem);
  transform: rotate(25deg);
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

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

.hours-weekday,
.hours-weekend {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0.1em;
  display: block;
}

/* ===============================================================
   Location Block - Rotated
   =============================================================== */

.location-block {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transform: rotate(-12deg);
  z-index: 10;
}

.location-text {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--ink);
  letter-spacing: 0.12em;
  display: block;
}

/* ===============================================================
   Contact Section - CTA and Form
   =============================================================== */

.contact {
  position: relative;
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  z-index: 10;
}

/* Primary CTA - Mechanical Red, Rotated -8° */
.cta-button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 3px solid var(--ink);
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(2rem, 6vw, 4rem);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-family: inherit;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  transform: rotate(-8deg);
  transition: all 0.15s ease-out;
  min-height: 44px;
}

.cta-button:hover {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 6px 6px 0 var(--ink);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  gap: 1.5rem;
}

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

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

.form-group-full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1.25rem;
  padding: 1rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.submit-button {
  background: var(--ink);
  color: var(--ground);
  border: 2px solid var(--ink);
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.15s ease-out;
  text-transform: uppercase;
  min-height: 44px;
  width: fit-content;
  align-self: center;
}

.submit-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ===============================================================
   Responsive Adjustments
   =============================================================== */

@media (max-width: 768px) {
  .shop-name {
    transform: rotate(25deg);
    font-size: clamp(3rem, 15vw, 8rem);
  }

  .tagline {
    transform: rotate(-15deg);
    left: 20%;
    font-size: clamp(1rem, 4vw, 2rem);
  }

  .menu {
    min-height: 80vh;
  }

  .menu-item-1 {
    left: 5%;
    top: 0%;
    z-index: 6;
  }

  .menu-item-2 {
    left: 10%;
    top: 12%;
    z-index: 5;
  }

  .menu-item-3 {
    left: 5%;
    top: 25%;
    z-index: 4;
  }

  .menu-item-4 {
    left: 15%;
    top: 38%;
    z-index: 3;
  }

  .menu-item-5 {
    left: 10%;
    top: 51%;
    z-index: 2;
  }

  .menu-item-6 {
    left: 5%;
    top: 64%;
    z-index: 1;
  }

  .hours-block {
    transform: rotate(20deg);
  }

  .location-block {
    transform: rotate(-8deg);
  }

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

/* ===============================================================
   Motion Grammar
   =============================================================== */

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

  .cta-button,
  .submit-button,
  .main-nav a {
    transition: all 0.15s ease-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===============================================================
   Print Stylesheet
   =============================================================== */

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

  /* Remove rotations for legible printing */
  * {
    transform: none !important;
  }

  .bolt,
  .contact-form {
    display: none;
  }

  .menu {
    display: block;
  }

  .menu-item {
    position: static !important;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .hours-block,
  .location-block {
    transform: none;
  }
}
@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%); }
