/* minanima · the Paris house of the highlighted project.
   One 1920s Haussmann house at night with the Eiffel Tower behind it.
   Windows open into songs, curtained windows into videos, and the door into the project.
   Flat poster style in the site's purple, dusky pink and stone. */

/* Colours and fonts come from theme.css (set in the site editor): every shade here derives from the two key colours */
:root {
  --night: var(--primary);         /* sky */
  --night-2: var(--primary-800);   /* distant rooftops */
  --ink: var(--primary-950);       /* ironwork, doors, signs, pop-up */
  --stone: var(--sand);            /* facade, text */
  --roof: var(--primary-700);      /* mansard roof */
  --shutter: var(--accent-deep);   /* shutters */
  --rose: var(--accent);           /* lettering and accents */
  --rose-soft: var(--accent-soft);
  --light: var(--warm-light);      /* lit windows and doorway */
  --pad: clamp(16px, 3vw, 40px);
  /* The house's Art Deco sign and window labels keep their own fonts */
  --display: 'Limelight', 'Didot', Georgia, serif;
  --deco: 'Poiret One', 'Futura', 'Century Gothic', sans-serif;
  --serif: var(--font-heading), Garamond, Georgia, serif;
  --sans: var(--font-body), system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; min-height: 100vh; overflow-x: clip; color: var(--stone); background: var(--night); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--rose); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--rose); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.noscript { text-align: center; padding: 20px; }

/* ---------- Sky ---------- */
.sky { position: absolute; inset: 0 0 auto 0; height: 100vh; min-height: 700px; pointer-events: none; overflow: hidden; z-index: 0; }
.stars { position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; }
.moon { position: absolute; top: 120px; left: 9vw; width: 78px; height: 78px; border-radius: 50%; background: var(--rose-soft); }
.moon::after { content: ''; position: absolute; inset: -4px 20px -4px -4px; border-radius: 50%; background: var(--night); }

/* ---------- Top bar and title ---------- */
.topbar { position: relative; z-index: 5; display: flex; justify-content: space-between; gap: 12px; padding: 18px var(--pad); }
.back { color: var(--rose-soft); text-decoration: none; font: 500 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid transparent; }
.back:hover { color: var(--stone); border-bottom-color: var(--rose); }
.intro { position: relative; z-index: 5; max-width: 760px; margin: clamp(10px, 3vh, 40px) auto 0; padding: 0 var(--pad); text-align: center; }
.eyebrow { margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--rose); }
.intro h1 { margin: 0; font: 400 clamp(40px, 7vw, 84px)/1 var(--serif); color: var(--stone); }
.summary { margin: 14px auto 0; max-width: 34em; font: italic 400 clamp(19px, 2vw, 23px)/1.4 var(--serif); color: var(--rose-soft); }
.summary:empty { display: none; }
.hint { margin: 14px 0 0; font-size: 13px; letter-spacing: .06em; color: var(--rose-soft); opacity: .75; }

