/* Rune Nissen – the footer at the end of every page (the front page, /shortform, /rune): a warm sand band with round
   top corners (board "Footer · B Sandet" in the canvas). Rune stands on the hairline of the fine print and juggles,
   folds his arms and looks up at the question, and juggles again, round and round (js/footer.js); beside him the
   question, the call button and the phone, the mail under them, the pages and socials in two small columns. The
   socials are Rune's Instagram, TikTok and YouTube, opened in a new tab. */
.ft { --pad: clamp(20px, 3.9vw, 56px); --r: clamp(24px, 2.2vw, 32px); --fine: clamp(52px, 5.6vw, 80px); margin-top: clamp(90px, 10.4vw, 150px); padding: clamp(56px, 6.7vw, 96px) var(--pad) clamp(24px, 2.2vw, 32px); border-radius: var(--r) var(--r) 0 0; background: #E6DECD; color: var(--petrol-900); font-family: 'Jost', system-ui, sans-serif; }
:where(.ft) :is(h2, p) { margin: 0; }
:where(.ft) ul { margin: 0; padding: 0; list-style: none; }
.ft a { color: inherit; text-decoration: none; }
/* On the front page it comes straight after Alt arbejde: the wall's dark lies behind its round corners (under the
   sand, which covers it everywhere else) */
.ft-wall { position: relative; margin-top: 0; }
.ft-wall::before { content: ''; position: absolute; top: 0; left: 0; right: 0; z-index: -1; height: var(--r); background: #050A0B; }
.ft a:focus-visible { outline: 2px solid var(--petrol-900); outline-offset: 3px; border-radius: 4px; }
.ft-grid { display: grid; grid-template-columns: auto minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: 'rune say cols'; align-items: end; gap: 56px 80px; }

/* Rune, his soles on the hairline under the grid (the box is the frame he and the balls move in, 420×1120, his soles
   at its bottom; tools/build-jongler.py). It reaches a little out to the left, so his body lines up with the text
   edge, and into the gap, so he stands near the question. Until he plays, the loop's first frame stands; with
   reduced motion the one where he looks up at the question. */
.ft-rune { --h: clamp(300px, 30.5vw, 440px); grid-area: rune; align-self: end; position: relative; isolation: isolate; height: var(--h); aspect-ratio: 420 / 1120; margin: 0 calc(var(--h) * -.07) calc(-1 * var(--fine)) calc(var(--h) * -.06); pointer-events: none; }
.ft-rune img, .ft-rune video { position: absolute; inset: 0; width: 100%; height: 100%; }
.ft-rune video { opacity: 0; transition: opacity .25s ease; }
.ft-rune.is-playing video { opacity: 1; }
.ft-rune.is-playing img { opacity: 0; transition: opacity 0s .25s; }
.ft-rune::after { content: ''; position: absolute; left: 21%; right: 15%; bottom: -1.1%; z-index: -1; height: 2.6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(13,26,28,.26), rgba(13,26,28,.1) 55%, rgba(13,26,28,0)); }

/* The question */
.ft-say { grid-area: say; }
.ft-h { font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: clamp(56px, 6.9vw, 100px); line-height: .88; letter-spacing: .02em; text-transform: uppercase; }
.ft-h em { font-style: normal; background: linear-gradient(180deg, rgba(212,238,106,0) 56%, var(--lime) 56%, var(--lime) 92%, rgba(212,238,106,0) 92%); }
.ft .ft-sub { margin-top: 22px; max-width: 520px; font-size: 18px; line-height: 1.5; color: rgba(13,26,28,.7); }

/* Write or ring */
.ft-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.ft-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px 16px 26px; border-radius: 99px; font-size: 16px; font-weight: 500; white-space: nowrap; transition: transform .3s cubic-bezier(.2,.8,.2,1), background-color .25s ease, border-color .25s ease; }
.ft .ft-main { background: var(--petrol-900); color: var(--creme); }
.ft-main i { font-style: normal; color: var(--lime); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ft-ghost { border: 1px solid rgba(13,26,28,.25); }
.ft .ft-addr { margin-top: 18px; font-size: 15px; color: rgba(13,26,28,.6); }
.ft-addr a { color: var(--petrol-900); text-decoration: underline; text-decoration-color: rgba(13,26,28,.25); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s ease; }

/* The pages and socials, small */
.ft-cols { grid-area: cols; display: grid; grid-template-columns: repeat(2, minmax(max-content, 1fr)); gap: 32px; }
.ft .ft-lbl { margin-bottom: 14px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(13,26,28,.5); }
.ft-cols ul { display: grid; gap: 8px; font-size: 16px; }
.ft-cols a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
.ft-cols [aria-current] { text-decoration-color: var(--lime); }

.ft-fine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: var(--fine); padding-top: 22px; border-top: 1px solid rgba(13,26,28,.12); font-size: 13px; color: rgba(13,26,28,.55); }
/* Privatlivspolitik and Cookies (/privatliv) beside the CVR, underlined as the credit is */
.ft .ft-legal a { text-decoration: underline; text-decoration-color: rgba(13,26,28,.25); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.ft .ft-legal [aria-current] { color: var(--petrol-900); text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
/* Siden lavet af Andreas: the fine print's own words, underlined, at the far right, opening the box below */
.ft-credit { margin-left: auto; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(13,26,28,.25); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.ft-credit:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 2px; }

@media (hover: hover) {
  .ft-btn:hover { transform: translateY(-2px); }
  .ft .ft-main:hover { background: var(--petrol-700); }
  .ft-main:hover i { transform: translateX(4px); }
  .ft-ghost:hover { border-color: var(--petrol-900); }
  .ft-addr a:hover { text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
  .ft-cols a:hover { text-decoration-color: var(--lime); }
  .ft-credit:hover { color: var(--petrol-900); text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
  .ft .ft-legal a:hover { color: var(--petrol-900); text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
}

/* Coming in: the two halves fade up as the footer scrolls into view (html.ft-anim is set by js/footer.js) */
.ft-anim .ft-fade { opacity: 0; transform: translateY(14px); transition: opacity .5s ease calc(.1s + var(--d, 0) * 80ms), transform .6s cubic-bezier(.2,.8,.2,1) calc(.1s + var(--d, 0) * 80ms); }
.ft-anim .ft.is-in .ft-fade { opacity: 1; transform: none; }

/* One column: Rune stands under it, beside the pages and socials */
@media (max-width: 900px) {
  .ft-grid { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'say say' 'rune cols'; gap: 48px 40px; }
  .ft-rune { --h: clamp(200px, 36vw, 290px); }
}
@media (max-width: 600px) {
  .ft-grid { column-gap: 32px; }
  .ft-rune { --h: clamp(220px, 66vw, 270px); }
  .ft-cols { gap: 20px; }
  .ft .ft-sub { font-size: 16px; }
  .ft-btn { padding: 15px 20px 15px 22px; font-size: 15px; }
  .ft-fine { flex-direction: column; align-items: flex-start; }
  .ft-credit { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-btn, .ft-main i { transition: none; }
}

/* ---------- The box Siden lavet af Andreas opens (from the footer or the menu; js/footer.js makes it): a creme card
   over the dimmed page – who made the page, and the two places to go, each a row with a lime arrow that turns petrol
   under the mouse. It rises in a little; Escape, × or a click on the dark closes it, and the page stays put under it */
.cr { width: min(420px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: var(--creme); color: var(--petrol-900); font-family: 'Jost', system-ui, sans-serif; box-shadow: 0 40px 80px -30px rgba(5,10,11,.6); }
.cr::backdrop { background: rgba(5,10,11,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cr[open] { animation: cr-in .24s cubic-bezier(.2,.8,.2,1); }
.cr[open]::backdrop { animation: cr-dim .24s ease; }
@keyframes cr-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes cr-dim { from { opacity: 0; } }
html:has(.cr[open]) { overflow: hidden; }
.cr-box { position: relative; padding: 36px 28px 28px; outline: none; }
.cr-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--petrol-900); cursor: pointer; transition: background-color .2s ease; -webkit-tap-highlight-color: transparent; }
.cr-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cr-x:focus-visible { outline: 2px solid var(--lime); outline-offset: 0; }
.cr-kick { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(13,26,28,.55); }
.cr-h { margin: 10px 0 0; font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: 56px; line-height: .85; letter-spacing: .02em; text-transform: uppercase; }
.cr-sub { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: rgba(13,26,28,.66); }
.cr-links { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.cr-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 20px; border: 1px solid rgba(13,26,28,.16); border-radius: 14px; color: var(--petrol-900); text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; -webkit-tap-highlight-color: transparent; }
.cr-links b { font-family: 'Smooch Sans', sans-serif; font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.cr-links span { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--petrol-900); font-size: 16px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.cr-links a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (hover: hover) {
  .cr-x:hover { background: rgba(13,26,28,.08); }
  .cr-links a:hover { border-color: var(--petrol-900); background: var(--petrol-900); color: var(--creme); }
  .cr-links a:hover span { transform: translate(2px, -2px); }
}
@media (max-width: 600px) {
  .cr-box { padding: 32px 22px 22px; }
  .cr-h { font-size: 48px; }
  .cr-links b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr[open], .cr[open]::backdrop { animation: none; }
  .cr-links a, .cr-links span, .cr-x { transition: none; }
}
