/* ---------------------------------------------------------------
   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 {
  /* Zine aesthetic palette */
  --ink: #0A0A0A;
  --ink-muted: #666666;
  --bg: #F8F8F0;
  --surface: #FFFFFF;
  --rule: #0A0A0A;
  --accent: #0066FF;
  --accent-ink: #FFFFFF;

  --measure: 60ch;

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, 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;
}

/* The surfaces you did not draw, which otherwise ship with browser
   defaults belonging to no design system. */
::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;
}

/* Put on any cell holding a figure, so columns of numbers line up. */
.num {
  font-variant-numeric: tabular-nums;
}

/* Motion only for readers who have not asked the OS to stop it. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

/* ---------------------------------------------------------------
   Indie Coffee Shop — Zine Aesthetic
   --------------------------------------------------------------- */

/* Typewriter mono font stack */
@supports (font-variation-settings: normal) {
  body {
    font-family: ui-monospace, "Courier New", "Courier", monospace;
  }
}

/* Paper grain texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

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

/* Hero Section */
.hero {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-container {
  position: relative;
}

.hero-header {
  margin-bottom: 3rem;
}

.shop-name {
  font-size: clamp(48px, 8vw, 72px);
  font-family: Impact, "Franklin Gothic Bold", "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  position: relative;
}

/* Photocopy grain texture on heading */
.shop-name::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, transparent 0%, rgba(0,0,0,.05) 100%),
    radial-gradient(circle at 80% 80%, transparent 0%, rgba(0,0,0,.03) 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.tagline {
  font-size: 18px;
  font-family: ui-monospace, "Courier New", monospace;
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
}

.hero-photo {
  position: relative;
  max-width: 600px;
  background: #FFFFFF;
  padding: 8px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.photo-tape {
  position: absolute;
  width: 60px;
  height: 24px;
  background: rgba(255, 255, 200, 0.3);
  border: 1px solid rgba(0,0,0,0.1);
  z-index: 10;
}

.tape-tl {
  top: -8px;
  left: 40px;
  transform: rotate(-5deg);
}

.tape-tr {
  top: -8px;
  right: 40px;
  transform: rotate(5deg);
}

.coffee-illustration {
  display: block;
  width: 100%;
  height: auto;
}

.menu-highlights {
  align-self: start;
}

.highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlight-list li {
  font-size: 28px;
  font-weight: 900;
  font-family: ui-monospace, "Courier New", monospace;
  text-transform: uppercase;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bullet {
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
}

.hours-stamp {
  margin-bottom: 2rem;
  display: inline-block;
}

.stamp-border {
  border: 3px solid var(--ink);
  padding: 1rem 1.5rem;
  display: inline-block;
  transform: rotate(-2deg);
}

.hours-text {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 1rem 2.5rem;
  font-size: 18px;
  font-weight: 900;
  font-family: Impact, "Franklin Gothic Bold", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.05em;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.cta-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.cta-button:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

/* Section Styles */
section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-rule {
  height: 3px;
  background: var(--ink);
  margin-bottom: 2rem;
  position: relative;
}

.section-rule::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
}

.section-heading {
  font-size: clamp(32px, 5vw, 48px);
  font-family: Impact, "Franklin Gothic Bold", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 2rem 0;
  letter-spacing: -0.01em;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.about-column p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Menu Section */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.menu-category {
  border: 2px solid var(--ink);
  padding: 1.5rem;
  background: var(--surface);
}

.category-name {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
  letter-spacing: 0.05em;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  font-size: 14px;
  gap: 0.5rem;
}

.item-name {
  flex-shrink: 0;
}

.item-dots {
  flex-grow: 1;
  border-bottom: 1px dotted var(--ink-muted);
  height: 1em;
  margin: 0 0.25rem;
}

.item-price {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Hours & Location */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.info-block {
  border: 3px solid var(--ink);
  padding: 1.5rem;
  background: var(--surface);
}

.info-heading {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  letter-spacing: 0.05em;
}

.info-content p {
  margin: 0.5rem 0;
  font-size: 16px;
  line-height: 1.5;
}

.info-link {
  margin-top: 1rem !important;
}

.info-link a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

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

/* Contact Form */
.form-container {
  max-width: 600px;
}

.form-intro {
  margin-bottom: 2rem;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.form-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 14px;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

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

.form-submit {
  background: var(--ink);
  color: var(--bg);
  padding: 1rem 2rem;
  font-size: 16px;
  font-weight: 900;
  font-family: Impact, "Franklin Gothic Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform 150ms ease-out, background 150ms ease-out;
}

.form-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.form-submit:active {
  transform: scale(0.98);
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 2rem;
  margin-top: 3rem;
}

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

.footer-text {
  margin: 0.5rem 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .menu-highlights {
    margin-top: 2rem;
  }

  .highlight-list li {
    font-size: 24px;
  }

  section {
    padding: 2rem 1rem;
  }

  .menu-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .cta-button {
    display: block;
    text-align: center;
  }
}

@media print {
  body::before {
    display: none;
  }

  .cta-button,
  .contact {
    display: none;
  }

  .hero-photo {
    box-shadow: none;
  }

  .photo-tape {
    display: none;
  }
}
