/* Oppi Hoek Coffee Shop. One ink on one ground, every frame with one rounded outer corner. */
:root {
  /* Taken from their round sign: black ink on white, oranges, cosmos pink, cornflower blue */
  --cream: #FAF6EF;
  --cream-2: #F0E8DB;
  --ink: #1D211C;
  --ink-soft: #4A4F47;
  --orange: #E8761E;
  --orange-deep: #A9500D;
  --pink: #EBA6B6;
  --blue: #9DBBE6;

  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --script: "Ephesis", "Segoe Script", cursive;
  --text: "Figtree", system-ui, sans-serif;

  --gutter: clamp(16px, 5.5vw, 96px);
  --max: 1440px;
  --bar-h: 72px;
  --r: clamp(28px, 4vw, 64px);   /* the one rounded corner */
  --section: clamp(88px, 12vw, 180px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--text); font-size: clamp(17px, 1.15vw, 19px); line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 60ch; text-wrap: pretty; }
figure { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 0 0 12px 0; }
.skip:focus { top: 0; }
:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 3px; border-radius: 4px; }

.h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(42px, 5.4vw, 88px); line-height: .98; letter-spacing: -.01em;
  margin: 0 0 .45em; text-wrap: balance;
}

/* Buttons: square with one rounded outer corner */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px; border: 2px solid var(--ink);
  border-radius: 0 22px 0 0; font-weight: 700; font-size: 17px; text-decoration: none;
  background: transparent; color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-radius .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--cream); border-radius: 0 0 0 0; }
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--ink); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 0 16px 0 0; }

.frame { overflow: hidden; border-radius: 0 var(--r) 0 0; background: var(--cream-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); background: var(--cream);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.bar.is-scrolled { border-color: rgba(22, 50, 33, .14); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--script); font-size: 38px; line-height: 1; }
.brand__ring { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); background: radial-gradient(circle at 34% 72%, var(--orange) 0 4px, transparent 4.5px), radial-gradient(circle at 68% 74%, var(--pink) 0 3px, transparent 3.5px), #fff; }
.brand { opacity: var(--brand-o, 1); transition: opacity .3s; }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 2px; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.nav a:hover { background-size: 100% 2px; }
.bar__end { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 0 14px 0 0; background: none; cursor: pointer; position: relative; color: var(--ink); }
.menu-btn__lines, .menu-btn__lines::before, .menu-btn__lines::after { position: absolute; left: 11px; width: 18px; height: 2px; background: currentColor; content: ""; transition: transform .3s var(--ease); }
.menu-btn__lines { top: 20px; }
.menu-btn__lines::before { left: 0; top: -6px; }
.menu-btn__lines::after { left: 0; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 165vh; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; min-height: 600px; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(32px, 6vw, 120px);
  padding: calc(var(--bar-h) + 2vh) var(--gutter) 5vh; max-width: var(--max); margin: 0 auto;
  --p: 0;
}
.corner {
  --f: min(17.5vh, 13.5vw);           /* letter size: everything in the corner scales from this */
  position: relative; display: grid;
  grid-template-columns: auto calc(var(--f) * .9);
  grid-template-rows: calc(var(--f) * .86) auto;
  align-self: center;
}
.corner__title { margin: 0; display: contents; font-family: var(--caps); font-weight: 500; color: var(--ink); }
.arm { display: block; font-size: var(--f); line-height: .86; letter-spacing: .02em; will-change: transform; }
.arm--across { grid-column: 1; grid-row: 1; text-align: right; text-transform: uppercase;
  transform: translate3d(calc((1 - var(--p)) * -3.5vw), 0, 0); }
.arm--down { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: center; text-transform: uppercase;
  transform: translate3d(0, calc((1 - var(--p)) * 9vh), 0); }
.arm--down > span { display: block; line-height: .8; }
.corner__block { grid-column: 2; grid-row: 1; align-self: center; justify-self: start; z-index: 3;
  width: calc(var(--f) * 1.3); height: calc(var(--f) * 1.3); margin: calc(var(--f) * -.3) 0 0 calc(var(--f) * .06);
  transform: scale(calc(.62 + var(--p) * .38)) rotate(calc((1 - var(--p)) * -140deg)); }
