/* Aurelius — shared tokens, base, header, footer, common blocks.
   Two sides of one coin: "stol" (restaurant, night) and "soba" (hotel, linen). */

@property --bg { syntax: '<color>'; inherits: true; initial-value: #0e0b08; }
@property --bg-2 { syntax: '<color>'; inherits: true; initial-value: #18120d; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #f2e9d8; }
@property --ink-2 { syntax: '<color>'; inherits: true; initial-value: #b9a98f; }
@property --gold { syntax: '<color>'; inherits: true; initial-value: #c9a45c; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #e0703a; }
@property --line { syntax: '<color>'; inherits: true; initial-value: rgba(242, 233, 216, .14); }

:root {
  --f-display: 'Cinzel', 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.2rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.6rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 6rem);
  --gutter: clamp(1rem, .6rem + 2.4vw, 3rem);
  --wrap: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --theme-t: .9s;
  --z-header: 40;
  --z-menu: 50;
  color-scheme: dark light;
  transition: --bg var(--theme-t) var(--ease-io), --bg-2 var(--theme-t) var(--ease-io), --ink var(--theme-t) var(--ease-io),
    --ink-2 var(--theme-t) var(--ease-io), --gold var(--theme-t) var(--ease-io), --accent var(--theme-t) var(--ease-io),
    --line var(--theme-t) var(--ease-io);
}

:root, :root[data-side="stol"], .t-stol {
  --bg: #0e0b08; --bg-2: #18120d; --ink: #f2e9d8; --ink-2: #b9a98f;
  --gold: #c9a45c; --accent: #e0703a; --line: rgba(242, 233, 216, .14);
}
:root[data-side="soba"], .t-soba {
  --bg: #ece5d4; --bg-2: #e1d8c2; --ink: #1d2618; --ink-2: #545e48;
  --gold: #8a6a2c; --accent: #5f6e2b; --line: rgba(29, 38, 24, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
.t-stol, .t-soba { background: var(--bg); color: var(--ink); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 500; line-height: 1.08; letter-spacing: .02em; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--gold); color: #120d08; text-decoration: none; }
.skip:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Grain over everything: keeps flat colour from looking digital */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em; font: 600 var(--step--1)/1 var(--f-body);
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 2.2em; height: 1px; background: currentColor; }
.numeral { font-family: var(--f-display); color: var(--gold); letter-spacing: .08em; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 38ch; }
.muted { color: var(--ink-2); }

.btn {
  --h: 3.2rem; display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: var(--h);
  padding: 0 1.6em; border: 1px solid var(--gold); background: var(--gold); color: var(--bg);
  font: 600 .82rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  touch-action: manipulation;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .6em; padding: .4em 0; text-decoration: none;
  font: 600 .8rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  transition: gap .3s var(--ease), border-color .3s;
}
.link-arrow:hover { gap: 1.1em; border-color: var(--gold); }
.link-arrow svg { width: 1.1em; height: 1.1em; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header); color: var(--ink);
  transition: background .4s var(--ease), transform .45s var(--ease), color .4s;
}
.hdr.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark {
  width: 30px; height: 32px; background: var(--gold);
  -webkit-mask: url(../img/konjanik.png) center / contain no-repeat; mask: url(../img/konjanik.png) center / contain no-repeat;
}
.brand__name { font: 600 1.15rem/1 var(--f-display); letter-spacing: .2em; }
.brand__name small { display: block; margin-top: .3rem; font: 500 .56rem/1 var(--f-body); letter-spacing: .3em; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a:not(.btn) {
  position: relative; padding: .6rem 0; text-decoration: none; font: 500 .78rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { --h: 2.7rem; padding: 0 1.2em; font-size: .72rem; }

/* the small coin that flips the house */
.flip {
  display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .2rem; border: 0; background: none; cursor: pointer;
  font: 500 .72rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.flip__coin { position: relative; width: 30px; height: 30px; perspective: 300px; }
.flip__coin i {
  position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #fbe7a6, #c9a24f 45%, #7d5a1f 100%);
  box-shadow: inset 0 0 0 1.5px rgba(80, 55, 15, .55), inset 0 0 0 3px rgba(255, 236, 170, .35);
  transition: transform .7s var(--ease);
}
.flip__coin i::after {
  content: ''; position: absolute; inset: 6px; background: #5a3f12; opacity: .8;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.flip__coin i:first-child { --m: url(../img/konjanik.png); }
.flip__coin i:last-child { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 6.3L21 9l-5 4.4 1.6 6.6L12 16.6 6.4 20 8 13.4 3 9l6.4-.7z'/%3E%3C/svg%3E"); transform: rotateY(180deg); }
:root[data-side="soba"] .flip__coin i:first-child { transform: rotateY(-180deg); }
:root[data-side="soba"] .flip__coin i:last-child { transform: rotateY(0); }
.flip:hover .flip__coin { animation: wobble .6s var(--ease); }
@keyframes wobble { 30% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } }
.flip__lbl b { color: var(--ink); font-weight: 600; }

.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: none; cursor: pointer; border-radius: 50%; }
.menu-btn span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: var(--z-menu); flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--bg); clip-path: circle(0 at calc(100% - 2.4rem) 2.4rem); transition: clip-path .7s var(--ease-io); visibility: hidden;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 2.4rem) 2.4rem); visibility: visible; }
  .nav a:not(.btn) { font: 500 var(--step-2)/1 var(--f-display); letter-spacing: .1em; }
  .hdr .menu-btn { position: relative; z-index: calc(var(--z-menu) + 1); color: var(--ink); }
  .brand { position: relative; z-index: calc(var(--z-menu) + 1); }
}

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(5rem, 4rem + 6vw, 10rem); }
.sec-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.sec-head h2 { font-size: var(--step-3); max-width: 18ch; }

