/* MAZEN · door.css: the door-only styles from the prototype (door.html, the inline <style>).
   Everything else is already in base.css. Loaded only by layout/password.liquid. */
:root { --strip: 0px; }
/* Mazen 17/11: the door wears the shop's cream. The room is the hero's room (ivory wall, sand floor); only the footer stays dark. */
html, body { background: var(--ivory); } html { scrollbar-color: var(--taupe) var(--ivory); }
::selection { background: var(--espresso); color: var(--ivory); }
.door :focus-visible { outline-color: var(--espresso); } .site-footer :focus-visible { outline-color: var(--sand); }

/* the room: an ivory wall and the shop's sand floor; the doorway opens on a brighter room */
.door { --floor: clamp(96px, 11vw, 160px); --dw: clamp(136px, 15vw, 220px); --lean: clamp(220px, 30vw, 440px);
  --floor-c: color-mix(in srgb, var(--espresso) 5%, var(--sand)); --casing: color-mix(in srgb, var(--espresso) 26%, var(--sand)); --rule: rgba(73, 53, 44, .16);
  position: relative; isolation: isolate; overflow: hidden; background: var(--ivory); color: var(--coal);
  padding-top: calc(var(--hh) + clamp(40px, 6vw, 88px)); }
.door::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: var(--floor); background: var(--floor-c); border-top: 1px solid var(--rule); }
.door__grid { position: relative; display: grid; gap: 28px; grid-template-areas: "text" "stage" "act" "join"; }
.door__join { grid-area: join; max-width: 460px; }
.door__text { grid-area: text; } .door__stage { grid-area: stage; } .door__act { grid-area: act; }
.door__text .h-display { color: var(--coal); font-size: clamp(3rem, 6.4vw, 5.5rem); line-height: 1; letter-spacing: -.02em; }
.door .sec-lede { color: var(--espresso); }
.door__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.door__act .fine { max-width: 30ch; font-size: .875rem; color: var(--espresso); }
/* the one dark control on the page: the way in */
.door .btn--primary { background: var(--coal); color: var(--ivory); border-color: var(--coal); }
.door .btn--primary:hover { background: var(--espresso); border-color: var(--espresso); }
.door__join-t { font-size: .9375rem; color: var(--espresso); max-width: 42ch; }
.door__join .field__input { background: var(--white); color: var(--coal); border-color: rgba(73, 53, 44, .5); }
.door__join .field__input::placeholder { color: color-mix(in srgb, var(--espresso) 82%, var(--white)); opacity: 1; }
.door__join .field__input:focus { border-color: var(--coal); }
.door__join .btn { background: transparent; color: var(--coal); border-color: rgba(41, 40, 38, .7); }
.door__join .btn:hover { background: var(--coal); color: var(--ivory); border-color: var(--coal); }
.door__join .form-msg, .door__join .form-msg.is-ok { color: var(--coal); font-size: .9375rem; }
.door__join .form-msg .mock, .door__join .field__err { color: var(--espresso); }
.door__join-fine { margin: 0; color: var(--espresso); }

/* the stage: the typewriter stands on our floor in front, the doorway is in the wall behind it */
.door__stage { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; }
.door .tw { --rows: 3; }
.door__stage .machine { position: relative; z-index: 3; flex: 1 1 auto; min-width: 0; max-width: 520px; width: 100%; margin: 0 calc(var(--dw) * -.1) calc(var(--floor) * -.52) 0; }
.door__stage .machine__bar .icon-btn { color: var(--espresso); }
.door__stage .machine__bar .icon-btn:hover { color: var(--coal); }
.door__stage .machine__bar { display: none; }