/* ---------- The scene: one house, lamps either side, the tower behind ---------- */
.scene { position: relative; z-index: 4; display: flex; align-items: flex-end; justify-content: center; max-width: 1200px; margin: clamp(60px, 10vh, 120px) auto 0; padding: 0 var(--pad); }
.backdrop { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: -1; pointer-events: none; }
.eiffel { position: absolute; bottom: 0; left: 79%; height: 112%; width: auto; transform: translateX(-50%); overflow: visible; }
.eiffel path { fill: var(--primary-600); }
/* A light at the very top of the tower that blinks, with a soft glow */
.eiffel .beacon-halo .a { stop-color: var(--rose-soft); } .eiffel .beacon-halo .b, .eiffel .beacon-halo .c { stop-color: var(--rose); }
.eiffel .beacon { fill: var(--rose-soft); animation: beacon 2.4s ease-in-out infinite; }
.eiffel .beacon-glow { opacity: 1; animation: beacon-glow 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes beacon { 0%, 55%, 100% { opacity: 1; } 65%, 90% { opacity: .12; } }
@keyframes beacon-glow { 0%, 55%, 100% { opacity: .85; transform: scale(1); } 20% { opacity: 1; transform: scale(1.25); } 65%, 90% { opacity: 0; transform: scale(.5); } }
/* On wide screens the tower stands just right of the house, so its shape reads clearly */
/* A Montmartre windmill behind the house on the left, in front of the distant rooftops, its sails turning slowly */
.moulin { position: absolute; bottom: 0; left: 14%; height: 50%; width: auto; transform: translateX(-50%); }
.moulin path, .moulin use, .moulin circle { fill: var(--primary-600); }
.moulin .sails { transform-origin: 100px 95px; transform: rotate(20deg); animation: sails 120s linear infinite; }
@keyframes sails { to { transform: rotate(-340deg); } } /* anticlockwise, as windmills turn seen from the front */
@media (min-width: 1000px) {
  .eiffel { left: min(calc(50% + 420px), calc(100% - 150px)); }
  .moulin { left: max(calc(50% - 470px), 150px); }
}
.skyline { position: absolute; bottom: 0; left: -6vw; width: calc(100% + 12vw); height: 40%; }
.skyline path { fill: var(--night-2); }

.bldg { position: relative; display: flex; flex-direction: column; width: min(640px, 100%); }

/* Two-tier mansard, after a Haussmann building: an upper slope with three shuttered dormers,
   tall stone chimney stacks with pots, then a steep lower slope with large stone dormers */
.roof-wrap { position: relative; height: clamp(150px, 24vw, 264px); margin: 0 2.5%; }
.roof { position: absolute; inset: 0; background: linear-gradient(var(--stone-2), var(--stone-2)) top / 100% 3px no-repeat, repeating-linear-gradient(90deg, var(--roof) 0 13px, var(--ink) 13px 14px); clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); }
.roof::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--stone-2); }
/* Upper dormers: song windows with an internal roller blind and a small iron balcony, lined up over the windows below */
.lucarnes { position: absolute; inset: 0; }
.win.lucarne { position: absolute; bottom: 10%; width: 14.5%; margin-left: -7.25%; aspect-ratio: 1 / 1.7; }
.win.lucarne:nth-child(1) { left: 17%; } .win.lucarne:nth-child(2) { left: 50%; } .win.lucarne:nth-child(3) { left: 83%; }
.win.lucarne .pane { box-shadow: 0 0 0 4px var(--stone); }
.win.lucarne::after { left: -14%; right: -14%; height: 22%; }
.win.lucarne .label { left: -40%; right: -40%; }
/* The roller blind sits inside the glass (under the glazing bars) and rolls up into the top of the window */
.blind {
  position: absolute; inset: 0; z-index: 0;
  background: repeating-linear-gradient(180deg, var(--rose-soft) 0 9px, var(--accent-pale) 9px 10px);
  transform: translateY(0); transition: transform 1.1s cubic-bezier(.3, .7, .2, 1);
}
.blind::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--shutter); }
.blind::before { content: ''; position: absolute; left: 50%; bottom: -9px; width: 2px; height: 9px; background: var(--shutter); }
.awake .win.on .blind { transform: translateY(-62%); }
.win.on:hover .blind, .win.on:focus-visible .blind { transform: translateY(-90%); }
/* Chimney stacks stand on top of the roof near each end, with terracotta pots */
.chimney { position: absolute; bottom: calc(100% - 4px); z-index: -1; width: clamp(24px, 4.8vw, 48px); height: clamp(34px, 5.6vw, 64px); display: flex; justify-content: center; gap: 12%;
  background: linear-gradient(var(--stone-2), var(--stone-2)) 0 22% / 100% 3px no-repeat, var(--stone); border: 1px solid var(--stone-2); }
