/* Astylab: the city.
   Colour and type follow the brand boards. Fraunces and Instrument Sans have no Greek,
   so the voice is set in Literata and the facts in Inter Tight. */

@font-face { font-family: "Literata"; src: url("assets/fonts/literata-greek-opsz-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Literata"; src: url("assets/fonts/literata-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Literata"; font-style: italic; src: url("assets/fonts/literata-greek-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Literata"; font-style: italic; src: url("assets/fonts/literata-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Inter Tight"; src: url("assets/fonts/inter-tight-greek-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Inter Tight"; src: url("assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --deep-sky: #165EC4; --noon-sky: #2E92D8; --haze: #92D4EC; --cloud: #FAF8F0;
  --leaf-shade: #103A38; --leaf: #2E6854; --sunlit: #8AC694; --lime: #C4DE7C;
  --facade: #FFEEC8; --orange: #F4842A; --boug: #CE3080; --jac: #926CD4;
  --solar: #3A3CAC; --terra: #CC6C46; --wood: #A4703E; --violet: #6E4678;
  --voice: "Literata", "Iowan Old Style", Georgia, serif;
  --facts: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --foot: 44px;
  --shadow: 0 18px 48px rgb(110 70 120 / .38), 0 2px 6px rgb(110 70 120 / .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.5 var(--facts); color: var(--leaf-shade); background: var(--cloud); }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: var(--deep-sky); text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
svg { display: block; overflow: visible; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--cloud); color: var(--leaf-shade); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

/* placeholders for facts still to be filled in: meant to be seen */
.gap { font-style: normal; font-family: var(--facts); font-weight: 500; font-size: .86em; color: #8A3B00; background: rgb(244 132 42 / .14); outline: 1.5px dashed var(--orange); outline-offset: 1px; border-radius: 4px; padding: 0 .3em; white-space: nowrap; }

/* ---------- header, intro: shared by both views ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 3vw, 40px) 0; }
.mark { font: 900 28px/1 var(--voice); letter-spacing: -.035em; color: var(--cloud); text-decoration: none; font-variation-settings: "opsz" 72; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pill, .seg button, .tool { appearance: none; border: 0; cursor: pointer; background: var(--cloud); color: var(--leaf-shade); font: 600 15px/1 var(--facts); padding: 11px 16px; border-radius: 999px; box-shadow: 0 2px 0 rgb(16 58 56 / .25); }
.pill:hover, .tool:hover { background: var(--facade); }
a.pill { text-decoration: none; display: inline-block; }
.seg { display: inline-flex; background: var(--cloud); border-radius: 999px; padding: 3px; box-shadow: 0 2px 0 rgb(16 58 56 / .25); }
.seg button { box-shadow: none; padding: 8px 14px; background: transparent; }
.seg button[aria-pressed="true"] { background: var(--leaf-shade); color: var(--cloud); }
/* the language switch: two short links in the same shape */
.seg.lang a, .seg.lang span { font: 600 15px/1 var(--facts); padding: 8px 12px; border-radius: 999px; color: var(--leaf-shade); text-decoration: none; }
.seg.lang [aria-current="true"] { background: var(--leaf-shade); color: var(--cloud); }
/* on a phone the switch sits in the first row, beside city/list, so the bar stays two rows */
@media (max-width: 720px) { .seg.lang a, .seg.lang span { font-size: 14px; padding: 7px 10px; } .nav > .pill { order: 2; } }

.intro { padding: clamp(20px, 4vh, 44px) clamp(16px, 3vw, 40px) 0; color: var(--cloud); max-width: 46rem; }
h1 { font: 900 clamp(40px, 5vw, 76px)/.94 var(--voice); letter-spacing: -.035em; font-variation-settings: "opsz" 72; text-wrap: balance; max-width: 9.2em; }
/* the home page shows no headline: the sentence stays for screen readers and search engines only */
.intro.home { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.lede { font: 500 clamp(18px, 1.5vw, 22px)/1.35 var(--facts); margin-top: 18px; }
.intro .picks { font: 500 15px/1.4 var(--facts); margin-top: 10px; opacity: .92; }
.intro .picks a { color: inherit; text-underline-offset: 3px; }
.hint { position: absolute; left: clamp(12px, 2vw, 28px); bottom: 16px; z-index: 4; pointer-events: none; font: italic 500 16px/1.3 var(--voice); color: var(--cloud); background: var(--leaf-shade); padding: 9px 15px 10px; border-radius: 999px; box-shadow: 0 2px 0 rgb(16 58 56 / .25); }

/* ---------- list view (default, and what you get without JavaScript) ---------- */
body { background: var(--deep-sky); }
main { display: block; }
.city { display: none; }
.list { background: var(--cloud); margin-top: clamp(28px, 5vh, 56px); padding: clamp(28px, 5vw, 64px) clamp(16px, 3vw, 40px) 64px; border-radius: 28px 28px 0 0; }
.list-head { max-width: 44rem; margin-bottom: 28px; }
.list h2 { font: 900 clamp(30px, 3.4vw, 44px)/1 var(--voice); letter-spacing: -.03em; font-variation-settings: "opsz" 60; margin-bottom: 14px; }
.filters[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.filters button { appearance: none; cursor: pointer; border: 1.5px solid var(--leaf-shade); background: transparent; color: var(--leaf-shade); font: 600 15px/1 var(--facts); padding: 10px 15px; border-radius: 999px; }
.filters button[aria-pressed="true"] { background: var(--leaf-shade); color: var(--cloud); }
.district { margin-bottom: 44px; }
.district[hidden] { display: none; }
.district h3 { font: italic 600 22px/1.2 var(--voice); color: var(--leaf); margin-bottom: 6px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; padding: 20px 0; border-top: 1.5px solid rgb(16 58 56 / .16); }
.row h4 { font: 800 24px/1.15 var(--voice); letter-spacing: -.02em; font-variation-settings: "opsz" 36; }
.row h4 a { color: inherit; text-decoration: none; }
.row h4 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.row .line { margin-top: 6px; max-width: 40rem; }
.row .by { font: italic 500 17px/1.4 var(--voice); margin-top: 6px; color: var(--leaf); }
.row .side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 15px; }
.row .year { font: 700 15px/1 var(--facts); font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font: 600 13px/1 var(--facts); padding: 6px 9px; border-radius: 6px; background: rgb(146 108 212 / .18); color: #4A2F86; }
.tag.status { background: rgb(204 108 70 / .18); color: #7A3418; }
.tag.call { background: var(--solar); color: var(--cloud); text-decoration: none; }
a.tag.call:hover { background: var(--deep-sky); }
.row .go { font-weight: 600; word-break: break-word; }
/* the residents in the list: the figure from the city, then name, role and what they built */
.residents .lede-small { max-width: 40rem; margin: 2px 0 12px; font-size: 15px; color: var(--leaf); }
.row.person { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 18px; align-items: start; }
.row.person svg.face { width: 64px; height: 72px; }
.row.person .by { font-size: 18px; margin-top: 3px; }
.row.person .built { font-size: 15px; color: var(--leaf); }
.row.person .built a { color: inherit; }
.ways-static, .about-static { max-width: 44rem; margin-top: 64px; }
.about-static p + p, .sheet-body p + p { margin-top: 14px; }

.ways { display: grid; gap: 0; }
.ways li { padding: 13px 0; border-top: 1.5px solid rgb(16 58 56 / .16); }
.ways h3 { font: 800 22px/1.15 var(--voice); letter-spacing: -.02em; }
.ways p { margin-top: 4px; }
.ways .acts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; align-items: center; }

.foot { background: var(--leaf-shade); color: var(--cloud); display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; padding: 22px clamp(16px, 3vw, 40px); font-size: 15px; }
.foot a { color: var(--cloud); }

/* ---------- city view ---------- */
html[data-view="city"], html[data-view="city"] body { height: 100%; overflow: hidden; }
html[data-view="city"] .list { display: none; }
html[data-view="city"] .city { display: block; position: fixed; inset: 0 0 var(--foot) 0; background: var(--deep-sky); }
html[data-view="city"] .top { position: fixed; inset: 0 0 auto 0; z-index: 6; pointer-events: none; }
html[data-view="city"] .top > * { pointer-events: auto; }
html[data-view="city"] .foot { position: fixed; inset: auto 0 0 0; height: var(--foot); padding-block: 0; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; z-index: 6; font-size: 14px; }

.stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  background: linear-gradient(var(--deep-sky) 0 55%, var(--leaf-shade) 55%); }
.stage.dragging { cursor: grabbing; }
.stage.dragging .place { pointer-events: none; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.world.glide { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.world > * { position: absolute; }
/* SVG text inside a scaled layer: without this Chrome lays the glyphs out at one zoom and paints them at another */
svg text { text-rendering: geometricPrecision; }
.layer, .decor, .tether, .swallow { pointer-events: none; }
.decor.kite, .tram { pointer-events: auto; cursor: pointer; }
.place { appearance: none; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; border-radius: 10px; transition: transform .16s ease-out; }
.place:hover, .place:focus-visible { transform: translateY(-5px); }
.place:focus-visible { outline: calc(3.5px / var(--k, 1)) solid var(--orange); outline-offset: calc(4px / var(--k, 1)); }
.place .ghost { transition: fill-opacity .2s; }
.place:hover .ghost { fill-opacity: .35; }
/* the residents: small figures, so the place to press reaches a little past the drawing, the same at any zoom */
.place.person::before { content: ""; position: absolute; inset: calc(-8px / var(--k, 1)); }
/* the rest of the city, far off: only the blocks themselves answer, not the sky between them */
.place.far { pointer-events: none; border-radius: 0; }
.place.far svg > g { pointer-events: auto; cursor: pointer; transition: transform .16s ease-out; }
.stage.dragging .place.far svg > g { pointer-events: none; }
.place.far:hover, .place.far:focus-visible { transform: none; }
.place.far:hover svg > g, .place.far:focus-visible svg > g { transform: translateY(-4px); }

.grain { position: absolute; inset: 0; pointer-events: none; background: url("assets/grain.png"); background-size: 320px 320px; mix-blend-mode: multiply; opacity: .42; z-index: 2; }

/* flag labels: the name tags from the brand boards */
.flags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.flag { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .14s; will-change: transform; }
.flag.on { opacity: 1; }
.flag .tagbox { position: absolute; left: 0; bottom: var(--pole, 26px); transform: translateX(calc(-50% + var(--dx, 0px))); background: var(--leaf-shade); color: var(--cloud); padding: 7px 12px 8px; border-radius: 3px; text-align: center; white-space: nowrap; box-shadow: 0 6px 16px rgb(110 70 120 / .35); }
.flag b { display: block; font: 800 17px/1.1 var(--voice); letter-spacing: -.01em; }
.flag span { display: block; font: 600 11px/1 var(--facts); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.flag::before { content: ""; position: absolute; left: -1px; bottom: 0; width: 2px; height: var(--pole, 26px); background: var(--cloud); }
.flag::after { content: ""; position: absolute; left: -4.5px; bottom: -4.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--cloud); }
.flag.person b { font-size: 15px; }
.flag.person span { font: italic 500 13px/1.1 var(--voice); letter-spacing: 0; text-transform: none; margin-top: 3px; }
.flag.call { opacity: 1; }
.flag.call .tagbox { background: var(--solar); bottom: auto; top: 4px; }
.flag.call::before, .flag.call::after { display: none; }

.tools { position: absolute; right: clamp(12px, 2vw, 28px); bottom: 16px; z-index: 4; display: flex; gap: 8px; align-items: center; }
.tool { padding: 10px 14px; font-size: 14px; }
.tool.sq { width: 40px; height: 40px; padding: 0; font: 600 22px/1 var(--facts); }
.tool[aria-pressed="true"] { background: var(--leaf-shade); color: var(--cloud); }

.hint { transition: opacity .25s, visibility .25s; }
html.away .hint, html.timing .hint { opacity: 0; visibility: hidden; }
/* ---------- time: «Πώς φτάσαμε εδώ» ---------- */
.time { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 68px; display: flex; align-items: center; gap: 10px; padding: 7px 8px; background: var(--leaf-shade); color: var(--cloud); border-radius: 999px; box-shadow: 0 6px 22px rgb(16 58 56 / .28); }
.time[hidden] { display: none; }
.time .tool.sq { flex: none; display: grid; place-items: center; box-shadow: none; }
.time .track { position: relative; flex: 1; min-width: 0; height: 40px; display: grid; align-items: center; }
.time input { appearance: none; -webkit-appearance: none; width: 100%; height: 40px; margin: 0; background: none; cursor: pointer; }
.time input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgb(250 248 240 / .3); }
.time input::-moz-range-track { height: 4px; border-radius: 2px; background: rgb(250 248 240 / .3); }
.time input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--cloud); border: 0; box-shadow: 0 1px 4px rgb(0 0 0 / .35); }
.time input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cloud); border: 0; box-shadow: 0 1px 4px rgb(0 0 0 / .35); }
.time input:focus-visible { outline: none; }
.time input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--leaf-shade), 0 0 0 5px var(--cloud); }
.time input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--leaf-shade), 0 0 0 5px var(--cloud); }
/* a mark at every month something happened; the thumb's centre travels 9px in from each end */
.time .ticks { position: absolute; left: 9px; right: 9px; top: 50%; pointer-events: none; }
.time .ticks i { position: absolute; top: 6px; width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: rgb(250 248 240 / .6); }
.time output { flex: none; min-width: 5.4em; text-align: center; font: 800 16px/1 var(--voice); font-variant-numeric: tabular-nums; }
.tool[aria-expanded="true"] { background: var(--leaf-shade); color: var(--cloud); }
@media (min-width: 900px) { .time { left: clamp(12px, 2vw, 28px); right: auto; bottom: 16px; width: min(540px, 44vw); } }
.place.later, .decor.later, .tether.later, .flag.later { visibility: hidden; }
.place.unsold .sold { display: none; }

/* ---------- the card: a postcard from the building ---------- */
dialog { border: 0; padding: 0; color: var(--leaf-shade); background: var(--cloud); box-shadow: var(--shadow); max-width: none; }
dialog::backdrop { background: rgb(16 58 56 / .42); }
.card { width: min(600px, calc(100vw - 24px)); border-radius: 6px; overflow: visible; }
/* a long card scrolls inside itself, so the close button stays on its corner */
dialog.card .card-body { max-height: calc(100dvh - 5.5em); overflow-y: auto; overscroll-behavior: contain; }
dialog.card .card-body:focus-visible { outline: none; }
.card-edge { height: 12px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(-45deg, var(--orange) 0 14px, var(--cloud) 14px 22px, var(--deep-sky) 22px 36px, var(--cloud) 36px 44px); }
.card-body { padding: 26px 28px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 4px 22px; }
.card-meta .gap { margin-left: .6em; letter-spacing: 0; text-transform: none; }
.card-meta { grid-column: 1; font: 600 13px/1.2 var(--facts); letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }
.card h2, .card h1 { grid-column: 1; font: 900 clamp(30px, 6vw, 40px)/1 var(--voice); letter-spacing: -.03em; font-variation-settings: "opsz" 60; margin-top: 8px; overflow-wrap: anywhere; }
.card-line { grid-column: 1; margin-top: 12px; font-size: 18px; line-height: 1.45; }
.card-by a, .row .by a { color: inherit; text-underline-offset: 3px; }
/* a resident's card: the role they play in the city, their own line, what they built, what they have said */
.card-role { grid-column: 1; margin-top: 10px; font: italic 600 21px/1.25 var(--voice); color: var(--leaf); }
.card-role span { font: 500 15px/1.25 var(--facts); font-style: normal; }
.card-extra.said ul { display: block; }
.card-extra.said li { padding: 0; background: none; border-radius: 0; font: 500 15px/1.4 var(--facts); }
.card-extra.said li + li { margin-top: 7px; }
.card-extra.said li a { color: var(--leaf-shade); text-underline-offset: 3px; }
.card-extra.said li span { font: 600 12px/1 var(--facts); color: var(--leaf); white-space: nowrap; margin-left: 4px; }
.card-by { grid-column: 1; font: italic 500 19px/1.35 var(--voice); margin-top: 12px; color: var(--leaf); }
.card-extra { grid-column: 1 / -1; margin-top: 16px; }
.card-extra h3 { font: 600 13px/1.2 var(--facts); letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); margin-bottom: 8px; }
.card-extra ul { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.card-extra li { font: 600 15px/1 var(--facts); padding: 8px 11px; border-radius: 6px; background: rgb(46 146 216 / .16); }
.card-extra li a { color: inherit; }
.callbox { background: var(--solar); color: var(--cloud); border-radius: 6px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; }
.callbox a { color: var(--cloud); font-weight: 700; }
.callbox .gap, .flag .gap { color: var(--cloud); background: rgb(250 248 240 / .16); outline-color: var(--cloud); }
.player { border-radius: 12px; overflow: hidden; background: var(--leaf-shade); }
.player iframe { display: block; width: 100%; height: 352px; border: 0; }
.stamp { grid-column: 2; grid-row: 1 / span 4; align-self: start; width: 136px; height: 156px; background: var(--facade); position: relative; display: grid; place-items: center;
  --r: 4px;
  -webkit-mask: radial-gradient(circle, #000 calc(var(--r) - .6px), #0000 var(--r)) 0 0 / calc(var(--r) * 2) calc(var(--r) * 2) round, linear-gradient(#000 0 0) center / calc(100% - var(--r) * 2) calc(100% - var(--r) * 2) no-repeat;
  mask: radial-gradient(circle, #000 calc(var(--r) - .6px), #0000 var(--r)) 0 0 / calc(var(--r) * 2) calc(var(--r) * 2) round, linear-gradient(#000 0 0) center / calc(100% - var(--r) * 2) calc(100% - var(--r) * 2) no-repeat; }
.stamp .pic { width: 108px; height: 128px; background: linear-gradient(var(--noon-sky) 0 66%, var(--leaf) 66%); display: grid; place-items: end center; overflow: hidden; padding-bottom: 7px; }
.postmark { grid-column: 2; grid-row: 4 / span 2; justify-self: start; align-self: start; margin: -34px 0 0 -26px; width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--violet); color: var(--violet); display: grid; place-content: center; text-align: center; transform: rotate(-14deg); font: 700 10px/1.1 var(--facts); letter-spacing: .14em; text-transform: uppercase; opacity: .85; z-index: 1; position: relative; background: rgb(250 248 240 / .5); }
.postmark b { display: block; font: 900 19px/1 var(--voice); letter-spacing: 0; margin: 3px 0; }
.actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.btn { appearance: none; border: 0; cursor: pointer; display: inline-block; text-decoration: none; background: var(--leaf-shade); color: var(--cloud); font: 600 16px/1.2 var(--facts); padding: 13px 20px; border-radius: 999px; }
.btn:hover { background: var(--deep-sky); }
.btn.ghost { background: transparent; color: var(--leaf-shade); box-shadow: inset 0 0 0 1.5px var(--leaf-shade); }
.btn.ghost:hover { background: rgb(16 58 56 / .08); }
.share { appearance: none; flex: none; width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: none; color: var(--leaf); border: 1.5px solid color-mix(in srgb, var(--leaf) 38%, transparent); }
.share:hover { color: var(--leaf-shade); border-color: var(--leaf-shade); }
.share.done { background: var(--leaf-shade); border-color: var(--leaf-shade); color: var(--cloud); }
.shared { margin-left: auto; font: 500 13px/1.2 var(--facts); color: var(--leaf); }
.card-note { grid-column: 1; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--leaf); }
.card-note a { color: inherit; }
a.tag { text-decoration: none; }
a.tag:hover { text-decoration: underline; }
.nolink { font-size: 15px; color: var(--leaf); }
/* one way to close every card and panel: a round button on the corner. Esc and a click outside work too. */
.x { appearance: none; border: 0; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cloud); color: var(--leaf-shade); font: 600 24px/1 var(--facts); box-shadow: inset 0 0 0 1.5px var(--leaf-shade), 0 2px 0 rgb(16 58 56 / .25); }
.x:hover { background: var(--facade); }
.card .x { position: absolute; top: -16px; right: -12px; }
.sheet .x { position: sticky; top: 12px; float: right; margin: 12px 12px 0 8px; z-index: 1; }

.sheet { width: min(680px, calc(100vw - 24px)); max-height: min(86vh, 860px); border-radius: 14px; }
.sheet-body { padding: 30px clamp(20px, 4vw, 38px) 26px; }
.sheet h2 { font: 900 clamp(30px, 5vw, 42px)/1 var(--voice); letter-spacing: -.03em; font-variation-settings: "opsz" 60; margin-bottom: 16px; }
.about-big { font: 800 24px/1.2 var(--voice); letter-spacing: -.02em; }
.about-static h3, #about h3 { font: 800 21px/1.2 var(--voice); letter-spacing: -.015em; margin-top: 24px; }
.about-static h3 + p, #about h3 + p { margin-top: 6px; }
.about-static .fine, #about .fine { margin-top: 26px; font-size: 14px; color: var(--leaf); }
/* Astylab elsewhere: a row of round buttons under the About text */
/* the round buttons stand apart from the section above them: they belong to the whole sheet, not to its last heading */
.social { display: flex; gap: 8px; }
.about-static p.social, #about p.social { margin-top: 44px; }
.social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-shade); color: var(--cloud); font: 800 15px/1 var(--facts); text-decoration: none; }
.about-static p.social + .fine, #about p.social + .fine { margin-top: 18px; }
.social a:hover { background: var(--deep-sky); }

