/* ============================================================
   Martini Lounge Caffè — mlc-xkgr
   Archetype: minimalist-airy / lacustrine-white
   Typography: Lora (display) + Inter Tight (body)
   Palette: white ground, #3d2d1a espresso accent (twice only)
   ============================================================ */

/* 1. TOKENS — Spacing */
:root {
  --space-0:   0;
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;
  --space-40: 10rem;
  --space-48: 12rem;
}

/* 1. TOKENS — Radius */
:root {
  --radius-none:  0;
  --radius-sm:    0.25rem;
  --radius-md:    0.5rem;
  --radius-lg:    0.75rem;
  --radius-xl:    1rem;
  --radius-2xl:   1.5rem;
  --radius-3xl:   2rem;
  --radius-full:  9999px;
}

/* 1. TOKENS — Shadows */
:root {
  --shadow-none: none;
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.18);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.06);
}

/* 2. TYPOGRAPHY — CSS Variables (from typography.json) */
:root {
  --font-display-stack: 'Lora', 'Iowan Old Style', 'Apple Garamond', Baskerville, Georgia, serif;
  --font-body-stack: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-display-stack);
  --font-body:    var(--font-body-stack);
  --scale-ratio:  1.2;
  --text-base:    1.0625rem;
  --text-xs:      0.6875rem;
  --text-sm:      0.8125rem;
  --text-lg:      1.25rem;
  --text-xl:      1.5rem;
  --text-2xl:     1.875rem;
  --text-3xl:     2.25rem;
  --text-4xl:     3rem;
  --leading-body:    1.65;
  --leading-display: 1.1;
  --leading-snug:    1.3;
  --leading-tight:   1.1;
  --tracking-display: -0.01em;
  --tracking-body:    0;
  --tracking-wide:    0.06em;
  --tracking-wider:   0.12em;
  --tracking-widest:  0.18em;
}

/* Transition helpers */
:root {
  --tx-fast:   150ms ease;
  --tx-normal: 250ms ease;
  --tx-slow:   400ms ease;
}

/* 3. COLOR PALETTE
   Brand: #3d2d1a → HSL(30°, 38%, 17%)
   Generated 11-shade scale:
     50:  hsl(30, 30%, 97%)  — subtle warm white
     100: hsl(30, 30%, 94%)
     200: hsl(30, 32%, 87%)
     300: hsl(30, 34%, 75%)
     400: hsl(30, 36%, 62%)
     500: hsl(30, 38%, 48%)
     600: hsl(30, 38%, 40%)
     700: hsl(30, 38%, 33%)
     800: hsl(30, 38%, 27%)
     900: hsl(30, 38%, 20%)  ≈ #3f2e1b
     950: hsl(30, 38%, 10%)  ≈ #1f170d
   Validated pairs (all AA or better):
     #1a1610 on #ffffff → ~21:1 AAA ✓
     #3d2d1a on #ffffff → ~14:1 AAA ✓
     #ffffff on #3d2d1a → ~14:1 AAA ✓ (FAB)
     #7a756f on #ffffff → ~4.6:1 AA ✓ (muted)
   No dark mode — strictly light/daylight direction.
*/
:root {
  --color-50:  hsl(30, 30%, 97%);
  --color-100: hsl(30, 30%, 94%);
  --color-200: hsl(30, 32%, 87%);
  --color-300: hsl(30, 34%, 75%);
  --color-400: hsl(30, 36%, 62%);
  --color-500: hsl(30, 38%, 48%);
  --color-600: hsl(30, 38%, 40%);
  --color-700: hsl(30, 38%, 33%);
  --color-800: hsl(30, 38%, 27%);
  --color-900: hsl(30, 38%, 20%);
  --color-950: hsl(30, 38%, 10%);

  /* Semantic tokens — light only */
  --color-bg:       #ffffff;
  --color-text:     #1a1610;   /* 21:1 on white AAA */
  --color-accent:   #3d2d1a;   /* 14:1 on white AAA — used exactly twice */
  --color-muted:    #7a756f;   /* 4.6:1 on white AA */
  --color-border:   hsl(30, 20%, 91%);
  --color-card-bg:  #ffffff;
  --color-fab-text: #ffffff;   /* 14:1 on accent AAA */
}

