/* chrome: header, footer, phone action bar, shared buttons and badges (loaded after the kit) */

/* ---------------------------------------------------------------- grounds and focus
   Repeated here from app/globals.css on purpose: Next injects globals.css before the kit's system.css, whose own
   .ground-brand (the accent as the ground) and focus ring would win on equal specificity. */
.ground-brand {
  --bg: var(--doma-green-band); --surface: #344c36; --ink: var(--doma-on-green); --muted: var(--doma-on-green); --card: var(--surface);
  --action: var(--doma-coral); --action-ink: var(--doma-ink);
  --line: color-mix(in oklab, var(--doma-on-green) 22%, transparent); --line-strong: color-mix(in oklab, var(--doma-on-green) 40%, transparent);
  background: var(--bg); color: var(--ink);
}
.ground-brand .btn--primary:hover { background: var(--doma-coral-hover); }
:focus-visible { outline-color: var(--ink); }

/* ---------------------------------------------------------------- buttons */
/* the outline button (Button variant="secondary"): an ink hairline on the ground, the kit's arrow-look secondary
   being a text link */
html .btn.btn--outline {
  background: transparent; color: var(--ink); border: 1px solid currentColor; padding-inline: var(--s-5);
  text-decoration: none;
}
html .btn.btn--outline:hover { background: color-mix(in oklab, var(--bg) 92%, var(--ink)); border-color: currentColor; }

/* ---------------------------------------------------------------- store badges */
.badges { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.badges a { display: inline-flex; height: 48px; align-items: center; }
.badges img { height: 48px; width: auto; display: block; }   /* the Google Play PNG is cropped to its pill, so one height fits both */

/* ---------------------------------------------------------------- header */
/* the header gutter and wordmark width per breakpoint, on :root so the menu overlay can clear the header too */
:root { --hdr-gut: 40px; --hdr-logo: 174px; --hdr-mark: 48px; --hdr-h: calc(var(--hdr-gut) + var(--hdr-logo) * 0.4); }   /* --hdr-logo is the mark's visible width (the Logo box hugs the glyphs since 22. 11.); 174 / 158 / 149 = the 116 / 105 / 99 of the afternoon + 50 % (Filip, 22. 11. late) */
@media (max-width: 1023px) { :root { --hdr-gut: 32px; --hdr-logo: 158px; --hdr-mark: 44px; } }
@media (max-width: 639px) { :root { --hdr-gut: 24px; --hdr-logo: 119px; } }   /* phones: 20 % under the 149px (Filip, 22. 11. 2026: a bit big on mobile); tablets and desktop unchanged */
/* no bar (after landonorris.com): the wordmark, the animated mark in the centre and the two buttons float over the page, fixed.
   The root keeps the kit's .nav (fixed, --nav tall); its ground and hairline are taken away here. */
.nav.site-header {
  /* the header spans the whole screen, not the page column: one gutter (--hdr-gut) on the top, the left and the right,
     40 / 32 / 24 px (Filip, 22. 11. 2026); the box is as tall as the wordmark plus that gutter, --nav stays for the offsets.
     --hdr-mark is the centre mark's height: the menu button's (48 / 44); the row centres everything on the wordmark's middle */
  z-index: 60; height: auto; padding: var(--hdr-gut) 0 0; background: transparent; border-bottom: 0; pointer-events: none;
  padding-right: var(--menu-sbw, 0px);
  --menu-ease: cubic-bezier(.22, 1, .36, 1); --menu-curtain: cubic-bezier(.87, 0, .13, 1);
}
.site-header__row.wrap { position: relative; width: auto; max-width: none; margin: 0; padding-inline: var(--hdr-gut); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.site-header__logo, .site-header__mark, .site-header__actions, .site-header .skip-link { pointer-events: auto; }
.site-header .skip-link { left: 0; }
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--doma-ink); transition: color 300ms var(--menu-ease); }
.site-header__logo svg { display: block; width: var(--hdr-logo); height: auto; transition: width 320ms var(--menu-ease); }
/* past the first screen the mark shrinks to 60 % (Filip, 23. 11. 2026: the full-size mark crossed the sections' headings under the transparent header); SiteNav sets data-past-hero once the page's first section has scrolled by */
.site-header[data-past-hero] .site-header__logo svg { width: calc(var(--hdr-logo) * 0.6); }
.site-header[data-tone="dark"] .site-header__logo, .site-header[data-open] .site-header__logo { color: var(--doma-on-green); }
.site-header :focus-visible { outline: 2px solid var(--doma-ink); outline-offset: 2px; }
.site-header[data-tone="dark"] .site-header__logo:focus-visible, .site-header[data-open] .site-header__logo:focus-visible { outline-color: var(--doma-on-green); }
/* the centre: the animated DOMA. wordmark (components/shared/DomaWordmark.tsx), a link home, centred on the row so its middle
   is the middle of the wordmark and the buttons (768px and up); it takes the ink like the logo and turns cream over the hero.
   Its liquid is the brand green on the light grounds and coral on the dark ones. It belongs to the first screen: once the
   page's first section (its hero) has gone under the header it fades out, on every page (Filip, 22. 11. late), and it also
   leaves while the menu is open, where the menu's own mark loops instead */