/* the doorway: a brighter room seen through the opening (soft white wall, the same sand floor) */
.doorway { position: relative; z-index: 1; flex: none; width: var(--dw); aspect-ratio: 11 / 21; }
.doorway::before { content: ""; position: absolute; z-index: -1; inset: -34% -90% -2%; background: radial-gradient(closest-side at 50% 58%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); pointer-events: none; }
:root { --room: linear-gradient(180deg, transparent 0 82%, color-mix(in srgb, var(--espresso) 18%, var(--sand)) 82% calc(82% + 1px), color-mix(in srgb, var(--espresso) 3%, var(--sand)) calc(82% + 1px), color-mix(in srgb, var(--espresso) 13%, var(--sand))),
    radial-gradient(ellipse 95% 75% at 38% 34%, #fff, var(--white) 74%); }
.doorway__room { position: absolute; inset: 0; background: var(--room); clip-path: inset(-12px -12px 0 -12px);
  box-shadow: 0 0 0 clamp(5px, .55vw, 8px) var(--casing), 0 0 0 calc(clamp(5px, .55vw, 8px) + 1px) rgba(73, 53, 44, .2); }
/* Mazen in the room, backlit: the same figure as the wordmark's, standing on the lit floor */
.doorway__fig { position: absolute; z-index: 1; left: 13%; bottom: 7%; height: 52%; color: var(--coal); }
.doorway__fig svg { display: block; height: 100%; width: auto; aspect-ratio: 263 / 421; }
.doorway__fig::after { content: ""; position: absolute; left: 0; right: 4%; bottom: -5%; height: 9%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(41, 40, 38, .3), rgba(41, 40, 38, 0) 72%); }
/* the door leaf, swung in on the right-hand hinge; its free edge is deeper in the room, so shorter */
.doorway__leaf { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: 27%; clip-path: polygon(0 4.5%, 100% 0, 100% 100%, 0 95.5%);
  background: linear-gradient(90deg, var(--oak-lo), color-mix(in srgb, var(--oak-lo) 62%, var(--coal))); }
.doorway__leaf i { position: absolute; left: 13%; top: 52%; width: 5px; height: 5px; border-radius: 50%; background: var(--sand); }
/* the light the doorway lets out, falling over our floor toward the machine */
.doorway__spill { position: absolute; z-index: -1; top: 100%; right: calc(var(--dw) * -.18); width: calc(var(--dw) * 1.18 + var(--lean)); height: var(--floor); pointer-events: none;
  clip-path: polygon(calc(100% - var(--dw) * 1.18) 0, calc(100% - var(--dw) * .18) 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .28) 70%, rgba(255, 255, 255, 0)); }

/* a wrong code: struck through like "Skrevne" in the concept hero; the machine answers on the next line */
.tw__line.is-struck span { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--espresso); }
.machine.is-answer .tw__caret { opacity: 0; }
.tw__answer span { animation: door-type 60ms ease-out both; }
@keyframes door-type { from { opacity: 0; } to { opacity: var(--o); } }

/* the right code, the one motion on the page: the door swings open and its light fills the screen */
.doorway__leaf { transition: width 520ms cubic-bezier(.3, 0, .2, 1); }
.door.is-open .doorway__leaf { width: 6%; }
.door__flood { position: fixed; z-index: 100; inset: 0; pointer-events: none; opacity: 0; background: var(--room); transform-origin: 0 0; transform: translate(var(--tx, 50vw), var(--ty, 50vh)) scale(var(--sx, 0), var(--sy, 0)); }
.door__flood.is-on { opacity: 1; transform: none; transition: opacity 260ms 120ms ease-out, transform 900ms 160ms cubic-bezier(.65, 0, .25, 1); }
@media (prefers-reduced-motion: reduce) { .tw__answer span { animation: none; } .doorway__leaf, .door__flood.is-on { transition: none; } }

@media (min-width: 901px) {
  .door__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "text stage" "act stage" "join stage"; grid-template-rows: auto auto 1fr; column-gap: clamp(40px, 5vw, 72px); row-gap: 32px; padding-bottom: var(--floor); }
  .door__act { align-self: start; }
  .door__join { align-self: start; padding-bottom: clamp(32px, 4vw, 56px); }
}
@media (max-width: 900px) {
  .door { --floor: 64px; --dw: clamp(104px, 29vw, 160px); --lean: clamp(150px, 46vw, 300px); }
  .door::after { display: none; }
  /* on the phone the floor starts under the doorway and carries the button */
  .door__stage { margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) var(--floor); }
  .door__stage::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: var(--floor); background: var(--floor-c); border-top: 1px solid var(--rule); }
  .door__act { margin: -28px calc(var(--pad) * -1) 0; padding: 14px var(--pad) 36px; background: var(--floor-c); }
  .door__act .btn { flex: 1 1 100%; justify-content: center; }
  .door__join { margin: 0 calc(var(--pad) * -1); margin-top: -28px; padding: 28px var(--pad) 40px; max-width: none; background: var(--floor-c); }
  .door__act { padding-bottom: 24px; }
  .door__stage .machine { margin-bottom: calc(var(--floor) * -.5); }
}

