/* YZ Cutz. A poster, not an app: black ink, warm paper, a tall condensed
   display face in capitals, torn paper where black meets paper or the photo.
   No cards: lists are ruled with hairlines and the type carries the page. */

:root {
  --paper: #f1ebe2;      /* keep in step with the fill in assets/tear-paper.svg */
  --ink: #12100e;        /* keep in step with the fill in assets/tear-ink.svg */
  --rule: rgba(18, 16, 14, .16);
  --muted: #5d564e;      /* secondary text on paper */
  --on-dark: #f7f2ea;
  --on-dark-soft: rgba(247, 242, 234, .74);
  --rule-dark: rgba(247, 242, 234, .18);

  --display: Anton, "Arial Narrow", Impact, sans-serif;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 76rem;
  --gutter: clamp(20px, 4vw, 40px);
  --r-btn: 10px;
  --nav-h: 68px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 10px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }
.nav ::selection, .hero ::selection, .about ::selection, .footer ::selection { background: var(--on-dark); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p, ul, address, table { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible { outline: 3px solid rgba(18, 16, 14, .4); outline-offset: 4px; border-radius: 4px; }
.nav :focus-visible, .menu-panel :focus-visible, .hero :focus-visible, .about :focus-visible, .footer :focus-visible { outline-color: rgba(247, 242, 234, .65); }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 60;
  padding: 10px 14px; border-radius: var(--r-btn);
  background: var(--on-dark); color: var(--ink); font-weight: 500;
}
.skip:focus { top: 12px; }

/* Type */
h1, h2, .item-name, .item-price b {
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .005em;
}
h2 { font-size: clamp(3rem, 1.6rem + 6.4vw, 7rem); line-height: .94; text-wrap: balance; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.big { font-size: clamp(1.375rem, 1.05rem + 1.5vw, 2.125rem); line-height: 1.3; letter-spacing: -.015em; text-wrap: pretty; }

/* The one button: ink on paper, paper on black */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 30rem; height: 58px; padding: 0 28px;
  border-radius: var(--r-btn);
  background: var(--ink); color: var(--paper);
  font-size: 1.0625rem; font-weight: 500; white-space: nowrap;
  transition: background-color .25s ease, transform .15s ease;
}
.btn:hover { background: #2f2a25; }
.btn:active { transform: scale(.985); }
.hero .btn { background: var(--on-dark); color: var(--ink); }
.hero .btn:hover { background: #fff; }

/* Torn edges: a strip of ripped paper in the exact colour of the section it
   belongs to. tear-down hangs under its parent, tear-up sits on top of it.
   --tear-x shifts the pattern so no two edges are the same. */
.tear {
  position: absolute; left: 0; right: 0; z-index: 2; height: 34px;
  pointer-events: none;
  background: url("/assets/tear-ink.svg") repeat-x var(--tear-x, 0px) 0 / 1200px 34px;
}
.tear-paper { background-image: url("/assets/tear-paper.svg"); }
.tear-down { top: calc(100% - 1px); }
.tear-up { bottom: calc(100% - 1px); transform: scaleY(-1); }

/* Nav: black, with a torn lower edge from the first moment. Links on a wide
   screen; on a phone a hamburger that opens a full-screen menu. */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  background: var(--ink); color: var(--on-dark);
  animation: nav-in .9s var(--ease) .15s both;
}
.nav-row { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.nav-logo { display: block; flex: none; }
.nav-logo svg { height: 32px; width: auto; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  position: relative; padding: 10px 0;
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none; position: relative;
  width: 48px; height: 48px; margin-right: -10px; padding: 0;
  border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; margin-top: -1px;
  background: currentColor;
  transition: transform .45s var(--ease);
}
.nav-toggle span { transition: transform .45s var(--ease), opacity .2s ease; }
.nav-toggle span:nth-child(1) { transform: translateY(-7px); }
.nav-toggle span:nth-child(3) { transform: translateY(7px); }
.menu-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg); }

/* The panel is a sibling of the nav, not a child: the nav's drop-in animation
   would otherwise make it the box a fixed child is measured against, and the
   menu would be squeezed into the nav's 68px. It sits just under the nav. */
.menu-panel {
  position: fixed; inset: 0; z-index: 39;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--nav-h) + 40px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--ink); color: var(--on-dark);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s .35s;
}
.menu-open .menu-panel { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.menu-links { display: grid; border-top: 1px solid var(--rule-dark); }
.menu-links a {
  padding: 18px 0; border-bottom: 1px solid var(--rule-dark);
  font-family: var(--display); font-size: clamp(2.5rem, 12vw, 3.5rem); line-height: 1; text-transform: uppercase; letter-spacing: .005em;
}
.menu-panel .btn { max-width: none; flex: none; background: var(--on-dark); color: var(--ink); }
.menu-links a, .menu-panel .btn { opacity: 0; transform: translateY(24px); transition: opacity .3s ease, transform .3s ease; }
.menu-open .menu-links a, .menu-open .menu-panel .btn {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease) calc(120ms + var(--i) * 70ms), transform .7s var(--ease) calc(120ms + var(--i) * 70ms), background-color .25s ease;
}
.menu-open, .menu-open body { overflow: hidden; }
/* Only with JS and only on a phone does the hamburger replace the links. */
@media (max-width: 759px) {
  .js .nav-toggle { display: block; }
  .js .nav-links { display: none; }
}
@media (min-width: 760px) { .menu-panel { display: none; } }

