/* Seniman Coffee Shop — landing page styles. Made by daan1k.xyz */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Allura";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/allura-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Allura";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/allura-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-tuned fallback so text barely moves when Figtree arrives */
@font-face {
  font-family: "Figtree Fallback";
  src: local("Segoe UI"), local("Helvetica Neue"), local("Arial");
  size-adjust: 97%;
  ascent-override: 95%;
  descent-override: 25%;
}

/* ---------- Tokens ---------- */
:root {
  /* palette taken from the shop: the cups, the green door frames, the walls */
  --wall: #F4EEE4;        /* page ground: the whitewashed walls */
  --paper: #FBF8F2;       /* panels */
  --stone: #E2D8C9;       /* hairlines, the terrazzo floor */
  --cup: #7A1F2E;         /* the takeaway cup */
  --cup-deep: #5C1622;
  --leaf: #1F5F4E;        /* window frames and the bar wall */
  --caramel: #C9762F;     /* the spilt coffee in the Grounded photo */
  --ink: #26191B;         /* body text */
  --ink-soft: #5B4A4C;
  --black: #090707;       /* the Grounded section, matches the photo's black */
  --on-dark: #F1E8DC;
  --on-dark-muted: #B9A89B;

  --font-script: "Allura", "Brush Script MT", "Segoe Script", cursive;
  --font-sans: "Figtree", "Figtree Fallback", system-ui, sans-serif;

  /* fluid type scale */
  --fs-hero: clamp(4.2rem, 1.4rem + 8vw, 9.4rem);
  --fs-script-2: clamp(3.2rem, 2.2rem + 3.8vw, 6.2rem);
  --fs-script-3: clamp(2.4rem, 1.8rem + 2.2vw, 4rem);
  --fs-body: clamp(1rem, .95rem + .25vw, 1.125rem);
  --fs-small: .9rem;

  /* spacing */
  --gutter: clamp(1.1rem, .5rem + 3.5vw, 4.5rem);
  --section: clamp(4rem, 3rem + 6vw, 9rem);
  --radius: 26px;

  /* motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --t-ui: 200ms;
  --t-hero: 1200ms;
  --t-image: 1000ms;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
h1, h2, h3, p, figure, dl, dd, address { margin: 0; }
address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--cup); outline-offset: 3px; border-radius: 4px; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-feature-settings: "liga" 1, "calt" 1;
  line-height: 1;
  letter-spacing: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--ink); color: var(--on-dark);
  border-radius: 999px; transition: top var(--t-ui) var(--ease-soft);
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.45rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
  transition: background-color var(--t-ui) var(--ease-soft), color var(--t-ui) var(--ease-soft),
              border-color var(--t-ui) var(--ease-soft), transform var(--t-ui) var(--ease-soft),
              box-shadow var(--t-ui) var(--ease-soft);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cup); color: var(--on-dark); box-shadow: 0 14px 30px -18px rgba(122,31,46,.7); }
.btn--primary:hover { background: var(--cup-deep); }
.btn--quiet { color: var(--ink); border-color: rgba(38,25,27,.26); background: transparent; }
.btn--quiet:hover { border-color: var(--ink); background: rgba(255,255,255,.4); }
.btn--ghost { color: var(--on-dark); border-color: rgba(241,232,220,.35); }
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(255,255,255,.06); }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: rgba(251, 248, 242, .56);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -1px 0 rgba(60,30,30,.06),
    0 14px 34px -22px rgba(38,25,27,.5);
}
/* fine reflective edge: a gradient hairline masked to the border */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.3) 35%, rgba(255,255,255,.08) 60%, rgba(255,255,255,.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: -1;
}
/* soft highlight, top-left */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 90% at 12% 0%, rgba(255,255,255,.45), rgba(255,255,255,0) 55%);
  pointer-events: none; z-index: -1;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(251, 248, 242, .96); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: rgba(251, 248, 242, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Navigation ---------- */
.nav-wrap {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: max(.75rem, env(safe-area-inset-top)) var(--gutter) 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: .25rem;
  width: max-content; max-width: 100%;
  padding: .35rem .45rem .35rem 1.05rem;
  border-radius: 999px;
}
.nav__brand {
  font-family: var(--font-script); font-size: 2.05rem; line-height: 1;
  color: var(--cup); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 .6rem .15em .05em;
}
.nav__links { display: flex; gap: .15rem; margin-left: .25rem; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 .8rem;
  border-radius: 999px; font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--ink);
  transition: background-color var(--t-ui) var(--ease-soft), color var(--t-ui) var(--ease-soft);
}
.nav__links a:hover { background: rgba(255,255,255,.6); color: var(--cup); }
.nav__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: 0 1rem 0 .85rem; margin-left: .35rem;
  border-radius: 999px; background: var(--cup); color: var(--on-dark);
  font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: background-color var(--t-ui) var(--ease-soft), transform var(--t-ui) var(--ease-soft);
}
.nav__cta:hover { background: var(--cup-deep); }
.nav__cta:active { transform: translateY(1px); }
@media (max-width: 29.9em) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 1.25rem;
  padding: calc(max(.75rem, env(safe-area-inset-top)) + 3.6rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  min-height: 100svh;
  align-content: start;
}
.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
  height: clamp(240px, 41svh, 460px);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }

.hero__text { display: grid; align-content: start; }
.hero__kicker {
  order: 1;
  font-size: var(--fs-small); font-weight: 500; color: var(--ink-soft);
  margin-bottom: .35rem;
}
.hero__title {
  order: 2;
  font-size: var(--fs-hero);
  line-height: .93;
  color: var(--cup);
  /* room for the swashes: W to the left, f and ? below */
  padding: .02em .1em .12em .06em;
  margin-left: -.06em;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--2 { margin-left: .5em; }
.hero__actions { order: 3; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.hero__intro { order: 4; max-width: 34rem; margin-top: 1.25rem; color: var(--ink-soft); }

/* opening-hours chip, floating on the photo */
.hours-chip {
  position: absolute; left: .9rem; bottom: .9rem;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .95rem .55rem .8rem;
  border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  max-width: calc(100% - 1.8rem);
}
.hours-chip__dot {
  width: .6rem; height: .6rem; border-radius: 50%; flex: none;
  background: var(--leaf);
  box-shadow: 0 0 0 3px rgba(31,95,78,.18);
}
.hours-chip.is-closed .hours-chip__dot { background: var(--caramel); box-shadow: 0 0 0 3px rgba(201,118,47,.2); }
.hours-chip.is-floating { animation: chip-float 6.5s var(--ease-soft) infinite; }
.hours-chip.is-paused { animation-play-state: paused; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (min-width: 56em) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    align-content: center;
    column-gap: clamp(2rem, 4vw, 4.5rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
  }
  .hero__text { order: 1; align-self: center; padding-right: 1rem; }
  .hero__media {
    order: 2;
    height: auto;
    aspect-ratio: 1;
    max-height: calc(100svh - 8rem);
    margin-top: 1rem;
  }
  .hero__media img { object-position: 45% 50%; }
  .hero__title { padding-bottom: .14em; }
  .hero__actions { margin-top: 1.4rem; }
  .hero__intro { order: 3; margin-top: .9rem; }
  .hero__actions { order: 4; margin-top: 1.5rem; }
  .hours-chip { left: 1.25rem; bottom: 1.25rem; font-size: .95rem; }
}

/* hero entrance: one slow, staggered choreography (JS-enabled only) */
.js .hero__media, .js .hero__line, .js .hero__kicker, .js .hero__intro, .js .hero__actions, .js .hours-chip {
  animation-duration: var(--t-hero);
  animation-timing-function: var(--ease-out);
  animation-fill-mode: both;
}
.js .hero__media { animation-name: rise-soft; animation-delay: 80ms; }
.js .hero__kicker { animation-name: fade; animation-delay: 160ms; }
.js .hero__line { animation-name: rise; animation-delay: 220ms; }
.js .hero__line--2 { animation-delay: 360ms; }
.js .hero__intro { animation-name: fade; animation-delay: 520ms; }
.js .hero__actions { animation-name: rise-small; animation-delay: 640ms; }
.js .hours-chip { animation-name: rise-small; animation-delay: 900ms; }
.js .hours-chip.is-floating { animation-name: rise-small, chip-float; animation-duration: var(--t-hero), 6.5s; animation-delay: 900ms, 2.2s; animation-iteration-count: 1, infinite; animation-timing-function: var(--ease-out), var(--ease-soft); }

@keyframes rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes rise-small { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Coffee (dark) ---------- */
.coffee {
  background: var(--black);
  color: var(--on-dark);
  padding: var(--section) var(--gutter);
}
.coffee__inner {
  display: grid;
  gap: 2.5rem;
  max-width: 76rem;
  margin: 0 auto;
}
.coffee__media { border-radius: var(--radius); overflow: hidden; }
.coffee__media img { width: 100%; height: auto; }
.coffee__title { font-size: var(--fs-script-2); color: var(--caramel); padding: 0 .1em .12em .02em; }
.coffee__lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.45; max-width: 30rem; margin-top: .6rem; }
.menu { margin-top: 2rem; max-width: 34rem; }
.menu__row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(241,232,220,.14);
}
.menu__row:last-child { border-bottom: 1px solid rgba(241,232,220,.14); }
.menu dt { font-weight: 600; color: var(--on-dark); }
.menu dd { color: var(--on-dark-muted); }
.coffee__text .btn { margin-top: 1.75rem; }

.coffee__strip {
  position: relative;
  max-width: 76rem;
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.coffee__strip img { width: 100%; height: auto; }
.coffee__strip::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(9,7,7,.72), rgba(9,7,7,0));
  pointer-events: none;
}
.coffee__strip-caption {
  position: absolute; left: 1.25rem; bottom: .9rem; z-index: 1;
  font-size: var(--fs-script-3); color: var(--on-dark);
  padding: 0 .15em .1em .05em;
}