/* typographic list with photo peek (dishes) */
.dish-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dish {
  position: relative; display: grid; grid-template-columns: 3.4rem 1fr; gap: .2rem 1rem; padding: 1.4rem 0;
  border-bottom: 1px solid var(--line); transition: padding .4s var(--ease);
}
.dish .numeral { grid-row: span 2; padding-top: .3rem; font-size: .95rem; }
.dish h3 { font-size: var(--step-1); letter-spacing: .06em; }
.dish p { color: var(--ink-2); font-size: .97rem; max-width: 52ch; }
.dish:hover { padding-left: .8rem; }
.peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: 240px; aspect-ratio: 3 / 4; pointer-events: none;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85) rotate(-3deg); transition: opacity .3s var(--ease), transform .4s var(--ease);
  overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1) rotate(-3deg); }
@media (hover: none) { .peek { display: none; } }

/* reel frame: 9:16 video like on their Instagram */
.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #000; }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption {
  position: absolute; inset: auto 0 0; padding: 3rem 1.2rem 1.1rem; color: #f2e9d8; font-size: .9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}
.frame { overflow: hidden; background: var(--bg-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.r-34 { aspect-ratio: 3 / 4; }
.r-43 { aspect-ratio: 4 / 3; }
.r-11 { aspect-ratio: 1; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.quote { display: grid; gap: 1rem; align-content: start; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.quote blockquote { margin: 0; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.55; }
.quote figcaption { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.score { display: inline-flex; align-items: baseline; gap: .8rem; }
.score b { font: 500 var(--step-4)/1 var(--f-display); color: var(--gold); }
.score span { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); line-height: 1.5; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { font-size: var(--step-4); margin-inline: auto; max-width: 14ch; }
.cta p { margin: 1.4rem auto 2.2rem; max-width: 44ch; color: var(--ink-2); }
.cta .row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

/* ---------- footer ---------- */
.ftr { padding: clamp(4rem, 8vw, 7rem) 0 1.6rem; border-top: 1px solid var(--line); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.ftr h3 { font: 600 .74rem/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ftr a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.ftr a:hover { color: var(--ink); }
.ftr__brand p { margin-top: 1.2rem; color: var(--ink-2); max-width: 30ch; }
.ftr__motto { font: 500 var(--step-1)/1.3 var(--f-display); letter-spacing: .08em; color: var(--ink) !important; }
.ftr__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.4rem;
  border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-2);
}
.ftr__bottom a { color: var(--ink); }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ftr__grid { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* language switch */
.nav .lang {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 !important;
  font: 600 .7rem/1 var(--f-body) !important; letter-spacing: .16em !important; color: var(--ink-2); text-decoration: none;
}
.nav .lang::after { display: none; }
.nav .lang:hover { color: var(--gold); }