.site-header__mark { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: block; line-height: 0; color: var(--doma-ink); --mark-sweep: var(--doma-green);
  transition: color 300ms var(--menu-ease), opacity 300ms var(--menu-ease), visibility 300ms; }
.site-header[data-past-hero] .site-header__mark, .site-header[data-open] .site-header__mark { opacity: 0; visibility: hidden; pointer-events: none; }
.site-header__mark .doma-mark { display: block; height: var(--hdr-mark); width: auto; aspect-ratio: 128.59 / 36.98; }
.site-header[data-tone="dark"] .site-header__mark { color: var(--doma-on-green); --mark-sweep: var(--doma-coral); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
/* the app button: the kit's coral primary, an icon and the label, no arrow */
.site-header__app.btn { height: var(--btn-h); gap: 8px; padding-inline: var(--s-4); border-radius: 2px; font-size: 15px; font-weight: 600; }
.site-header__app-icon { flex: none; }
html .site-header__app.btn::after { content: none; display: none; }   /* the kit's data-buttons="arrow" glyph: no arrow here */
/* the menu button: a square in the page cream (Filip, 23. 11. 2026: the same beige as the background, not white), a hairline, two unequal ink bars at the right, a 16px cross when open */
.site-header__burger {
  --bb: 44px; position: relative; flex: none; width: var(--bb); height: var(--bb); padding: 0; cursor: pointer;
  background: var(--doma-paper); border: 1px solid var(--doma-line); border-radius: 2px; color: var(--doma-ink);
  transition: border-color 200ms var(--menu-ease);
}
.site-header__burger:hover { border-color: var(--doma-ink); }
.site-header__bar { position: absolute; right: calc((var(--bb) - 2px - 18px) / 2); height: 2px; background: currentColor;
  transition: transform 300ms var(--menu-ease), width 300ms var(--menu-ease), top 300ms var(--menu-ease), right 300ms var(--menu-ease); }
.site-header__bar:nth-child(1) { top: calc(50% - 5px); width: 18px; }
.site-header__bar:nth-child(2) { top: calc(50% + 3px); width: 12px; }
.site-header[data-open] .site-header__bar { top: calc(50% - 1px); width: 16px; right: calc((var(--bb) - 2px - 16px) / 2); }
.site-header[data-open] .site-header__bar:nth-child(1) { transform: rotate(45deg); }
.site-header[data-open] .site-header__bar:nth-child(2) { transform: rotate(-45deg); }
@media (min-width: 1024px) { .site-header__burger { --bb: 48px; } }
@media (max-width: 639px) {
  /* a phone: the action lives in the kit's action bar at the foot (thumb reach, one coral call per screen); the kit hides
     that bar while a twin of its action is on screen, and this button shares the action's address, so it leaves the header */
  .site-header__app { display: none; }
}
@media (max-width: 767px) {
  /* the centre mark needs the room: at 640-720px it would run into the app button, so under 768px it leaves the header
     (the menu carries one at every width) */
  .site-header__mark { display: none; }
}

/* ---------------------------------------------------------------- animated wordmark */
/* the liquid fill of the DOMA. mark: two rippling layers a side (a translucent one leads, a solid one follows) slide in
   from both ends under the letter mask, hold, and slide back; the ripples drift up and down on their own clocks.
   [data-playing] is set by the component: always in loop mode, during a hover cycle (--doma-count: 2, fill then drain)
   in hover mode. Reduced motion: the liquid is not drawn at all, the mark rests in its base colour. */
.doma-mark .doma-flow-l, .doma-mark .doma-flow-r { fill: var(--mark-sweep, var(--doma-green)); }
.doma-mark[data-playing] .doma-flow-l, .doma-mark[data-playing] .doma-flow-r { animation-duration: calc(var(--doma-duration, 5s) / 2);
  animation-timing-function: cubic-bezier(.45, 0, .55, 1); animation-iteration-count: var(--doma-count, infinite); animation-direction: alternate; }
.doma-mark[data-playing] .doma-flow-l { animation-name: doma-flow-l; }
.doma-mark[data-playing] .doma-flow-r { animation-name: doma-flow-r; }
.doma-mark[data-playing] .doma-ripple-a, .doma-mark[data-playing] .doma-ripple-b { animation-timing-function: linear; animation-iteration-count: infinite; }
.doma-mark[data-playing] .doma-ripple-a { animation-name: doma-ripple-a; animation-duration: 1.9s; }
.doma-mark[data-playing] .doma-ripple-b { animation-name: doma-ripple-b; animation-duration: 2.7s; }
@keyframes doma-flow-l { 0%, 6% { transform: translateX(0); } 94%, 100% { transform: translateX(70.8px); } }
@keyframes doma-flow-r { 0%, 6% { transform: translateX(0); } 94%, 100% { transform: translateX(-70.8px); } }
@keyframes doma-ripple-a { from { transform: translateY(0); } to { transform: translateY(20px); } }
@keyframes doma-ripple-b { from { transform: translateY(0); } to { transform: translateY(-27px); } }
@media (prefers-reduced-motion: reduce) { .doma-mark .doma-flow-l, .doma-mark .doma-flow-r { display: none; } }

/* ---------------------------------------------------------------- menu overlay */
/* full screen on the brand green, under the header (55 < 60): its logo and buttons stay on top, the burger a cross */
.menu { position: fixed; inset: 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain;
  background: var(--doma-green-band); color: var(--doma-on-green);
  --menu-ease: cubic-bezier(.22, 1, .36, 1); --menu-curtain: cubic-bezier(.87, 0, .13, 1); }
.menu[hidden] { display: none; }
.menu__inner { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100%; padding-top: calc(var(--hdr-h) + 24px); }
.menu__col { display: flex; flex-direction: column; align-items: center; min-height: calc(100dvh - var(--nav) - 24px); text-align: center; }
.menu__main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 24px; }
.menu__links ul { margin: 0; padding: 0; list-style: none; }
.menu__links a {
  position: relative; display: inline-block;
  font: var(--display-weight) clamp(40px, 6vw, 72px)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--doma-on-green);
  transition: color 200ms var(--menu-ease), transform 200ms var(--menu-ease);
}
.menu__links a:not([aria-current]):is(:hover, :focus-visible) { color: var(--doma-white); transform: translateX(6px); }
.menu__links a[aria-current="page"] { color: var(--doma-on-green-muted); }
.menu :focus-visible { outline: 2px solid var(--doma-on-green); outline-offset: 4px; }
.menu__strike { position: absolute; left: 0; top: 54%; width: 100%; height: .22em; translate: 0 -50%; overflow: visible; pointer-events: none; }
.menu__strike path { fill: none; stroke: var(--doma-coral); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.menu__meta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; color: var(--doma-on-green-muted); }
.menu__meta svg { display: block; }
/* the animated mark, looping from the moment the menu opens (the overlay is display: none while closed, so the animation
   starts from its first frame each time); its liquid is coral, the green would sink into the overlay */
