/* ---------------------------------------------------------------
   State Kiosk Socialist Print Aesthetic

   Three-ink system: black for all linework and text, burnt sienna
   for geometric marks and active states, cream recycled-paper ground.
   Geometric grotesque typography, ruled structure, tabular precision.
   --------------------------------------------------------------- */

:root {
  /* Three permitted inks on recycled paper stock */
  --ink: #1A1A1A;
  --ink-muted: #555555;
  --bg: #FFFFFF;
  --surface: #FEFDFB;
  --rule: #1A1A1A;
  --accent: #8B4513;
  --accent-ink: #FEFDFB;

  --measure: 60ch;

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Arial", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 600;
  margin: 0;
}

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

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

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.num {
  font-variant-numeric: tabular-nums;
}

button,
[role="button"],
summary,
input[type="checkbox"],
input[type="radio"] {
  min-height: 44px;
}

button {
  min-width: 44px;
}

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

pre {
  overflow-x: auto;
}

table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

section {
  border-top: 1px solid var(--rule);
  padding: 3rem 2rem;
}

section h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
  font-weight: 600;
}

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

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  border-top: none;
  background: var(--surface);
  position: relative;
}

.mark {
  width: 56px;
  height: 56px;
  margin-bottom: 2rem;
  position: relative;

  /* Geometric coffee bean: circle with curved line */
  background: var(--accent);
  border-radius: 50%;

  /* Off-register effect */
  box-shadow: 2px 1px 0 0 var(--accent);
}

.mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--accent-ink);
  transform: translateY(-50%) rotate(-15deg);
}

.shop-name {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.tagline {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.hours-brief {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.cta {
  display: inline-block;
  padding: 0.875rem 3rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--rule);

  /* Off-register effect */
  box-shadow: 2px 1px 0 0 var(--accent);

  transition: transform 0.15s ease-out;
}

.cta:hover {
  transform: translate(2px, 1px);
  box-shadow: none;
}

.cta:active {
  transform: translate(2px, 1px);
  box-shadow: none;
}

/* ---------------------------------------------------------------
   Menu - Kiosk Grid
   --------------------------------------------------------------- */

.menu {
  background: var(--surface);
}

.kiosk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

.product-cell {
  border: 1px solid var(--rule);
  padding: 1.5rem;
  background: var(--surface);
  margin: -1px 0 0 -1px;
}

.product-cell.featured {
  background: var(--accent);
  color: var(--accent-ink);

  /* Off-register effect */
  box-shadow: 2px 1px 0 0 var(--accent);
}

.product-cell.featured .product-name,
.product-cell.featured .product-desc,
.product-cell.featured .product-price {
  color: var(--accent-ink);
}

.product-name {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-desc {
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--ink-muted);
}

.product-cell.featured .product-desc {
  opacity: 0.9;
}

.product-price {
  font-size: 0.875rem;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------
   About Section
   --------------------------------------------------------------- */

.about {
  background: var(--bg);
}

.story-content {
  max-width: 42rem;
  margin: 0 auto;
}

.story-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------
   Location & Hours - Tabular Layout
   --------------------------------------------------------------- */

.location {
  background: var(--surface);
  position: relative;
}

.location-mark {
  width: 32px;
  height: 32px;
  margin: 0 auto 2rem;
  position: relative;

  /* Geometric location mark: circle */
  border: 1px solid var(--accent);
  border-radius: 50%;

  /* Off-register effect */
  box-shadow: 2px 1px 0 0 var(--accent);
}

.hours-table {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  border-collapse: collapse;
  display: table;
}

.hours-table tbody tr {
  border-top: 1px solid var(--rule);
}

.hours-table tbody tr:first-child {
  border-top: none;
}

.hours-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 1rem 2rem 1rem 0;
  width: 40%;
}

.hours-table td {
  text-align: left;
  font-size: 0.875rem;
  padding: 1rem 0;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------
   Contact Form
   --------------------------------------------------------------- */

.contact {
  background: var(--bg);
}

.contact-form {
  max-width: 36rem;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 2rem;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.5;
}

.submit-button {
  display: inline-block;
  padding: 0.875rem 3rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--rule);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;

  /* Off-register effect */
  box-shadow: 2px 1px 0 0 var(--accent);

  transition: transform 0.15s ease-out;
}

.submit-button:hover {
  transform: translate(2px, 1px);
  box-shadow: none;
}

.submit-button:active {
  transform: translate(2px, 1px);
  box-shadow: none;
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.footer {
  border-top: 1px solid var(--rule);
  padding: 2rem;
  text-align: center;
  background: var(--surface);
}

.footer p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------------------------------------------------------------
   Responsive Adjustments
   --------------------------------------------------------------- */

@media (max-width: 768px) {
  .shop-name {
    font-size: 2rem;
  }

  section {
    padding: 2rem 1.5rem;
  }

  .hero {
    min-height: 60vh;
    padding: 3rem 1.5rem;
  }

  .kiosk-grid {
    grid-template-columns: 1fr;
  }

  .hours-table th {
    width: 50%;
  }
}

@media (max-width: 480px) {
  body {
    padding-inline: 0;
  }

  .shop-name {
    font-size: 1.75rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .cta,
  .submit-button {
    padding: 0.875rem 2rem;
  }

  .hours-table th,
  .hours-table td {
    padding-right: 1rem;
  }
}

/* ---------------------------------------------------------------
   Motion (for users who haven't disabled it)
   --------------------------------------------------------------- */

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

/* ---------------------------------------------------------------
   Print Stylesheet
   --------------------------------------------------------------- */

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

  .hero {
    min-height: auto;
    page-break-after: avoid;
  }

  section {
    page-break-inside: avoid;
  }

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

  .mark,
  .location-mark {
    box-shadow: none;
  }

  a {
    text-decoration: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.875em;
  }
}