.chimney.l { left: 12%; }
.chimney.r { right: 12%; height: clamp(40px, 6.6vw, 76px); }
.chimney::before { content: ''; position: absolute; left: -10%; right: -10%; top: 0; height: 6px; background: var(--stone-2); }
.chimney i { width: 18%; height: clamp(10px, 1.6vw, 18px); margin-top: calc(-1 * clamp(10px, 1.6vw, 18px)); background: var(--shutter); border-radius: 2px 2px 0 0; }
/* The steep lower slope: slate with standing seams, slightly raked at the ends */
.mansard { position: relative; padding: 0 9%; background: repeating-linear-gradient(90deg, var(--roof) 0 15px, var(--primary-650) 15px 16px); clip-path: polygon(2.5% 0, 97.5% 0, 100% 100%, 0 100%); }
.cornice {
  height: 18px; margin: 0 -1.5%; position: relative; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--stone) 0 7px, var(--stone-2) 7px 10px) bottom / 100% 6px no-repeat, var(--stone);
  border-top: 3px solid var(--stone-2); border-bottom: 2px solid var(--stone-2);
}
.cornice::after { content: ''; position: absolute; left: 1.5%; right: 1.5%; top: 100%; height: 9px; background: repeating-linear-gradient(90deg, var(--stone-2) 0 6px, transparent 6px 38px); }
.facade { position: relative; overflow-x: clip; padding: clamp(14px, 2vw, 26px) 9% 8px; background: repeating-linear-gradient(0deg, var(--stone) 0 44px, var(--stone-2) 44px 45px); }

/* A floor of windows, some with a wrought-iron balcony */
.floor { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 0 12%; padding: 26px 0 30px; }
.floor.balcon::after {
  content: ''; position: absolute; left: -6%; right: -6%; bottom: 0; height: 26px;
  border-top: 3px solid var(--ink); border-bottom: 4px solid var(--ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cg fill='none' stroke='%23170e1c' stroke-width='1.6'%3E%3Cpath d='M12 0v18M0 9c4 0 6-3 6-6M24 9c-4 0-6-3-6-6M0 9c4 0 6 3 6 6M24 9c-4 0-6 3-6 6'/%3E%3Ccircle cx='12' cy='9' r='2.6'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / auto 100%;
  pointer-events: none; z-index: 3;
}

/* ---------- Window with shutters (songs) ---------- */
.win { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--stone); }
/* Tall French windows with simple arched tops and their own iron balconette */
.win { aspect-ratio: 1 / 2; }
.win::after {
  content: ''; position: absolute; left: -9%; right: -9%; bottom: -3px; height: clamp(18px, 2.4vw, 28px); z-index: 3; pointer-events: none;
  border-top: 3px solid var(--ink); border-bottom: 4px solid var(--ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cg fill='none' stroke='%23170e1c' stroke-width='1.6'%3E%3Cpath d='M12 0v18M0 9c4 0 6-3 6-6M24 9c-4 0-6-3-6-6M0 9c4 0 6 3 6 6M24 9c-4 0-6 3-6 6'/%3E%3Ccircle cx='12' cy='9' r='2.6'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / auto 100%;
}
/* Large stone dormers in the lower roof: a broad stone frame that follows the arch, a roller blind inside; the continuous balcony replaces the balconette */
.floor--attic { padding: 34px 0 44px; }
.floor--attic .win::after { display: none; }
.floor--attic .win .pane { box-shadow: 0 0 0 8px var(--stone), 0 0 0 10px var(--stone-2); }
.win .pane { position: absolute; inset: 0; overflow: hidden; border: 4px solid var(--stone); outline: 2px solid var(--stone-2); border-radius: 50% 50% 0 0 / 18% 18% 0 0; background: var(--light); }
.win .pane img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.75); transition: filter .5s; }
.win .pane::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), var(--stone) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(0deg, transparent calc(33% - 1.5px), var(--stone) calc(33% - 1.5px) calc(33% + 1.5px), transparent calc(33% + 1.5px)),
    linear-gradient(0deg, transparent calc(66% - 1.5px), var(--stone) calc(66% - 1.5px) calc(66% + 1.5px), transparent calc(66% + 1.5px));
}
.win .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(22px, 3vw, 34px) var(--display); color: var(--shutter); }
.win .label {
  position: absolute; left: -12%; right: -12%; bottom: -2px; z-index: 4; transform: translateY(40%); opacity: 0;
  padding: 5px 6px; text-align: center; font: 400 clamp(13px, 1.4vw, 16px)/1.15 var(--deco); letter-spacing: .04em; color: var(--stone);
  background: var(--ink); border: 1px solid var(--rose); transition: opacity .35s, transform .35s; pointer-events: none;
}
.shutter { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 3; background: repeating-linear-gradient(180deg, var(--shutter) 0 5px, var(--ink) 5px 6px); border: 3px solid var(--shutter); transform: perspective(700px) rotateY(0); transition: transform .9s cubic-bezier(.2, .75, .25, 1); }
.shutter.l { left: 0; transform-origin: 0 50%; border-radius: 100% 0 0 0 / 18% 0 0 0; }
.shutter.r { right: 0; transform-origin: 100% 50%; border-radius: 0 100% 0 0 / 0 18% 0 0; }
.shutter.l::after, .shutter.r::after { content: ''; position: absolute; top: 46%; width: 4px; height: 12px; background: var(--rose-soft); }
.shutter.l::after { right: 3px; } .shutter.r::after { left: 3px; }
.awake .win.on .shutter.l { transform: perspective(700px) rotateY(-78deg); }
.awake .win.on .shutter.r { transform: perspective(700px) rotateY(78deg); }
.win.on:hover .shutter.l, .win.on:focus-visible .shutter.l { transform: perspective(700px) rotateY(-140deg); }
.win.on:hover .shutter.r, .win.on:focus-visible .shutter.r { transform: perspective(700px) rotateY(140deg); }
.win.on:hover .pane img, .win.on:focus-visible .pane img { filter: none; }
.win.on:hover .label, .win.on:focus-visible .label { opacity: 1; transform: translateY(55%); }
.win.off { cursor: default; }
.win.off .pane { background: var(--night-2); }