.badge { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 22px rgba(29, 33, 28, .22)); }
.badge__disc { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.badge__ring { fill: none; stroke: var(--ink); stroke-width: .6; stroke-dasharray: 1 3; opacity: .55; }
.badge__arc { font-family: var(--caps); font-size: 17px; letter-spacing: 3.4px; fill: var(--ink); }
.badge__name { font-family: var(--script); font-size: 42px; fill: var(--ink); }
.badge__orange { fill: var(--orange); }
.badge__pink { fill: var(--pink); }
.badge__blue { fill: var(--blue); }
.badge__dot { fill: var(--blue); opacity: .8; }
.corner__photo { grid-column: 1; grid-row: 2; width: calc(var(--f) * 2.9); height: calc(var(--f) * 3.3);
  margin-top: calc(var(--f) * .1); justify-self: end;
  overflow: hidden; border-radius: 0 var(--r) 0 0;
  transform: scale(calc(.9 + var(--p) * .1)); transform-origin: 100% 0; }
.corner__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.16 - var(--p) * .12)); }
.hero__tile { position: absolute; z-index: 2; left: calc(var(--f) * -.3); bottom: calc(var(--f) * .25);
  width: calc(var(--f) * 1.35); aspect-ratio: 3 / 2; overflow: hidden; border-radius: 0 calc(var(--f) * .22) 0 0;
  box-shadow: 0 18px 40px -18px rgba(22, 50, 33, .45);
  transform: translate3d(0, calc((1 - var(--p)) * 14vh - var(--p) * 4vh), 0); }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.hero__sun { position: absolute; z-index: -1; width: min(62vh, 46vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #F6C9D2, #F2B9A0 60%, #F0B48A);
  opacity: .55; left: calc(var(--gutter) + min(17.5vh, 13.5vw) * 1.2); top: 14vh;
  transform: translate3d(0, calc(var(--p) * -6vh), 0) scale(calc(.92 + var(--p) * .08)); }
.hero__side { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 2vh 0 4vh; min-width: 0; }
.hero__room { align-self: flex-end; height: min(44vh, 420px); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 0 var(--r) 0 0;
  box-shadow: 0 30px 60px -30px rgba(22, 50, 33, .5);
  transform: translate3d(0, calc((1 - var(--p)) * 7vh), 0); }
.hero__room img { width: 100%; height: 100%; object-fit: cover; }

.hero__copy { max-width: 30rem; }
.hero__lede { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.4; font-weight: 500; margin-bottom: 18px; }
.status { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; margin-bottom: 26px; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.status.is-open .status__dot { background: #2E8B4A; box-shadow: 0 0 0 4px rgba(46, 139, 74, .2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Intro: two frames at different heights ---------- */
.intro {
  max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter);
  display: grid; grid-template-columns: 1fr 1.1fr .8fr; gap: clamp(28px, 4vw, 72px); align-items: start;
}
.intro__a { aspect-ratio: 4 / 5; margin-top: clamp(60px, 9vw, 160px); }
.intro__text { padding-top: 0; }
.intro__text .btn { margin-top: 10px; }
.intro__b { aspect-ratio: 4 / 5; margin-top: clamp(140px, 20vw, 340px); }

/* ---------- Valley ---------- */
.valley { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--section); position: relative; }
.valley__frame { position: relative; overflow: hidden; border-radius: 0 calc(var(--r) * 1.6) 0 0; height: min(86vh, 820px); min-height: 520px; }
.valley__img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; transform: translate3d(0, var(--d, 0px), 0); }
.valley__card {
  position: absolute; left: 0; bottom: 0; background: var(--cream);
  width: min(560px, 62%); padding: clamp(28px, 3.4vw, 56px) clamp(28px, 3.4vw, 56px) 0 0;
  border-radius: 0 var(--r) 0 0;
}
.valley__card p { margin: 0; }
.valley__small { position: absolute; right: calc(var(--gutter) - clamp(0px, 2vw, 40px)); bottom: calc(var(--section) - clamp(60px, 7vw, 120px)); width: min(34%, 440px); aspect-ratio: 16 / 9; box-shadow: 0 24px 50px -24px rgba(22, 50, 33, .5); border: 8px solid var(--cream); }