/* ---------- library page ---------- */
/* a place's own page: its postcard, standing on the sky */
.solo { display: grid; justify-items: center; padding: clamp(24px, 7vh, 72px) 12px 80px; }
.card.static { position: relative; background: var(--cloud); box-shadow: var(--shadow); color: var(--leaf-shade); }
.notfound { color: var(--cloud); text-align: center; gap: 14px; }
.notfound h1 { font: 900 clamp(30px, 5vw, 48px)/1.05 var(--voice); letter-spacing: -.03em; margin-top: 10px; text-wrap: balance; }
.notfound p { font: 500 19px/1.4 var(--facts); max-width: 30rem; }
.notfound .pill { display: inline-block; margin-top: 12px; }
.notfound svg { max-width: 60vw; height: auto; }
/* the same page, framed as a picture for link previews: tools/make-cards.mjs photographs it */
html.og, html.og body { height: 100%; overflow: hidden; }
html.og .nav, html.og .foot, html.og .actions, html.og .card-extra { display: none; }
html.og .top { position: absolute; left: 0; right: 0; top: 0; }
html.og main { height: 100%; }
html.og .solo { height: 100%; padding: 0; align-content: center; }
html.og body { background: linear-gradient(var(--deep-sky) 35%, var(--noon-sky)); }
html.og .card.static { width: 600px; transform: scale(var(--fit, 1.5)); }
.page { background: var(--cloud); margin-top: clamp(28px, 5vh, 56px); padding: clamp(28px, 5vw, 64px) clamp(16px, 3vw, 40px) 64px; border-radius: 28px 28px 0 0; min-height: 60vh; }
.page .row h4 { font-size: 21px; line-height: 1.2; text-wrap: balance; }
.page .row { padding: 16px 0; }
.page .row .by { margin-top: 4px; }
.page .row .by a { color: inherit; }
.page .row .by + .by { font-size: 15px; }
/* long shelves read better in two columns */
@media (min-width: 900px) { .page .district ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; } }
.page .note { margin-top: 6px; max-width: 40rem; }
/* «Απολογισμός»: a year at a time */
.report { max-width: 44rem; font-size: 18px; line-height: 1.6; }
.report h2 { font: 900 clamp(40px, 6vw, 56px)/1 var(--voice); letter-spacing: -.03em; font-variation-settings: "opsz" 60; }
.report h3 { font: 700 26px/1.18 var(--voice); letter-spacing: -.015em; margin: 52px 0 16px; }
.report h4 { font: 600 16px/1.3 var(--facts); }
.yearpick { display: flex; gap: 8px; margin-bottom: 72px; }
.yearpick button { font: 600 16px/1 var(--facts); font-variant-numeric: tabular-nums; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--leaf-shade); background: none; color: var(--leaf-shade); cursor: pointer; }
.yearpick button[aria-pressed="true"] { background: var(--leaf-shade); color: var(--cloud); }
.yearpick:not([hidden]) ~ .year > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.yearpick:not([hidden]) ~ .year > h2 + h3 { margin-top: 0; }
.year + .year { margin-top: 72px; }
.letter details { margin-top: 18px; }
/* the rest of the letter keeps the same space between paragraphs as its opening */
.letter details > * + * { margin-top: 18px; }
.letter details > summary + * { margin-top: 0; }
.letter summary { cursor: pointer; font: 600 16px/1.3 var(--facts); color: var(--leaf); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.letter summary::-webkit-details-marker { display: none; }
.letter details[open] summary { display: none; }
.figures { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.figures b { display: block; font: 900 clamp(40px, 6vw, 52px)/1 var(--voice); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.figures h4 { margin-top: 8px; }
.figures .change { margin-top: 2px; font: 600 14px/1.4 var(--facts); color: var(--leaf); }
.figures .what { margin-top: 8px; font-size: 15px; line-height: 1.5; }
.sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 18px; font: 500 15px/1.3 var(--facts); }
.sum b { display: block; font: 900 clamp(26px, 4vw, 34px)/1.1 var(--voice); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sum i { font: 400 26px/1 var(--facts); color: var(--leaf); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: 24px; }
.split dl { margin: 8px 0 0; }
.split dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--leaf) 22%, transparent); font-size: 16px; }
.split dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
/* «Τι είπαμε, τι έγινε»: the report's own words beside what happened */
.said { list-style: none; margin-top: 18px; }
.said li { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; padding: 18px 0; border-top: 1px solid color-mix(in srgb, var(--leaf) 22%, transparent); }
.said b { display: block; margin-bottom: 4px; font: 600 14px/1.3 var(--facts); color: var(--leaf); }
.said .was { font: italic 500 17px/1.5 var(--voice); color: var(--leaf); }
.said .now { font-size: 17px; line-height: 1.5; }
.said .see { display: block; margin-top: 6px; font: 600 15px/1.4 var(--facts); }
@media (max-width: 560px) { .said li { grid-template-columns: 1fr; } }
.report .fine { margin-top: 36px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--leaf) 22%, transparent); font-size: 14px; color: var(--leaf); }
.thanks p + p { margin-top: 14px; }
@media (max-width: 560px) { .figures, .split { grid-template-columns: 1fr; } }
/* under the card on a place's page: its years, then its stories, each on a sheet of the card's paper */
.more { width: min(600px, calc(100vw - 24px)); margin-top: 24px; display: grid; gap: 24px; }
.more section { background: var(--cloud); color: var(--leaf-shade); border-radius: 6px; box-shadow: var(--shadow); padding: 28px 28px 30px; }
.more h2 { font: 700 26px/1.18 var(--voice); letter-spacing: -.015em; margin-bottom: 14px; text-wrap: balance; }
.years > div { display: grid; grid-template-columns: 4rem 1fr; gap: 0 12px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--leaf) 22%, transparent); }
.years > div:last-child { padding-bottom: 0; }
.years dt { font: 700 17px/1.5 var(--facts); font-variant-numeric: tabular-nums; color: var(--leaf); }
.years dd { margin: 0; font-size: 17px; line-height: 1.5; }
/* a year's full write-up, folded under its line: a link while closed, a heading over the whole text once open */
.years dd.full { grid-column: 2; margin-top: 8px; }
.years dd.full:has(details[open]) { grid-column: 1 / -1; margin-top: 20px; }
.full summary { cursor: pointer; list-style: none; font: 600 16px/1.4 var(--facts); color: var(--leaf); text-decoration: underline; text-underline-offset: 3px; }
.full summary::-webkit-details-marker { display: none; }
/* arriving from an address that ends in the year, the title does not touch the top of the screen */
.full details { scroll-margin-top: 28px; }
.full details[open] summary { font: 700 22px/1.22 var(--voice); letter-spacing: -.015em; color: var(--leaf-shade); text-decoration: none; text-wrap: balance; }
.full .post { margin-top: 16px; font-size: 17px; line-height: 1.6; }
.full .post .fine { margin-top: 22px; padding-top: 12px; }
.story { font-size: 17px; line-height: 1.6; }
.story + .story { margin-top: 36px; padding-top: 30px; border-top: 1px solid color-mix(in srgb, var(--leaf) 22%, transparent); }
.story .fine { margin-top: 22px; padding-top: 12px; }
.card-more { font: 600 15px/1.3 var(--facts); }
.card-more a { color: var(--leaf-shade); text-underline-offset: 3px; }
html.og .more { display: none; }
@media (max-width: 560px) { .more section { padding: 22px 18px 24px; } }
.prose { max-width: 40rem; }
.prose p + p { margin-top: 14px; }
/* the top of the transparency page: what can be found, and where */
.trans { font-size: 18px; line-height: 1.6; margin-bottom: 56px; }
.trans > * + * { margin-top: 18px; }
.find { list-style: none; border-top: 1px solid color-mix(in srgb, var(--leaf) 22%, transparent); }
.find li { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--leaf) 22%, transparent); }
.find strong { display: block; font: 700 19px/1.3 var(--voice); letter-spacing: -.01em; text-wrap: balance; }
.find span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--leaf); }
.papers { margin-top: 36px; padding: 22px 24px 24px; border-radius: 18px; background: color-mix(in srgb, var(--leaf) 9%, transparent); }
.papers h2 { font: 700 22px/1.2 var(--voice); letter-spacing: -.015em; }
.papers p { margin-top: 8px; font-size: 16px; }
.papers p + p { margin-top: 16px; }
/* the long text of the transparency page */
.post-title { margin-top: 0 !important; font-size: clamp(24px, 2.4vw, 30px) !important; }
.post .fine { margin-top: 44px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--leaf) 22%, transparent); font-size: 14px; color: var(--leaf); }
.post { font-size: 18px; line-height: 1.6; }
.post > * + * { margin-top: 18px; }
.post h2, .post h3 { font: 700 26px/1.18 var(--voice); letter-spacing: -.015em; color: var(--leaf-shade); margin-top: 44px; text-wrap: balance; }
.post h3 { font-size: 22px; margin-top: 36px; }
.post h2 a, .post h3 a { color: inherit; }
.post ul, .post ol { padding-left: 1.3em; }
.post li + li { margin-top: 8px; }
.post blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--leaf); font: italic 500 19px/1.55 var(--voice); }
.post a { overflow-wrap: anywhere; }

