@layer components {

  /* ---------- layout ---------- */
  .wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
  .section { padding-block: var(--section); }
  .lead { font-size: var(--fs-lead); line-height: 1.5; }
  .muted { color: var(--ink-soft); }
  .stack > * + * { margin-top: var(--stack, 1.25rem); }

  /* ---------- buttons ----------
     Pill with a rolling label and a round "dot" that floods the button on hover. */
  .btn {
    --btn-bg: var(--sun); --btn-fg: var(--ink); --btn-dot: var(--ink); --btn-dot-fg: var(--sun);
    --btn-flood: var(--ink); --btn-flood-fg: var(--paper);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; gap: 14px;
    min-height: 56px; padding: 6px 6px 6px 26px; border-radius: 999px; border: 0;
    background: var(--btn-bg); color: var(--btn-fg);
    font: 600 1rem/1 var(--text); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
    transition: transform .35s var(--spring), color .35s var(--ease-out);
    will-change: transform;
  }
  .btn__label { position: relative; display: block; overflow: hidden; height: 1.15em; line-height: 1.15; }
  .btn__label > span { display: block; transition: transform .45s var(--ease-out); }
  .btn__label::after {
    content: attr(data-text); position: absolute; left: 0; top: 100%;
    transition: transform .45s var(--ease-out);
  }
  .btn__dot {
    position: relative; flex: none; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--btn-dot); color: var(--btn-dot-fg);
    transition: transform .45s var(--ease-out), background .35s;
  }
  .btn__dot svg { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
  .btn::before {
    content: ""; position: absolute; z-index: -1; right: 6px; top: 50%;
    width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
    background: var(--btn-flood); transform: scale(0); transition: transform .55s var(--ease-out);
  }
  @media (hover: hover) {
    .btn:hover { color: var(--btn-flood-fg); }
    .btn:hover::before { transform: scale(9); }
    .btn:hover .btn__label > span, .btn:hover .btn__label::after { transform: translateY(-100%); }
    .btn:hover .btn__dot { background: var(--btn-dot-fg); color: var(--btn-dot); }
    .btn:hover .btn__dot svg { transform: rotate(-45deg); }
  }
  .btn:active { transform: scale(.96); }
  .btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-dot: var(--sun); --btn-dot-fg: var(--ink); --btn-flood: var(--sun); --btn-flood-fg: var(--ink); }
  .btn--cream { --btn-bg: var(--cream); --btn-fg: var(--ink); --btn-dot: var(--ink); --btn-dot-fg: var(--cream); --btn-flood: var(--ink); --btn-flood-fg: var(--cream); }
  .btn--glass {
    --btn-bg: rgba(255, 249, 232, .14); --btn-fg: var(--paper); --btn-dot: var(--paper); --btn-dot-fg: var(--ink);
    --btn-flood: var(--paper); --btn-flood-fg: var(--ink);
    -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: inset 0 0 0 1.5px rgba(255, 249, 232, .55);
  }
  .btn--small { min-height: 46px; padding: 4px 4px 4px 20px; gap: 10px; font-size: .9375rem; }
  .btn--small .btn__dot { width: 38px; height: 38px; }
  .btn--small::before { width: 38px; height: 38px; margin-top: -19px; right: 4px; }
  .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

  /* text link with a drawn underline */
  .link {
    font-weight: 600; text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
    transition: background-size .4s var(--ease-out);
    padding-bottom: 2px;
  }
  @media (hover: hover) { .link:hover { background-size: 0 1.5px; background-position: 100% 100%; } }

  /* ---------- logo: the round badge, the bear rocks in its deckchair ---------- */
  .logo { position: relative; display: block; width: calc(var(--h, var(--logo-h)) * .81); aspect-ratio: 729 / 900; }
  .logo > img { width: 100%; height: 100%; }
  .logo__words { position: absolute; inset: 0; transform-origin: 50% 54%; transition: opacity .35s, transform .55s var(--ease-out); }
  /* light lettering over a photo: a soft dark halo keeps it readable on bright spots */
  .logo--light .logo__words { filter: drop-shadow(0 2px 10px rgba(34, 22, 11, .45)); }
  /* round shadow under the badge only (never a box), shown when the badge floats over the page */
  .logo::before {
    content: ""; position: absolute; left: .7%; top: 13.4%; width: 99.3%; aspect-ratio: 1; border-radius: 50%;
    box-shadow: 0 10px 26px rgba(34, 22, 11, .22); opacity: 0; transition: opacity .4s;
  }
  .logo__disc {
    position: absolute; left: 4.145%; top: 16.19%; width: 92.52%; aspect-ratio: 1;
    border-radius: 50%; overflow: hidden;
    animation: bear-rock 7s var(--ease-in-out) infinite;
  }
  .logo__disc img { width: 100%; height: 100%; }
  .glint {
    position: absolute; inset: 0; pointer-events: none;
    -webkit-mask: url('/assets/brand/lens-mask.png') center / 100% 100% no-repeat;
    mask: url('/assets/brand/lens-mask.png') center / 100% 100% no-repeat;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .9) 50%, transparent 58%) no-repeat;
    background-size: 300% 100%; background-position: 120% 0;
    animation: glint 7s ease-in-out infinite;
  }
  @keyframes bear-rock {
    0%, 100% { transform: rotate(-2.2deg); }
    50% { transform: rotate(2.2deg); }
  }
  @keyframes glint {
    0%, 58% { background-position: 120% 0; }
    76%, 100% { background-position: -20% 0; }
  }

  /* ---------- rounded photo frame ---------- */
  .frame {
    position: relative; margin: var(--frame-gap);
    border-radius: var(--radius); overflow: hidden; isolation: isolate;
    background: var(--velvet);
  }

  /* ---------- header ---------- */
  .site-header {
    position: fixed; z-index: 50; inset: 0 0 auto 0; pointer-events: none;
    padding: calc(var(--frame-gap) + 12px) calc(var(--frame-gap) + 14px) 0;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  }
  .site-header > * { pointer-events: auto; }
  @media (prefers-reduced-motion: no-preference) {
    .site-header .brand { animation: drop-in 1.1s var(--spring) .1s both; }
    .site-header .nav { animation: drop-in .9s var(--ease-out) .2s both; }
  }
  @keyframes drop-in { from { opacity: 0; transform: translateY(-28px) rotate(-6deg); } }
  .brand { display: block; border-radius: 50%; }
  .brand .logo { --h: var(--logo-h); transition: width .5s var(--ease-out), margin .5s var(--ease-out); }
  /* scrolled (or menu open): only the round badge, smaller, lifted so the empty space above it goes */
  .is-scrolled .brand .logo, .menu-open .brand .logo { --h: var(--badge-h, 88px); margin-top: calc(var(--badge-h, 88px) * -.134 + 4px); }
  .is-scrolled .brand .logo__words, .menu-open .brand .logo__words { opacity: 0; transform: scale(.82); }
  .is-scrolled .brand .logo::before { opacity: 1; }
  /* the ink logo on a light page loses its lettering the same way */
  .is-scrolled .brand .logo--ink > img { clip-path: circle(44.2% at 50.3% 53.6%); }

  .nav {
    display: flex; align-items: center; gap: 6px; padding: 6px;
    border-radius: 999px;
    background: rgba(255, 249, 232, .78);
    -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 30px rgba(34, 22, 11, .12);
  }
  .nav__links { display: flex; gap: 2px; list-style: none; padding: 0 6px; }
  .nav__links a {
    display: block; padding: 10px 14px; border-radius: 999px;
    font-weight: 500; font-size: .96875rem; text-decoration: none; transition: background .25s;
  }
  .nav__links a:hover { background: rgba(34, 22, 11, .07); }
  .nav__links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
  .lang { display: flex; gap: 2px; padding: 0 6px; border-left: 1px solid var(--line); list-style: none; }
  .lang a {
    display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 7px; border-radius: 999px;
    border: 1.5px solid transparent;
    font: 600 .8125rem/1 var(--text); letter-spacing: .04em; text-decoration: none;
  }
  /* the current language: no fill, a thin brown ring, same size as the others */
  .lang a[aria-current="true"] { border-color: var(--brown); }
  .lang a:hover { background: rgba(34, 22, 11, .07); }
  /* icon-only round button: a sun disc with two ink lines that cross when open */
  .menu-toggle {
    display: none; place-items: center; width: 52px; height: 52px; padding: 0;
    border: 0; border-radius: 50%; background: var(--sun); color: var(--ink);
    box-shadow: 0 8px 22px rgba(34, 22, 11, .22); transition: transform .3s var(--spring);
  }
  .menu-toggle:active { transform: scale(.94); }
  .menu-toggle__icon { position: relative; width: 22px; height: 14px; }
  .menu-toggle__icon::before, .menu-toggle__icon::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2.2px; background: currentColor; border-radius: 2px;
    transition: transform .35s var(--ease-out);
  }
  .menu-toggle__icon::before { top: 2px; }
  .menu-toggle__icon::after { top: 9.8px; }
  .menu-open .menu-toggle__icon::before { transform: translateY(3.9px) rotate(45deg); }
  .menu-open .menu-toggle__icon::after { transform: translateY(-3.9px) rotate(-45deg); }
  /* over the sunny sheet the button turns ink so it stays visible */
  .menu-open .menu-toggle { background: var(--ink); color: var(--sun); }

  /* mobile menu: a sunny sheet that opens from the button */
  .menu-sheet {
    position: fixed; inset: 0; z-index: 45; display: none;
    background: var(--sun); color: var(--ink);
    padding: calc(var(--logo-h) + 48px) var(--gutter) 32px;
    flex-direction: column; gap: 28px; overflow-y: auto;
  }
  .menu-sheet ul { list-style: none; padding: 0; }
  .menu-sheet__links a {
    display: block; padding: 6px 0; text-decoration: none;
    font: 800 clamp(2rem, 9vw, 2.75rem)/1 var(--display); letter-spacing: -.035em;
  }
  .menu-sheet .lang { border: 0; padding: 0; gap: 8px; }
  .menu-sheet .lang a { min-width: 40px; height: 40px; }
  .menu-sheet .lang a[aria-current="true"] { border-color: var(--brown); }
  .menu-open .menu-sheet { display: flex; animation: sheet-in .55s var(--ease-out); }
  @keyframes sheet-in { from { clip-path: circle(0 at calc(100% - 48px) 40px); } to { clip-path: circle(150% at calc(100% - 48px) 40px); } }

  @media (max-width: 1023px) {
    .nav__links, .nav .lang, .nav .btn { display: none; }
    .nav { background: none; box-shadow: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .js .menu-toggle { display: grid; }
    html:not(.js) .nav__links { display: flex; flex-wrap: wrap; background: rgba(255, 249, 232, .9); border-radius: 18px; padding: 6px; }
  }

  /* ---------- fixed "book" bar on phones ---------- */
  .book-bar {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    display: none;
  }
  .book-bar .btn { width: 100%; justify-content: space-between; min-height: 58px; box-shadow: 0 14px 34px rgba(34, 22, 11, .28); }
  @media (max-width: 1023px) {
    .book-bar { display: block; transition: transform .45s var(--ease-out); }
    .menu-open .book-bar { display: none; }
    .book-bar-hidden .book-bar { transform: translateY(140%); }
    body { padding-bottom: 84px; }
  }

  /* ---------- cookie banner ---------- */
  .cookie {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px;
    max-width: 400px; padding: 20px; border-radius: 22px;
    background: var(--ink); color: var(--paper);
    box-shadow: 0 20px 50px rgba(34, 22, 11, .35);
  }
  .cookie[hidden] { display: none; }
  .cookie .cookie__title { margin: 0; font: 800 1.5rem/.92 var(--display); letter-spacing: -.02em; color: var(--paper); }
  .cookie p { margin-top: 8px; font-size: var(--fs-small); line-height: 1.5; color: rgba(255, 249, 232, .86); }
  .cookie .link { color: var(--butter); font-size: var(--fs-small); }
  .cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .cookie__actions button {
    min-height: 48px; border-radius: 999px; border: 0; font-weight: 600;
    background: rgba(255, 249, 232, .12); color: var(--paper); transition: background .2s, transform .2s var(--spring);
  }
  .cookie__actions button:hover { background: rgba(255, 249, 232, .22); }
  .cookie__actions button:active { transform: scale(.96); }
  @media (max-width: 1023px) {
    /* sits above the book bar, never on it */
    .cookie { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 58px + 12px); max-width: none; }
  }
  @media (min-width: 1024px) { .cookie { left: auto; right: 24px; bottom: 24px; } }

  /* ---------- marquee ---------- */
  .ticker {
    --speed: 38s;
    overflow: hidden; background: var(--sun); color: var(--ink);
    padding-block: 18px; white-space: nowrap;
  }
  .ticker__track { display: flex; width: max-content; animation: ticker var(--speed) linear infinite; }
  .ticker__group { display: flex; align-items: center; flex: none; }
  .ticker__item { display: inline-flex; align-items: center; gap: 20px; padding-right: 20px; font: 800 clamp(1.1rem, .95rem + .6vw, 1.5rem)/1 var(--display); letter-spacing: -.02em; }
  .ticker__item svg { width: .9em; height: .9em; flex: none; }
  @keyframes ticker { to { transform: translateX(-50%); } }
  @media (hover: hover) { .ticker:hover .ticker__track { animation-play-state: paused; } }

  /* ---------- stickers, chips ---------- */
  .chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px; background: var(--cream); color: var(--ink);
    font: 600 .875rem/1.2 var(--text);
  }
  .chip--ink { background: var(--ink); color: var(--paper); }
  .chip--glass { background: rgba(255, 249, 232, .16); color: inherit; box-shadow: inset 0 0 0 1px rgba(255, 249, 232, .35); }
  .chip svg { width: 16px; height: 16px; }

  /* ---------- footer ---------- */
  .site-footer {
    margin: var(--frame-gap); border-radius: var(--radius); overflow: hidden;
    background: var(--ink); color: var(--paper);
    padding: clamp(56px, 7vw, 96px) 0 0;
  }
  .site-footer a { color: inherit; }
  .footer-grid { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .footer-grid .footer-h { font: 600 .875rem/1.2 var(--text); letter-spacing: 0; color: var(--butter); margin-bottom: 14px; }
  .footer-grid p, .footer-grid li { font-size: var(--fs-small); line-height: 1.6; color: rgba(255, 249, 232, .84); }
  .footer-grid ul { list-style: none; padding: 0; display: grid; gap: 6px; }
  .footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
  .footer-top p { font: 800 var(--fs-h3)/1.05 var(--display); letter-spacing: -.025em; max-width: 18ch; }
  .footer-word {
    margin-top: clamp(48px, 7vw, 96px);
    font: 900 clamp(2.25rem, 4.2vw, 3.75rem)/1 var(--display); letter-spacing: -.045em;
    color: var(--sun); white-space: nowrap; text-align: center;
    margin-bottom: clamp(16px, 2vw, 28px); user-select: none;
  }
  .footer-legal {
    display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
    padding-block: 22px; border-top: 1px solid rgba(255, 249, 232, .16);
    font-size: .875rem; color: rgba(255, 249, 232, .72);
  }
  .footer-legal p { display: flex; flex-wrap: wrap; gap: 4px 16px; max-width: none; }
  .footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; }
  .footer-legal button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; }
}

@layer utilities {
  .mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: 3rem; }

  /* ---------- private-events band (home, brunch): photo and ink copy in one frame ---------- */
  .private__frame { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--ink); color: var(--paper); }
  .private__copy { padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 80px); align-self: center; }
  .private__copy .lead { margin-top: 24px; color: rgba(255, 249, 232, .86); }
  .private__media { order: 2; margin: 10px; border-radius: calc(var(--radius) - 8px); overflow: hidden; min-height: 420px; }
  .private__media picture, .private__media img { width: 100%; height: 100%; object-fit: cover; }
  .private__facts { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 40px 0; }
  .private__facts dt { font: 900 clamp(2rem, 1.4rem + 1.4vw, 3rem)/.9 var(--display); letter-spacing: -.045em; color: var(--sun); }
  .private__facts dd { margin: 8px 0 0; font-size: var(--fs-small); color: rgba(255, 249, 232, .8); }
  @media (max-width: 860px) {
    .private__frame { grid-template-columns: 1fr; }
    .private__media { order: 0; min-height: 260px; aspect-ratio: 4 / 3; }
  }
}