/* ---------- Counter ---------- */
.counter { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--section);
  display: grid; grid-template-columns: minmax(280px, 1fr) 1.7fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.counter__side { position: sticky; top: calc(var(--bar-h) + 40px); }
.counter__side a:not(.btn) { font-weight: 700; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.facts { margin: 28px 0 32px; border-top: 2px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(22, 50, 33, .25); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; text-align: right; }
.counter__plates { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); }
.plate--1 { aspect-ratio: 2 / 3; }
.plate--2 { aspect-ratio: 4 / 3; margin-top: clamp(80px, 12vw, 200px); }
.plate--3 { aspect-ratio: 4 / 3; grid-column: 1 / -1; width: 78%; justify-self: end; }
.plate--4 { aspect-ratio: 1 / 1; }
.plate--5 { aspect-ratio: 3 / 4; margin-top: clamp(60px, 9vw, 150px); }

/* ---------- Rating ---------- */
.rating { background: var(--ink); color: var(--cream); border-radius: 0 calc(var(--r) * 2) 0 0; margin-right: var(--gutter); }
.rating__inner { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 120px); align-items: center; }
.rating__num { margin: 0; font-family: var(--caps); font-weight: 500;
  font-size: clamp(150px, 22vw, 360px); line-height: .8; color: var(--orange); letter-spacing: -.03em; max-width: none; }
.rating__text .h2 { font-size: clamp(34px, 3.8vw, 60px); }
.rating__text p { color: #E6DCC8; }

/* ---------- Visit ---------- */
.visit { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter);
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 110px); align-items: stretch; }
.visit__address { font-style: normal; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.4; font-weight: 600; margin-bottom: 28px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 32px; border-top: 2px solid var(--ink); }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid rgba(22, 50, 33, .25); text-align: left; font-weight: 500; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; font-size: 13px; font-weight: 700; padding: 2px 8px; background: var(--orange); color: var(--ink); border-radius: 0 8px 0 0; vertical-align: 2px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__map { min-height: 460px; border-radius: 0 calc(var(--r) * 1.6) 0 0; }
.visit__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: saturate(.85); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--cream); padding: clamp(64px, 8vw, 120px) var(--gutter) 32px; }
.foot > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.foot__mark { --f: clamp(64px, 9vw, 140px); display: grid; grid-template-columns: auto calc(var(--f) * .9); grid-template-rows: calc(var(--f) * .86) auto;
  font-family: var(--caps); font-weight: 500; font-size: var(--f); line-height: .86; text-transform: uppercase; margin: 0 0 56px; width: max-content; margin-left: 0; }