/* ---------- life layer: quiet, and off when the visitor asks for less motion ---------- */
.rotor, .laundry, .cloth, .wing { transform-box: fill-box; }
.rotor { transform-origin: 50% 50%; }
.laundry { transform-origin: 50% 0; }
.cloth { transform-origin: 0 50%; }
.tram { left: 0; transform: translateX(1395px); }
@media (prefers-reduced-motion: no-preference) {
  /* a place arriving, while time runs */
  @keyframes arrive { from { opacity: 0; transform: translateY(18px) scale(.9); } }
  .place.arrive { animation: arrive .42s cubic-bezier(.2, .9, .3, 1.25) both; transform-origin: 50% 100%; }
  .rotor { animation: spin var(--t, 9s) linear infinite; animation-delay: var(--d, 0s); }
  .laundry { animation: sway 3.6s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
  .cloth { animation: flap 2.8s ease-in-out infinite alternate; }
  .wave { animation: pulse 2.4s ease-out infinite; animation-delay: var(--d, 0s); }
  .bulb { animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
  .blink { animation: twinkle 1.8s steps(2) infinite; }
  /* a firefly goes almost dark between two glows; each has its own beat */
  .firefly { animation: firefly 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
  .clouds { animation: drift 120s ease-in-out infinite alternate; }
  .clouds.slow { animation-duration: 200s; }
  .tram { animation: route 52s linear infinite; }
  .swallow { animation: fly 26s ease-in-out infinite; }
  .swallow.s1 { animation-duration: 34s; animation-delay: -9s; }
  .swallow.s2 { animation-duration: 30s; animation-delay: -15s; animation-direction: reverse; }
  .swallow.s3 { animation-duration: 38s; animation-delay: -4s; }
  .swallow.s4 { animation-duration: 28s; animation-delay: -20s; animation-direction: reverse; }
  .swallow .wing { transform-origin: 100% 100%; animation: wing .5s ease-in-out infinite alternate; }
  .swallow .wing.r { transform-origin: 0 100%; }
  .kite { animation: bob 7s ease-in-out infinite alternate; }
  /* the one resident who is on the move: she sways as she rides. Not "glide": that name is the camera's, on .world */
  .ride { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 2.6s ease-in-out infinite alternate; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes flap { from { transform: skewY(-5deg) scaleX(.94); } to { transform: skewY(5deg) scaleX(1); } }
@keyframes pulse { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes firefly { 0%, 100% { opacity: .12; } 45%, 60% { opacity: 1; } }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(60px); } }
@keyframes wing { from { transform: scaleY(1); } to { transform: scaleY(.25); } }
@keyframes bob { from { transform: translate(-3px, 2px) rotate(-1.5deg); } to { transform: translate(4px, -3px) rotate(2deg); } }
@keyframes fly {
  0% { transform: translate(0, 0); } 25% { transform: translate(190px, -50px); } 50% { transform: translate(330px, 26px); }
  75% { transform: translate(150px, 70px) scaleX(-1); } 100% { transform: translate(0, 0) scaleX(-1); }
}
/* depot → stop at ΣΜΟΛ → the ventures, then round again */
@keyframes route {
  0% { transform: translateX(60px); opacity: 0; } 3% { opacity: 1; transform: translateX(90px); animation-timing-function: ease-out; }
  38% { transform: translateX(1395px); } 52% { transform: translateX(1395px); animation-timing-function: ease-in; }
  95% { transform: translateX(2620px); opacity: 1; } 100% { transform: translateX(2700px); opacity: 0; }
}

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top { padding-top: 12px; }
  .mark { font-size: 24px; }
  .pill, .seg button { font-size: 14px; padding: 9px 12px; }
  .seg button { padding: 7px 11px; }
  .hint { display: none; }
  .row { grid-template-columns: 1fr; }
  .row.person { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; }
  .row.person svg.face { width: 52px; height: 60px; }
  .row .side { text-align: left; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
  .card-body { grid-template-columns: 1fr; padding: 20px 18px 18px; }
  .stamp { grid-column: 1; grid-row: auto; order: -1; margin-bottom: 10px; }
  .postmark { display: none; }
  .player iframe { height: 152px; }
  .tool#names { display: none; }
  .card .x { right: -6px; }
}

/* ---------- dusk ---------- */
/* what only shows once the sun is down: stars, the moon, the glow around a lamp */
.night { visibility: hidden; }
html[data-light="dusk"] .world .night { visibility: visible; }
html[data-light="dusk"] .city, html[data-light="dusk"] .stage { background: #0F1547; }
/* the paper grain darkens what is under it: at dusk there is less of it, so the evening stays readable */
html[data-light="dusk"] .grain { opacity: .24; }
.tool.sq svg { margin: auto; }
/* while the light turns, the stage dims for a moment and the colours change behind it */
.dim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: #141A4E; opacity: 0; transition: opacity .45s ease-out; }
.dim.on { opacity: .8; transition: opacity .24s ease-in; }