.menu__meta .menu__mark { display: block; width: 128px; height: auto; aspect-ratio: 128.59 / 36.98; --mark-sweep: var(--doma-coral); }
.menu__meta p, .menu__foot { font: 600 12px/1.4 var(--font-text); letter-spacing: .08em; text-transform: uppercase; }
.menu__meta p { margin: 0; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.menu__foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--doma-on-green);
  text-decoration: underline 1px transparent; text-underline-offset: 4px; transition: text-decoration-color 200ms var(--menu-ease); }
.menu__foot a:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
@media (max-width: 639px) { .menu__foot { gap: 0 16px; } }
/* the photographs (a desktop only): four 3:4 frames under a heavy green tint, the second column 24px higher */
.menu__photos { display: none; }
@media (min-width: 1024px) {
  .menu__inner { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); column-gap: var(--gutter); }
  .menu__photos {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-self: center;
    width: min(100%, calc((100dvh - var(--nav) - 120px) * .75 + 24px)); padding-block: 24px 48px;
  }
  .menu__photos figure { margin: 0; overflow: hidden; background: var(--doma-green-band); aspect-ratio: 3 / 4; }
  .menu__photos figure:nth-child(even) { translate: 0 -24px; }
  .menu__photos img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
    filter: grayscale(1) contrast(1.05) brightness(.92); mix-blend-mode: luminosity; opacity: .82; }
}

/* the entrance: the green curtain comes down from the top, the links rise one after another, the strike draws
   itself once they have risen, the lockup and the contact row follow; the photographs settle from 1.04 */