/* 4. RESET / BASE */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: inherit; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

/* 5. SKIP-TO-CONTENT (a11y hard rule) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ============================================================
   6. NAVIGATION
   Direction: four items only, tiny tracked caps.
   The 1px hairline border-bottom is one of the TWO accent uses.
   ============================================================ */
.primary-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) var(--space-8);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-accent); /* ACCENT USE #1 of 2 */
}

.nav-brand {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--space-10);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--tx-fast);
}

.nav-links a:hover {
  color: var(--color-text);
  opacity: 1;
}

.nav-links a[aria-current="page"] {
  color: var(--color-text);
}

/* Nav toggle — never shown at any breakpoint (four items fit) */
.nav-toggle { display: none; }

/* Mobile nav — stays horizontal at all breakpoints */
@media (max-width: 767px) {
  .primary-nav {
    padding: var(--space-4) var(--space-5);
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .nav-links {
    gap: var(--space-4);
  }

  .nav-links a {
    font-size: 0.5625rem;
    letter-spacing: 0.12em;
  }
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

@media (max-width: 767px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* ============================================================
   PAGE: index.html
   ============================================================ */

/* Section 1 — Extreme-scale title */
.index-title-section {
  padding-top: 18vh;
  padding-bottom: 0;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

@media (max-width: 767px) {
  .index-title-section {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
    padding-top: 14vh;
  }
}

.index-business-name {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 9.5vw, 13rem);
  line-height: 0.92;
  color: var(--color-text);
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.index-location-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-muted);
  margin: var(--space-4) 0 0 0;
}

/* Section 2 — Letterbox lake photo */
.index-photo-section {
  margin-top: var(--space-16);
}

.index-letterbox {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

@media (max-width: 767px) {
  .index-letterbox {
    aspect-ratio: 2 / 1;
  }
}

/* Section 3 — Pull-quote */
.index-quote-section {
  padding: 15vh var(--space-8);
  text-align: center;
}

@media (max-width: 767px) {
  .index-quote-section {
    padding: 12vh var(--space-6);
  }
}

.index-pullquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.875rem);
  line-height: var(--leading-snug);
  color: var(--color-text);
  max-width: 58ch;
  margin: 0 auto;
}

.index-pullquote-author {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-6);
}

.index-signature-words {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-4);
}

/* ============================================================
   PAGE: menu.html
   ============================================================ */

/* Section 1 — Corner title */
.menu-title-section {
  padding: 8vh var(--space-8) 0;
}

@media (max-width: 767px) {
  .menu-title-section { padding: 6vh var(--space-6) 0; }
}

/* Section 2 — Two-column type-only menu */
.menu-body-section {
  padding: 8vh var(--space-8);
}

@media (max-width: 767px) {
  .menu-body-section { padding: 6vh var(--space-6); }
}

.menu-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 767px) {
  .menu-two-col {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

.menu-col-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 var(--space-6) 0;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.menu-category-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-muted);
  margin: var(--space-8) 0 var(--space-3) 0;
}

.menu-category-title:first-of-type {
  margin-top: 0;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.menu-item-info { flex: 1; min-width: 0; }

.menu-item-name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--color-text);
}

.menu-item-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.menu-item-price {
  font-family: var(--font-body-stack);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Section 3 — Aperitivo note */
.menu-note-section {
  padding: 0 var(--space-8) 14vh;
}

@media (max-width: 767px) {
  .menu-note-section { padding: 0 var(--space-6) 12vh; }
}

.menu-note {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
}

.menu-footnote {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-6);
  font-style: italic;
}