/* ---------- Ground-floor windows (videos): arched and shuttered, raised on a sill, their tops level with the top of the fanlight ---------- */
.gwin { display: block; }
/* The door with its fanlight stands 2.45 door-widths tall */
.win.ground-win { aspect-ratio: auto; height: calc(var(--dw) * 2.45 * .66); margin-bottom: calc(var(--dw) * 2.45 * .34); }
.win.ground-win::after { left: -10%; right: -10%; bottom: -10px; height: 10px; border: 0; background: var(--stone); box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 28%, transparent); } /* stone sill */
.win.ground-win .pane { box-shadow: 0 0 0 4px var(--stone); }
/* The street is right below, so the title sits inside the bottom of the window */
.win.ground-win .label, .win.ground-win.on .label, .win.ground-win.on:hover .label, .win.ground-win.on:focus-visible .label { left: -6%; right: -6%; bottom: 8px; transform: none; }

/* ---------- Ground floor: sign, windows and the door ---------- */
.ground { --dw: clamp(96px, 20vw, 160px); position: relative; padding: 16px 9% 0; background: repeating-linear-gradient(0deg, var(--stone-2) 0 26px, var(--stone) 26px 28px); border-top: 6px solid var(--stone); }
.enseigne {
  margin: 0 auto 16px; width: fit-content; max-width: 100%; padding: 7px 22px 5px; text-align: center;
  font: 400 clamp(20px, 3vw, 30px)/1.05 var(--display); color: var(--rose); letter-spacing: .04em;
  background: var(--ink); border: 2px solid var(--rose); outline: 3px solid var(--ink);
}
.enseigne small { display: block; margin-top: 3px; font: 400 11px var(--deco); letter-spacing: .3em; text-transform: uppercase; color: var(--stone); }
.ground-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8%; }
.door {
  position: relative; display: block; width: var(--dw); aspect-ratio: 1 / 1.95; margin: calc(var(--dw) / 2 + 12px) auto 0; padding: 0;
  border: 5px solid var(--stone); border-bottom: 0; border-radius: 3px 3px 0 0; cursor: pointer; perspective: 900px; background: var(--light);
}
.door .fan {
  position: absolute; left: -5px; right: -5px; bottom: calc(100% + 5px); aspect-ratio: 2 / 1;
  border: 5px solid var(--stone); border-bottom: 0; border-radius: 999px 999px 0 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, var(--ink) 0deg 3deg, var(--light) 3deg 18deg);
}
.door .inside { position: absolute; inset: 0; overflow: hidden; padding: 0 3px; display: grid; place-items: center; text-align: center; overflow-wrap: anywhere; font: 400 clamp(11px, 1.4vw, 14px) var(--display); color: var(--ink); letter-spacing: .04em; }
.leaf {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; background: var(--ink); border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 6px var(--shutter);
  transition: transform 1.1s cubic-bezier(.2, .75, .25, 1);
}
.leaf.l { left: 0; transform-origin: 0 50%; }
.leaf.r { right: 0; transform-origin: 100% 50%; }
.leaf.l::after, .leaf.r::after { content: ''; position: absolute; top: 52%; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.leaf.l::after { right: 6px; } .leaf.r::after { left: 6px; }
.door:hover .leaf.l, .door:focus-visible .leaf.l, .door.opening .leaf.l { transform: rotateY(-100deg); }
.door:hover .leaf.r, .door:focus-visible .leaf.r, .door.opening .leaf.r { transform: rotateY(100deg); }

/* Street lamps either side: a tall iron post with a wider base and a large lantern under a cap and finial */
.lamp { --lh: clamp(270px, 30vw, 420px); position: relative; flex: 0 0 clamp(48px, 9vw, 130px); height: 0; align-self: flex-end; z-index: 6; }
.lamp::before {
  content: ''; position: absolute; left: 50%; bottom: 0; width: clamp(7px, .8vw, 10px); height: var(--lh); transform: translateX(-50%); background: var(--ink);
}
.lamp::after {
  content: ''; position: absolute; left: 50%; bottom: var(--lh); width: clamp(30px, 3.4vw, 46px); height: clamp(44px, 5vw, 66px); transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 46%, color-mix(in srgb, var(--ink) 35%, transparent) 46% 54%, transparent 54%), var(--light);
  border-top: clamp(6px, .7vw, 9px) solid var(--ink); border-bottom: 4px solid var(--ink);
  clip-path: polygon(8% 0, 92% 0, 74% 100%, 26% 100%);
}
/* Base and finial */
.lamp i { position: absolute; left: 50%; bottom: 0; width: clamp(18px, 2vw, 26px); height: clamp(26px, 3vw, 38px); transform: translateX(-50%); }
.lamp i::before { content: ''; position: absolute; inset: 0; background: var(--ink); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.lamp i::after { content: ''; position: absolute; left: 50%; bottom: calc(var(--lh) + clamp(44px, 5vw, 66px)); width: 8px; height: 12px; transform: translateX(-50%); background: var(--ink); border-radius: 50% 50% 0 0; }

.pavement { position: relative; z-index: 5; height: 46px; margin-top: -2px; background: var(--roof); border-top: 8px solid var(--stone-2); }
.cobbles {
  position: relative; z-index: 5; padding: 30px var(--pad) 36px; text-align: center; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  background:
    radial-gradient(ellipse 15px 9px at 50% 50%, var(--night-2) 70%, transparent 72%) 0 0 / 34px 22px,
    radial-gradient(ellipse 15px 9px at 50% 50%, var(--night-2) 70%, transparent 72%) 17px 11px / 34px 22px,
    var(--ink);
}
.cobbles p { margin: 0; }
.cobbles a { color: var(--rose-soft); text-decoration: none; border-bottom: 1px solid var(--rose); }

/* ---------- Pop-up ---------- */
dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: transparent; color: var(--stone); }
dialog::backdrop { background: color-mix(in srgb, var(--ink) 85%, transparent); }
dialog[open] .frame { animation: swing .5s cubic-bezier(.2, .8, .25, 1); }
@keyframes swing { from { opacity: 0; transform: perspective(900px) rotateX(-10deg); } to { opacity: 1; transform: none; } }
.frame { position: relative; max-height: calc(100vh - 32px); overflow: auto; padding: clamp(22px, 4vw, 44px); background: var(--ink); border: 2px solid var(--rose); outline: 1px solid var(--rose); outline-offset: -9px; }
.close { position: sticky; float: right; top: 0; margin: -10px -10px 0 10px; width: 40px; height: 40px; z-index: 2; border: 1px solid var(--rose); background: var(--ink); color: var(--rose); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 50%; }
.close:hover { background: var(--rose); color: var(--ink); }
.modal-body h2 { margin: 0 0 6px; font: 400 clamp(30px, 5vw, 46px)/1.05 var(--serif); color: var(--stone); }
.modal-body h3 { margin: 26px 0 10px; padding-bottom: 6px; font: 600 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--rose); border-bottom: 1px solid var(--night-2); }
.modal-body p { margin: 0 0 12px; }
.modal-body .lede, .modal-body .prose p { font: 400 20px/1.5 var(--serif); }
.meta { font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: 14px !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.chips li { padding: 2px 12px; border: 1px solid var(--shutter); border-radius: 99px; font-size: 13px; }
.media-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 8px; }
.cover { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--rose); }
.cover.ph { display: grid; place-items: center; font: 400 64px var(--serif); color: var(--rose); background: var(--night-2); }
.embed { position: relative; width: 100%; margin: 14px 0; border: 1px solid var(--night-2); background: #000; }
.embed.video { aspect-ratio: 16 / 9; }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed.audio iframe { height: 152px; }
.embed.sc iframe { height: 166px; }
audio { width: 100%; margin: 10px 0; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.btn { display: inline-block; padding: 10px 18px; border: 1px solid var(--rose); border-radius: 999px; text-decoration: none; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--rose); cursor: pointer; }
.btn:hover { background: var(--rose-soft); border-color: var(--rose-soft); }
.btn.ghost { color: var(--rose); background: transparent; }
.btn.ghost:hover { color: var(--ink); background: var(--rose); }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px dotted var(--shutter); }
.list button, .list a { display: flex; width: 100%; gap: 12px; align-items: baseline; padding: 10px 2px; background: none; border: 0; text-align: left; color: var(--stone); text-decoration: none; cursor: pointer; font: 400 21px var(--serif); }
.list button:hover, .list a:hover { color: var(--rose); }
.list .dots { flex: 1; border-bottom: 1px dotted var(--shutter); transform: translateY(-5px); }
.list .aside { font: 500 13px var(--sans); color: var(--rose); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.grid button { padding: 0; background: none; border: 1px solid var(--night-2); text-align: left; cursor: pointer; color: var(--stone); }
.grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.grid span { display: block; padding: 8px 10px; font: 400 18px var(--serif); }
.grid button:hover { border-color: var(--rose); }
.empty { font-style: italic; opacity: .8; }

/* ---------- Narrow screens ---------- */
@media (max-width: 700px) {
  .lamp { flex-basis: 18px; }
  .lamp:first-of-type { display: none; }
  .eiffel { left: 80%; height: 108%; }
  .moon { width: 40px; height: 40px; top: 64px; left: auto; right: 7vw; }
  .floor { gap: 0 10%; }
  .floor--attic { padding-top: 28px; }
  /* Narrow ground-floor windows: long video titles stop after three lines so the picture still shows */
  .win.ground-win .label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: 12px; padding-bottom: 0; border-bottom: 5px solid var(--ink); box-shadow: 0 1px 0 var(--rose); }
  .media-row { grid-template-columns: 1fr; }
  .media-row .cover { max-width: 240px; }
}
@media (hover: none) {
  .awake .win.on .shutter.l { transform: perspective(700px) rotateY(-140deg); }
  .awake .win.on .shutter.r { transform: perspective(700px) rotateY(140deg); }
  .awake .win.on .blind { transform: translateY(-88%); }
  .win.on .label { opacity: 1; transform: translateY(55%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Quiet link to the CMS (signing in is handled by Cloudflare Access) */
.cobbles .admin { margin-top: 10px; font-size: 11px; }
.cobbles .admin-link { border: 0; opacity: .45; }
.cobbles .admin-link:hover, .cobbles .admin-link:focus-visible { opacity: 1; text-decoration: underline; }