/* the header is the shop's light header; the footer keeps the dark ground as the page's one contrast */
.site-header__actions { margin-left: auto; }
.site-header .header-book { display: inline-flex; }
.site-footer { background: var(--coal); color: var(--ivory); border-top: 1px solid rgba(216, 199, 176, .22); }
.site-footer .wm-img { filter: brightness(0) invert(.97); }
.site-footer .wm-row, .site-footer .wm-row .fig { color: #F7F7F7; }
.site-footer .contacts dt { color: var(--taupe); }
.site-footer a { color: var(--ivory); }
.site-footer__base { display: none; }
/* Book Mazen: the concept's booking form in the concept's drawer (every other page is locked Tuesday to Friday) */
.door-book__form { display: grid; gap: 22px; }
/* Daniel 14/11: "teksterne inde i de 4 kasser helt cooked". The sheet kept the wide booking section's side padding
   (clamp(24px, 3.5vw, 48px): it follows the screen, not the drawer), so in the 500 px drawer each box had 91 px for
   its text and "Liveperformance" (129 px) ran to the edge. In the drawer the sheet now has a fixed 24 px, the drawer is
   560 px, and two boxes share a row only when each gets at least 200 px (144 px for the text); else one per row.
   Never three: the smallest column is half the row. */
.door-book .booking__sheet { padding: 24px; }
.door-book .offers__list { grid-template-columns: repeat(auto-fit, minmax(max(200px, calc(50% - 6px)), 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.door-book .offer { padding: 16px 40px 18px 16px; }
.door-book .offer__t { font-size: 1.0625rem; }
@media (max-width: 480px) { .door-book .booking__fields { grid-template-columns: 1fr; } }
.door-book.sheet-dialog--drawer { width: min(560px, 100vw); max-width: 100vw; }
/* the same break as every other drawer (base.css: full width from 760 px down), so no gap beside it on small tablets */
@media (max-width: 760px) { .door-book.sheet-dialog--drawer { width: 100vw; margin: 0; } }
/* 17/11: the privacy policy is read on the door (its own page is locked in private mode): a text link under the signup
   and the same drawer as Book Mazen, with the policy as plain reading text */
.door__privacy { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.door__privacy:hover { color: var(--coal); }
.door-privacy.sheet-dialog--drawer { width: min(560px, 100vw); max-width: 100vw; }
@media (max-width: 760px) { .door-privacy.sheet-dialog--drawer { width: 100vw; margin: 0; } }
.door-privacy__body { display: grid; gap: 14px; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.door-privacy__body h1, .door-privacy__body h2, .door-privacy__body h3 { margin: 12px 0 0; font-family: var(--f-serif); font-size: 1.25rem; line-height: 1.25; }
.door-privacy__body p, .door-privacy__body ul, .door-privacy__body ol { margin: 0; }
.door-privacy__body ul, .door-privacy__body ol { padding-left: 1.2em; }
.door-privacy__body a { color: inherit; text-decoration: underline; }

/* the code field's visible label and the plain-text error (the visible answer sits inside the aria-hidden machine) */
/* the paper's "Skriv koden her" is the visible prompt (as in the prototype); the label stays for screen readers */
.door__code-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.door__err { flex-basis: 100%; font-size: .9375rem; color: var(--espresso); font-weight: 600; }

/* the door is the whole page: the theme's section-content grid must not inset it */
.shopify-section { display: block; }

/* the drawer picks with the text boxes (typebox), as in the prototype; the photo cards stay in the form as their hidden twins (forms.js keeps both in step) */
.door-book .areas { display: none; }