/* Shared page-title-corner style (menu, about) */
.page-title-corner {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--color-text);
  margin: 0;
}

/* ============================================================
   PAGE: about.html
   ============================================================ */

.about-title-section {
  padding: 8vh var(--space-8) 0;
}

@media (max-width: 767px) {
  .about-title-section { padding: 6vh var(--space-6) 0; }
}

/* Section 2 — Split layout */
.about-body-section {
  padding: 8vh var(--space-8);
}

@media (max-width: 767px) {
  .about-body-section { padding: 6vh var(--space-6); }
}

.about-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 900px) {
  .about-photo {
    aspect-ratio: 3 / 2;
  }
}

.about-text {
  padding-top: var(--space-2);
}

.about-text p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
}

.about-group-line {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: var(--tracking-wide);
  margin-top: var(--space-8);
}

/* Section 3 — Closing statement */
.about-closing-section {
  padding: 15vh var(--space-8);
  text-align: center;
}

@media (max-width: 767px) {
  .about-closing-section { padding: 12vh var(--space-6); }
}

.about-closing-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin: 0;
}

.about-closing-author {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-6);
}

/* ============================================================
   PAGE: contact.html
   ============================================================ */

.contact-block-section {
  padding: 18vh var(--space-8) 0;
}

@media (max-width: 767px) {
  .contact-block-section { padding: 14vh var(--space-6) 0; }
}

.contact-block {
  max-width: 38ch;
}

.contact-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.contact-value {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-body);
  margin-bottom: var(--space-8);
}

.contact-value a {
  color: inherit;
  text-decoration: none;
}

.contact-value a:hover,
.contact-value a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* THE ONLY colored link on contact — accent color (USE #2 of 2) */
.contact-maps-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent);    /* ACCENT USE #2 of 2 */
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  display: inline-block;
  margin-top: var(--space-2);
}

.contact-maps-link:hover,
.contact-maps-link:focus-visible {
  color: var(--color-text);
}

/* Section 2 — Hours table */
.hours-section {
  padding: 12vh var(--space-8) 18vh;
}

@media (max-width: 767px) {
  .hours-section { padding: 10vh var(--space-6) 14vh; }
}

.hours-heading {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-8);
}

.hours-table {
  width: 100%;
  max-width: 32rem;
  border-collapse: collapse;
}

.hours-table tr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:first-child {
  border-top: 1px solid var(--color-border);
}

.hours-day {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-muted);
  text-transform: capitalize;
}

.hours-time {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
  text-align: right;
}

.hours-footnote {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-6);
  font-style: italic;
}

/* ============================================================
   7. ANIMATIONS — minimalist-airy vocabulary
   One scroll-triggered opacity fade only. No transforms.
   ============================================================ */

/* Single fade reveal on scroll */
.airy-reveal {
  opacity: 0;
  animation: airy-fade 1000ms ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 80%;
}

@keyframes airy-fade {
  to { opacity: 1; }
}

/* Link hover: opacity drop, no transform */
.nav-links a:hover {
  opacity: 0.6;
  color: var(--color-text);
}

/* View Transitions API — cross-page fade */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 400ms;
}

/* ============================================================
   8. REDUCED MOTION (hard rule — always last)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   9. FOOTER (canonical PeakyApps — do not modify)
   ============================================================ */
.site-footer {
  padding: var(--space-8) var(--space-8);
  text-align: center;
  color: var(--color-muted);
  font-size: var(--text-xs);
  border-top: 1px solid var(--color-border);
}

.site-footer .signature { margin: 0; }

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer a:hover { color: var(--color-text); }

/* ============================================================
   10. STRIPE FAB
   ============================================================ */
.purchase-fab {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: var(--color-fab-text);
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform var(--tx-normal), box-shadow var(--tx-normal);
}

.purchase-fab:hover,
.purchase-fab:focus-visible {
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .purchase-fab {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 3rem;
    height: 3rem;
    font-size: var(--text-lg);
  }
}