@media (min-width: 56em) {
  .coffee__inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    column-gap: clamp(2.5rem, 5vw, 5.5rem);
  }
  .coffee__text { padding-right: 2rem; }
  .coffee__strip-caption { left: 2rem; bottom: 1.4rem; }
}

/* ---------- Place (photo strip) ---------- */
.place { padding: var(--section) var(--gutter); max-width: 80rem; margin: 0 auto; }
.place__title { font-size: var(--fs-script-2); color: var(--leaf); padding: 0 .1em .12em .02em; max-width: 14em; }
.gallery {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
.gallery__item { position: relative; }
.gallery__item picture { border-radius: var(--radius); overflow: hidden; display: block; background: var(--stone); }
.gallery__item img {
  width: 100%; height: auto;
  transition: transform var(--t-image) var(--ease-out);
}
@media (hover: hover) {
  .gallery__item:hover img { transform: scale(1.035); }
}
.gallery__caption { margin-top: .6rem; font-size: var(--fs-small); color: var(--ink-soft); }
@media (min-width: 40em) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
  .gallery__item--shift { margin-top: clamp(2rem, 6vw, 5rem); }
}

/* ---------- Visit ---------- */
.visit { background: var(--paper); border-top: 1px solid var(--stone); padding: var(--section) var(--gutter); }
.visit__inner { max-width: 76rem; margin: 0 auto; }
.visit__title { font-size: var(--fs-script-2); color: var(--cup); padding: 0 .1em .12em .02em; }
.visit__lede { max-width: 30rem; margin-top: .6rem; color: var(--ink-soft); }
.visit__grid {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.visit__block { border-top: 1px solid var(--stone); padding-top: 1.25rem; }
.visit__label { font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); margin-bottom: .6rem; }
.visit__address { font-size: 1.15rem; line-height: 1.4; margin-bottom: 1.25rem; }
.hours th, .hours td { text-align: left; padding: .35rem 0; font-weight: 500; vertical-align: top; }
.hours th { padding-right: 1.5rem; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.hours td { color: var(--ink); }
.contact li { padding: .35rem 0; }
.contact a {
  display: inline-flex; align-items: center; min-height: 40px;
  font-weight: 500; text-decoration-color: rgba(38,25,27,.35);
  transition: color var(--t-ui) var(--ease-soft), text-decoration-color var(--t-ui) var(--ease-soft);
}
.contact a:hover { color: var(--cup); text-decoration-color: var(--cup); }
@media (min-width: 48em) {
  .visit__grid { grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding: 3rem var(--gutter) max(2rem, env(safe-area-inset-bottom)); }
.footer__inner { max-width: 76rem; margin: 0 auto; display: grid; gap: .5rem; }
.footer__brand .script { font-size: 2.4rem; color: var(--on-dark); padding-right: .1em; }
.footer__brand-sub { color: var(--on-dark-muted); font-size: var(--fs-small); }
.footer__meta { color: var(--on-dark-muted); font-size: var(--fs-small); }
.footer a { display: inline-block; padding: .6rem 0; }
.footer__meta a { text-decoration-color: rgba(241,232,220,.3); }
.footer__credit { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--on-dark-muted); }
.footer__credit a { color: var(--on-dark); font-weight: 600; text-decoration-color: rgba(241,232,220,.4); }
.footer__credit a:hover { color: var(--caramel); text-decoration-color: var(--caramel); }
@media (min-width: 48em) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer__credit { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; text-align: right; }
}

/* ---------- Reveals (lower sections, one time) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .gallery__item:nth-child(2).reveal { transition-delay: 90ms; }
.js .gallery__item:nth-child(3).reveal { transition-delay: 180ms; }

/* ---------- Reduced motion: everything static and complete ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__media, .js .hero__line, .js .hero__kicker, .js .hero__intro, .js .hero__actions, .js .hours-chip,
  .js .hours-chip.is-floating { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .gallery__item img { transition: none; }
  .btn, .nav__cta { transition: none; }
}