@keyframes menu-curtain-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes menu-curtain-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes menu-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes menu-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes menu-settle { from { transform: scale(1.04); } to { transform: none; } }
/* the strike draws from the left as a clip reveal: a dash offset on a non-scaling stroke breaks into gaps in Chrome */
@keyframes menu-draw { from { clip-path: inset(-50% 100% -50% 0); } to { clip-path: inset(-50% 0 -50% 0); } }
.menu:is(.is-opening, .is-open) { animation: menu-curtain-in 560ms var(--menu-curtain) both; }
.menu:is(.is-opening, .is-open) .menu__links li { animation: menu-rise 480ms var(--menu-ease) both; animation-delay: calc(180ms + var(--i, 0) * 40ms); }
.menu:is(.is-opening, .is-open) .menu__strike { animation: menu-draw 320ms var(--menu-ease) both; animation-delay: calc(660ms + var(--i, 0) * 40ms); }
.menu:is(.is-opening, .is-open) :is(.menu__meta, .menu__foot) { animation: menu-fade-in 400ms var(--menu-ease) 520ms both; }
.menu:is(.is-opening, .is-open) .menu__photos figure { animation: menu-fade-in 700ms var(--menu-ease) both; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
.menu:is(.is-opening, .is-open) .menu__photos img { animation: menu-settle 700ms var(--menu-ease) both; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
.menu.is-closing { animation: menu-curtain-out 420ms var(--menu-curtain) both; }
.menu.is-closing :is(.menu__links, .menu__meta, .menu__foot, .menu__photos) { animation: menu-fade-out 160ms linear both; }

@media (prefers-reduced-motion: reduce) {
  .site-header__logo, .site-header__logo svg, .site-header__burger, .site-header__bar, .menu__links a, .menu__foot a { transition: none; }
  .menu:is(.is-opening, .is-open), .menu.is-closing, .menu *, .menu *::before, .menu *::after { animation: none !important; }
  .menu:is(.is-opening, .is-open) { animation: menu-fade-in 150ms linear both !important; }
  .menu.is-closing { animation: menu-fade-out 150ms linear both !important; }
  .menu__links a:not([aria-current]):is(:hover, :focus-visible) { transform: none; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 72px 0; }
.site-footer > .wrap { display: block; }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-6); }
.site-footer__place > * { margin: 0; }
.site-footer__address { font: var(--display-weight) 32px/35px var(--font-display); letter-spacing: -0.6px; font-style: normal; color: var(--doma-on-green); }
.site-footer__venue { margin-top: 12px !important; font-size: var(--t-body); line-height: 24.8px; color: var(--doma-on-green); }
.site-footer__contact > * { margin: 0; }
.site-footer__title { font: 600 14px/19.6px var(--font-text); color: var(--doma-on-green); }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-3); margin-top: 2px !important; }
.site-footer__contact-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 600 16px/1 var(--font-text); color: var(--doma-on-green);
  border-bottom: 1px solid var(--doma-on-green-muted); transition: border-color var(--dur) var(--ease);
}
.site-footer__contact-link:hover, .site-footer__contact-link:focus-visible { border-color: var(--doma-on-green); }
.site-footer__arrow { font-weight: 600; transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .site-footer__contact-link:hover .site-footer__arrow { transform: translateX(3px); } }
.site-footer__sep { color: var(--doma-on-green-muted); }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); margin-top: 40px; }
.site-footer__nav a {
  display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); line-height: 21.7px; color: var(--doma-on-green);
  text-decoration: underline 1px var(--doma-on-green-muted); text-underline-offset: 4px; transition: text-decoration-color var(--dur) var(--ease);
}
.site-footer__nav a:hover, .site-footer__nav a:focus-visible { text-decoration-color: var(--doma-on-green); }
.site-footer__legal { display: flex; flex-direction: column; gap: 12px; margin-top: var(--s-4); }
.site-footer__legal > p { margin: 0; font-size: 13px; line-height: 20.2px; color: var(--doma-on-green); }
.site-footer :focus-visible { outline-color: var(--doma-on-green); }
@media (max-width: 991px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__address { font-size: 29px; line-height: 31px; }
}
@media (max-width: 767px) { .site-footer__address { font-size: 27px; line-height: 30px; } }
@media (max-width: 639px) { .site-footer { padding-top: 56px; padding-bottom: 96px; } }
@media (max-width: 479px) { .site-footer__address { font-size: 24px; line-height: 27px; } }
/* the old footer's brand paragraph under the venue, and the photographer's link in the legal block */
.site-footer__about { margin-top: var(--s-4) !important; max-width: 40ch; font-size: 16px; line-height: 24.8px; color: var(--doma-on-green); }
.site-footer__credit { color: var(--doma-on-green); text-decoration: underline 1px var(--doma-on-green-muted); text-underline-offset: 3px; transition: text-decoration-color var(--dur) var(--ease); }
.site-footer__credit:hover, .site-footer__credit:focus-visible { text-decoration-color: var(--doma-on-green); }

@media (max-width: 639px) {
  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-footer__row .site-footer__contact-link { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer__sep { display: none; }
}