/* Hero: the photo fills the screen and runs behind the nav. */
.hero {
  position: relative; z-index: 0;
  display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 0 clamp(64px, 9vh, 104px);
  overflow: hidden;
  background: var(--ink); color: var(--on-dark);
}
.hero-media { position: absolute; inset: 0; animation: unveil 1.5s var(--ease-io) .1s both; }
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.hero-back { display: none; }
.hero-media .hero-img {
  top: var(--nav-h); height: calc(100% - var(--nav-h));
  object-position: 32% 0%;
  animation: settle 2.2s var(--ease) .1s both;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(18, 16, 14, .97) 0%, rgba(18, 16, 14, .86) 26%, rgba(18, 16, 14, .35) 50%, rgba(18, 16, 14, 0) 68%),
    linear-gradient(180deg, rgba(18, 16, 14, .4) 0%, rgba(18, 16, 14, 0) 22%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-in { position: relative; }
h1 { font-size: clamp(2.6rem, 12.4vw, 6rem); line-height: .96; }
h1 .line { display: block; overflow: hidden; white-space: nowrap; padding: .06em 0 .08em; margin: -.06em 0 -.08em; }
h1 .line > span { display: inline-block; animation: line-up 1.1s var(--ease) var(--d, 0s) both; }
h1 .outline { color: transparent; -webkit-text-stroke: .018em var(--on-dark); }
.hero .lead { max-width: 30rem; margin-top: clamp(16px, 2.4vh, 28px); color: var(--on-dark-soft); }
.hero-cta { margin-top: clamp(22px, 3.2vh, 34px); }

/* Everything after the hero sits on paper */
.sheet { position: relative; z-index: 1; background: var(--paper); }

.section-head { display: grid; gap: 20px; }
.note { max-width: 26rem; font-size: 1rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* Prices: a ruled list, each line a link to the booking page */
.prices { padding: clamp(72px, 10vw, 152px) 0 clamp(88px, 11vw, 168px); }
.menu { margin-top: clamp(36px, 5vw, 72px); border-top: 1px solid var(--rule); }
.menu li { border-bottom: 1px solid var(--rule); }
.item {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  padding: 20px 0;
  transition: color .35s var(--ease), padding .45s var(--ease);
}
.item::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.item-name { font-size: clamp(2rem, 1.2rem + 4.2vw, 4.75rem); line-height: 1; }
.item-meta { grid-row: 2; display: flex; align-items: center; gap: 10px; color: var(--muted); transition: color .35s var(--ease); }
.tag {
  padding: 3px 8px; border: 1px solid currentColor; border-radius: 4px;
  font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4;
}
.item-price { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; }
.item-price s { color: var(--muted); font-size: 1rem; transition: color .35s var(--ease); }
.item-price b { font-size: clamp(2rem, 1.2rem + 4.2vw, 4.75rem); line-height: 1; }
.item-arrow { display: none; width: 28px; height: 28px; }
@media (hover: hover) {
  .item:hover { color: var(--paper); }
  .item:hover::before { transform: scaleY(1); }
  .item:hover .item-meta, .item:hover .item-price s { color: var(--on-dark-soft); }
  .item:hover .item-arrow { transform: translateX(6px); }
}
.item:active { opacity: .8; }

/* Two columns that become one on a phone */
.split { display: grid; gap: clamp(32px, 5vw, 56px); }

/* About: black, torn at top and bottom */
.about {
  position: relative;
  background: var(--ink); color: var(--on-dark);
  padding: clamp(104px, 13vw, 200px) 0;
}
.split-text { display: grid; gap: 22px; align-content: start; }
.about .lead { color: var(--on-dark-soft); }

/* Hours and address */
.visit { padding: clamp(104px, 13vw, 200px) 0 clamp(72px, 9vw, 136px); }
.visit address { margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 8px 0;
  font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--rule);
  text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: text-decoration-color .25s ease;
}
.link svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link:hover { text-decoration-color: var(--ink); }
.link:hover svg { transform: translate(2px, -2px); }
.hours { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; line-height: 1.4; }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; }
.hours .closed th, .hours .closed td { color: var(--muted); font-weight: 400; }
.hours .today th { font-weight: 600; }
.hours .today th::after {
  content: "Vandaag"; margin-left: 12px; padding: 3px 8px; border-radius: 4px;
  background: var(--ink); color: var(--paper);
  font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px;
}
.hours .today td { font-weight: 600; }

