/*
 * Little Fern Coffee (showcase site)
 * Copyright (c) 2026 Miloš Milinkov. All rights reserved.
 * Proprietary and confidential. Use, copying, modification or distribution
 * without written permission is prohibited. See the LICENSE file.
 */

:root {
  --paper: #ecefe3;
  --paper-2: #e2e7d6;
  --ink: #2a1e17;
  --ink-soft: #5a4a3f;
  --fern: #33503d;
  --board: #22362a;
  --chalk: #eef0e6;
  --chalk-soft: #b9c4b3;
  --marigold: #e8a33d;
  --blush: #f4cdbb;
  --porcelain: #fbfaf5;
  --crema: #8a5530;
  --wood: #7a5236;
  --sage-deep: #d9dfca;
  --park: #c5d2b0;
  --river: #a9c6c0;
  --road: #fbfaf5;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 28px;
  --radius-sm: 10px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

/* Demo notice */
.demo-bar {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
  padding: 9px var(--gutter);
}
.demo-bar a { color: var(--marigold); font-weight: 600; text-underline-offset: 3px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-mark { width: 40px; height: 40px; flex: none; }

.site-header ul { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 30px); }
.site-header nav a {
  text-decoration: none;
  font-weight: 500;
  padding-block: 6px;
}
.site-header nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-header .nav-cta {
  background: var(--fern);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: 999px;
}
.site-header .nav-cta:hover { background: var(--board); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2.5px solid var(--ink);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--fern); border-color: var(--fern); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--porcelain); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-top: clamp(16px, 4vw, 48px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  font-weight: 750;
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  max-width: 11ch;
  text-wrap: balance;
}
.lede {
  margin-top: 28px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
}
.status {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  background: var(--porcelain);
  border: 2px solid var(--paper-2);
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
}
.status .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--chalk-soft);
  box-shadow: 0 0 0 4px rgba(51, 80, 61, 0.12);
}
.status.is-open .dot { background: #3f9a57; box-shadow: 0 0 0 4px rgba(63, 154, 87, 0.18); }
.status.is-closed .dot { background: var(--marigold); box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.2); }

.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { justify-self: center; width: 100%; max-width: 480px; }

/* the one orchestrated motion: steam rising from the cup */
.steam path {
  opacity: 0;
  animation: steam 4.2s ease-in-out infinite;
}
.steam .s2 { animation-delay: 1.4s; }
.steam .s3 { animation-delay: 2.8s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(18px); }
  30% { opacity: 0.75; }
  100% { opacity: 0; transform: translateY(-26px); }
}
@media (prefers-reduced-motion: reduce) {
  .steam path { animation: none; opacity: 0.6; }
}

/* Section heads */
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2, .story h2, .visit h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.125rem; }
.section-head.on-dark p { color: var(--chalk-soft); }

/* Menu board */
.menu-section {
  background: var(--fern);
  color: var(--chalk);
  padding-block: clamp(64px, 9vw, 120px);
}
.board {
  background: var(--wood);
  padding: clamp(10px, 1.6vw, 16px);
  border-radius: 22px;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.18), 0 24px 50px -24px rgba(20, 14, 10, 0.7);
}
.board-inner {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--board);
  border-radius: 12px;
  padding: clamp(22px, 4.5vw, 56px);
  font-family: var(--hand);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: clamp(18px, 3vw, 32px);
}
.tabs button {
  font: inherit;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--chalk-soft);
  background: none;
  border: 0;
  padding: 2px 4px 8px;
  cursor: pointer;
  position: relative;
}
.tabs button:hover { color: var(--chalk); }
.tabs button[aria-selected="true"] { color: var(--marigold); }
.tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C 20 1, 40 7, 60 4 S 100 2, 118 5' stroke='%23e8a33d' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px) clamp(28px, 5vw, 72px);
}
.items li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "name dots price" "note note note";
  align-items: baseline;
  column-gap: 10px;
}
.items li::after {
  content: "";
  grid-area: dots;
  border-bottom: 2px dotted rgba(238, 240, 230, 0.35);
  transform: translateY(-6px);
}
.items .name { grid-area: name; font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.15; }
.items .price { grid-area: price; font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 700; color: var(--marigold); }
.items .note { grid-area: note; font-size: 1.3rem; color: var(--chalk-soft); line-height: 1.2; }