.foot__across { grid-column: 1; grid-row: 1; letter-spacing: -.02em; }
.foot__block { grid-column: 2; grid-row: 1; align-self: center; justify-self: center; width: calc(var(--f) * .8); height: calc(var(--f) * .8); margin: 0 0 calc(var(--f) * .08); }
.foot__down { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: center; }
.foot__down span { line-height: .8; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid rgba(244, 236, 221, .25); }
.foot__h { font-family: var(--text); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #F0A766; margin: 0 0 12px; }
.foot p, .foot li { font-size: 16px; color: #EDE4D3; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-underline-offset: 3px; }
.foot a:hover { color: #F0A766; }
.foot__small { font-size: 14px !important; color: #CFC6B4 !important; padding-top: 24px; border-top: 1px solid rgba(244, 236, 221, .25); max-width: var(--max); }

/* ---------- Reveal (only when JS is running) ---------- */
.js [data-rise] { opacity: 0; transform: translate3d(0, 48px, 0); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js [data-rise].is-in { opacity: 1; transform: none; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .intro { grid-template-columns: 1fr 1fr; }
  .intro__text { grid-column: 1 / -1; grid-row: 1; }
  .intro__a { margin-top: 0; }
  .intro__b { margin-top: clamp(60px, 10vw, 120px); }
  .counter { grid-template-columns: 1fr; }
  .counter__side { position: static; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { position: fixed; inset: var(--bar-h) 0 auto 0; background: var(--cream); padding: 8px var(--gutter) 24px; border-bottom: 2px solid var(--ink);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .25s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 0; font-size: 26px; font-family: var(--display); font-weight: 600; border-bottom: 1px solid rgba(22, 50, 33, .2); background: none; }
  .menu-btn { display: inline-block; }

  .hero { height: 150vh; }
  .hero__stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; gap: 22px; padding-top: calc(var(--bar-h) + 18px); min-height: 0; }
  .corner { --f: min(20.5vw, 10.5vh); justify-self: start; }
  .arm--across { transform: translate3d(calc((1 - var(--p)) * -3vw), 0, 0); }
  .arm--down { transform: translate3d(0, calc((1 - var(--p)) * 4vh), 0); }
  .corner__photo { width: calc(var(--f) * 2.95); height: calc(var(--f) * 3.3); }
  .hero__tile { left: auto; right: calc(var(--f) * -.1); bottom: calc(var(--f) * -.35); width: calc(var(--f) * 1.05); display: none; }
  .hero__sun { width: 70vw; left: 30vw; top: 12vh; }
  .hero__copy { align-self: start; padding-bottom: 0; }
  .hero__lede { font-size: 19px; margin-bottom: 12px; }
  .status { margin-bottom: 18px; font-size: 15px; }
  .hero__actions .btn { flex: 1 1 auto; }

  .valley__frame { height: 72vh; min-height: 460px; }
  .valley__card { width: 88%; }
  .valley__small { position: relative; right: auto; bottom: auto; width: 72%; margin: -40px 0 0 auto; }
  .valley { padding-bottom: var(--section); }

  .rating { margin-right: 0; border-radius: 0 var(--r) 0 0; }
  .rating__inner { grid-template-columns: 1fr; gap: 16px; }

  .visit { grid-template-columns: 1fr; }
  .visit__map, .visit__map iframe { min-height: 360px; }
}

@media (max-width: 560px) {
  .bar__end .btn--small { display: none; }
  .intro { grid-template-columns: 1fr; }
  .intro__a { aspect-ratio: 4 / 3; }
  .intro__b { aspect-ratio: 4 / 3; width: 82%; justify-self: end; margin-top: 0; }
  .counter__plates { gap: 14px; }
  .plate--3 { width: 100%; }
  .foot__cols { grid-template-columns: 1fr; gap: 24px; }
  .btn { width: 100%; }
  .bar .btn { width: auto; }
}

/* Short wide screens */
@media (min-width: 861px) and (max-height: 760px) {
  .corner { --f: min(16.5vh, 13vw); }
  .hero__copy { padding-bottom: 2vh; }
}

/* ---------- Reduced motion: the locked corner, no travel ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; min-height: 100vh; }
  .hero__stage { --p: 1 !important; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .valley__img { transform: none; }
  .btn, .nav a, .bar, .brand { transition: none; }
}

/* Phone: the room photo moves out of the hero and into the intro */
@media (max-width: 860px) {
  .hero__side { padding: 0; }
  .hero__room { display: none; }
}

/* The real sign beside the address */
.visit__where { display: grid; grid-template-columns: clamp(120px, 12vw, 180px) 1fr; gap: 24px; align-items: center; margin-bottom: 32px; }
.visit__sign { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 16px 34px -18px rgba(29, 33, 28, .5); }
.visit__sign img { width: 100%; height: 100%; object-fit: cover; }
.visit__where .visit__address { margin-bottom: 8px; }
.visit__hint { font-size: 16px; color: var(--ink-soft); margin: 0; }

/* Menu jumps land with the heading just under the bar */
.intro, .visit { padding-top: clamp(40px, 5vw, 88px); }
.rating { margin-bottom: clamp(48px, 6vw, 96px); }