/* Closing */
.close { padding: clamp(72px, 9vw, 136px) 0 clamp(120px, 14vw, 216px); text-align: center; }
.close-in { display: flex; flex-direction: column; align-items: center; }
.close h2 { font-size: clamp(3.25rem, 1.4rem + 9vw, 9.5rem); }
.close .lead { margin-top: clamp(18px, 2.2vw, 28px); }
.close .btn { margin-top: clamp(28px, 3vw, 40px); }

/* Footer */
.footer { position: relative; z-index: 1; background: var(--ink); color: var(--on-dark-soft); padding: 32px 0; font-size: .875rem; }
.footer-row { display: flex; justify-content: center; }
.made-by { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; line-height: 1; transition: color .2s ease; }
/* The wordmark's letters sit high in its image; nudged down so they share the
   text's midline. */
.made-by img { height: 18px; width: auto; transform: translateY(2px); }
.made-by:hover { color: var(--on-dark); }

/* Motion. Load: the nav drops in, the photo is unveiled from the bottom while
   it settles, the headline lines slide up out of their masks, the rest rises.
   Scroll: plain scrolling; each block fades and rises in once as it arrives. */
@keyframes nav-in { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { scale: 1.18; } to { scale: 1; } }
@keyframes line-up { from { transform: translateY(112%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.load { animation: rise 1s var(--ease) both; animation-delay: var(--d, 0ms); }
.js [data-reveal] { opacity: 0; transform: translateY(44px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms);
}
.js .btn[data-reveal].is-in {
  transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms), background-color .25s ease;
}

@media (min-width: 760px) {
  .nav-logo svg { height: 34px; }
  h1 { font-size: clamp(5rem, 8vw, 10rem); line-height: .94; }
  /* Wide screens: the portrait photo sits sharp on the right and dissolves
     into a blurred copy of itself that fills the rest. */
  .hero-media .hero-back { display: block; filter: grayscale(1) blur(44px) brightness(.5); transform: scale(1.25); }
  .hero-media .hero-img {
    left: auto; right: 0; width: 46%;
    object-position: 50% 5%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(18, 16, 14, .88) 0%, rgba(18, 16, 14, .7) 32%, rgba(18, 16, 14, .2) 56%, rgba(18, 16, 14, 0) 70%),
      linear-gradient(0deg, rgba(18, 16, 14, .92) 0%, rgba(18, 16, 14, .62) 24%, rgba(18, 16, 14, .2) 44%, rgba(18, 16, 14, 0) 58%),
      linear-gradient(180deg, rgba(18, 16, 14, .35) 0%, rgba(18, 16, 14, 0) 20%);
  }
  .section-head { grid-template-columns: 1fr auto; align-items: end; }
  .item { grid-template-columns: minmax(0, 1fr) 11rem auto 28px; gap: 0 32px; padding: 26px 0; }
  .item-meta { grid-row: auto; }
  .item-price { grid-column: auto; grid-row: auto; justify-content: flex-end; min-width: 9rem; }
  .item-arrow { display: block; transition: transform .45s var(--ease); }
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
  .split-text { padding-top: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav, .load, .hero-media, .hero-media .hero-img, h1 .line > span { animation: none; }
  .menu-links a, .menu-panel .btn { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  .nav, .skip { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