.panel:focus-visible { outline-offset: 10px; }

.board-special {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 2px dashed rgba(238, 240, 230, 0.25);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.25;
}
.board-special span { color: var(--blush); font-weight: 700; }
.board-foot {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--chalk-soft);
}

/* Story */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  padding-block: clamp(72px, 10vw, 136px);
}
.story-copy p { margin-top: 20px; max-width: 34em; font-size: 1.125rem; }
.story-copy h2 + p { margin-top: 28px; }
.story-copy .signoff {
  font-family: var(--hand);
  font-size: 2.2rem;
  color: var(--fern);
  line-height: 1;
  margin-top: 26px;
}

.regulars {
  background: var(--blush);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  align-self: start;
  transform: rotate(-1.2deg);
}
.regulars h3 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 22px;
}
.regulars li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding-block: 14px;
}
.regulars li + li { border-top: 2px solid rgba(42, 30, 23, 0.1); }
.regulars svg { width: 44px; height: 44px; }
.regulars strong { font-weight: 700; }

/* Events */
.happening {
  background: var(--paper-2);
  padding-block: clamp(64px, 9vw, 120px);
}
.events { border-top: 2.5px solid var(--ink); }
.events li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding-block: clamp(20px, 3vw, 30px);
  border-bottom: 2.5px solid var(--ink);
}
.date { display: flex; flex-direction: column; line-height: 1; }
.date .day {
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fern);
}
.date .mon { margin-top: 6px; font-weight: 600; color: var(--ink-soft); }
.event-body h3 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.event-body p { margin-top: 6px; color: var(--ink-soft); max-width: 42em; }
.event-meta {
  font-weight: 650;
  background: var(--porcelain);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}

/* Visit */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-block: clamp(72px, 10vw, 136px);
}
address { font-style: normal; margin-top: 28px; }
address p + p { margin-top: 6px; }
.addr { font-size: 1.45rem; font-weight: 650; line-height: 1.3; margin-bottom: 14px; }
.contact-link {
  font-weight: 600;
  text-decoration-color: var(--marigold);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.contact-link:hover { color: var(--fern); }

.hours { margin-top: 36px; width: 100%; max-width: 440px; border-collapse: collapse; }
.hours caption {
  text-align: left;
  font-weight: 700;
  font-size: 1.2rem;
  padding-bottom: 10px;
}
.hours th, .hours td { padding: 12px 0; border-top: 2px solid var(--paper-2); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 750; color: var(--fern); }
.hours tr.is-today th::after {
  content: "today";
  margin-left: 10px;
  font-size: 0.8rem;
  font-weight: 650;
  background: var(--marigold);
  color: var(--ink);
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: 2px;
}
.hours-note { margin-top: 14px; color: var(--ink-soft); font-size: 0.975rem; max-width: 30em; }

.map svg {
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--ink);
  width: 100%;
  height: auto;
}
.map figcaption { margin-top: 12px; color: var(--ink-soft); font-size: 0.975rem; }
.pin { animation: drop 0.7s cubic-bezier(.3, 1.4, .5, 1) both; transform-origin: 220px 200px; }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pin { animation: none; } }

/* 404 page */
.notfound { min-height: 100vh; display: grid; align-content: center; }
.notfound h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.03em; }

/* Footer */
.site-footer {
  background: var(--board);
  color: var(--chalk);
  padding-block: 56px 40px;
}
.footer-inner p + p { margin-top: 8px; }
.footer-brand { font-family: var(--hand); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--marigold); }
.footer-inner .credit { margin-top: 32px; color: var(--chalk-soft); font-size: 0.925rem; max-width: 46em; }
.credit a { color: var(--chalk); font-weight: 600; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; }
  .story, .visit { grid-template-columns: 1fr; }
  .regulars { transform: none; }
}
@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 16px; }
  .site-header ul { flex-wrap: wrap; gap: 6px 14px; font-size: 0.95rem; }
  .site-header .nav-cta { padding: 7px 14px; }
  .items { grid-template-columns: 1fr; }
  .events li { grid-template-columns: 76px minmax(0, 1fr); align-items: start; }
  .event-meta { grid-column: 2; justify-self: start; }
}
@media (max-width: 420px) {
  .hero-art { max-width: 260px; }
  .btn { flex: 1 1 100%; }
}
