/* durina.co: home, /past and /future share this sheet so the hero sits in the
   same place on all three and the hand-off between pages is seamless. */
/* No cross-document view transition: the pages are identical at the hand-off,
   and the browser holds the old frame until the new page's first paint (which
   waits on render-blocking durina.js), so a cross-fade would only expose a frame
   whose large canvases have not been composited yet. */

:root {
  --fs: clamp(60px, 14vw, 200px);
  --futura: Futura, "Futura PT", "Futura Std", Jost, "Century Gothic", sans-serif;
  --void: #f8f8f6;
  --ink: #141414;
  --accent: #141414;
  --grip: #f8f8f6;
  --back-bg: #f8f8f6;
  --thumb-r: 13px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--void); color: var(--ink); }
body { font-family: var(--futura); -webkit-font-smoothing: antialiased; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The world strip: past | void | future, origin at screen centre. */
#world { position: fixed; top: 0; left: 50%; width: 0; height: 100%; will-change: transform; }
#world > * { position: absolute; top: 0; display: block; }
#futureSky { image-rendering: pixelated; image-rendering: crisp-edges; }

.stage { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center;
         justify-content: center; padding-bottom: 6vh; pointer-events: none; }

.hero { position: relative; width: 100vw; height: calc(var(--fs) * 1.3); font-size: var(--fs); }
.layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
         margin: 0; line-height: 1; white-space: nowrap; }
.t-now { font-family: var(--futura); font-weight: 500; font-size: .92em; color: var(--ink); }
.t-past { font-family: "Grenze Gotisch", serif; font-weight: 800; font-size: 1.02em; color: #1c1612;
          -webkit-text-stroke: .08em #f2ead9; paint-order: stroke fill; opacity: 0; visibility: hidden; }
.t-dots { width: 100%; height: 100%; visibility: hidden; }

/* Slot under the hero: the slider at home, the way-back button on /past and /future. */
.slot { position: relative; width: min(560px, 84vw); height: 48px; margin-top: calc(var(--fs) * .04); }
.slider { position: absolute; inset: 0; pointer-events: auto; cursor: grab; touch-action: none; outline: none; }
.slider:active { cursor: grabbing; }
.track { position: absolute; left: 2px; right: 2px; top: 50%; height: 1px; background: var(--accent); opacity: .5; }
.fill { position: absolute; top: 50%; height: 3px; margin-top: -1.5px; background: var(--accent); transform: scaleX(0); }
.fill.past { left: 2px; right: 50%; transform-origin: right center; }
.fill.future { left: 50%; right: 2px; transform-origin: left center; }
.arrow { position: absolute; top: 50%; width: 11px; height: 11px; border-top: 1.5px solid var(--accent); border-left: 1.5px solid var(--accent); }
.arrow.l { left: 3px; transform: translateY(-50%) rotate(-45deg); }
.arrow.r { right: 3px; transform: translateY(-50%) rotate(135deg); }
.tick { position: absolute; left: 50%; top: 50%; width: 1px; height: 14px; margin: -7px 0 0 -.5px; background: var(--accent); opacity: .5; }
.thumb {
  position: absolute; top: 50%; left: 0; width: 76px; height: 26px; margin: -13px 0 0 -38px;
  border: 1.5px solid var(--void); border-radius: var(--thumb-r);
  background:
    linear-gradient(var(--grip), var(--grip)) 50% 50% / 1.5px 10px no-repeat,
    linear-gradient(var(--grip), var(--grip)) calc(50% - 7px) 50% / 1.5px 10px no-repeat,
    linear-gradient(var(--grip), var(--grip)) calc(50% + 7px) 50% / 1.5px 10px no-repeat,
    var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}
.slider:focus-visible .thumb { outline: 2px solid var(--accent); outline-offset: 4px; }

.back { position: absolute; left: 50%; top: 50%; width: 58px; height: 30px; margin: -15px 0 0 -29px;
        display: grid; place-items: center; border: 1.5px solid var(--accent); border-radius: var(--thumb-r);
        background: var(--back-bg); color: var(--accent); opacity: 0; pointer-events: none;
        transition: background-color .2s, color .2s; }
.back:hover, .back:focus-visible { background: var(--accent); color: var(--back-bg); outline: none; }
.back svg { width: 22px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.back.left svg { transform: scaleX(-1); }

/* Under the slot, a fixed-height row: the era buttons at home, the hub links on
   /past and /future. Fixed so the wordmark sits in the same place on every page;
   the hub may spill downward. */
.rows { position: relative; width: min(560px, 84vw); height: 40px; margin-top: 6px; }
.era { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: auto; }
.hub { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 92vw;
       display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; opacity: 0; pointer-events: none;
       animation: hub-in .45s ease-out .1s backwards; }
@keyframes hub-in { from { opacity: 0; transform: translate(-50%, 4px); } }
@media (prefers-reduced-motion: reduce) { .hub { animation: none; } }
.hub-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 1.5px solid var(--accent);
           border-radius: var(--thumb-r); background: var(--back-bg); color: var(--accent); text-decoration: none; cursor: pointer;
           font: 500 11px/1 var(--futura); letter-spacing: .28em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.hub-btn:hover, .hub-btn:focus-visible, .hub-btn.primary { background: var(--accent); color: var(--back-bg); outline: none; }
.hub-btn.primary:hover, .hub-btn.primary:focus-visible { background: var(--back-bg); color: var(--accent); }
.hub-btn:disabled { opacity: .55; cursor: wait; }
.hub-label { cursor: default; }
.hub-label:hover { background: var(--back-bg); color: var(--accent); }
.hub-group { display: inline-flex; align-items: stretch; height: 34px; border: 1.5px solid var(--accent); border-radius: var(--thumb-r);
             background: var(--back-bg); overflow: hidden; }
.hub-group > * { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--accent); }
.hub-group > * + * { border-left: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.hub-who { font: 600 12px/1 var(--futura); }
.hub-who .gold { display: inline-flex; align-items: center; gap: 4px; color: #a77708; }
.hub-who .gold-icon { width: 1em; height: 1em; fill: currentColor; }
.hub-group a { font: 500 10.5px/1 var(--futura); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; }
.hub-group a:hover, .hub-group a:focus-visible { background: var(--accent); color: var(--back-bg); outline: none; }
.hub-logout { height: 34px; margin-left: 12px; padding: 0 12px; font: 500 10.5px/1 var(--futura); letter-spacing: .22em; text-transform: uppercase;
              color: color-mix(in srgb, var(--accent) 70%, #555); background: color-mix(in srgb, var(--back-bg) 82%, transparent);
              border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--thumb-r); cursor: pointer; }
.hub-logout:hover { color: #c43d27; border-color: currentColor; }
.hub-logout:disabled { opacity: .6; cursor: wait; }
/* Phones: one centred column of equal width, Log out small beneath. */
@media (max-width: 560px) {
  .hub { flex-direction: column; flex-wrap: nowrap; width: min(300px, 84vw); gap: 8px; }
  .hub > .hub-btn, .hub-account > .hub-btn, .hub-group { width: 100%; justify-content: center; }
  .hub-group > * { flex: 1; justify-content: center; }
  .hub-group > .hub-who { flex: 0 0 auto; }
  .hub-logout { margin: 2px 0 0; height: 28px; }
}
.hub-note { flex-basis: 100%; margin: 4px 0 0; text-align: center; }
.hub-note span { display: inline-block; padding: 3px 12px 4px; background: var(--back-bg); color: var(--accent);
                 font: italic 500 17px/1.3 "Cormorant Garamond", serif; }
.hub-account { display: contents; }
.hub [hidden] { display: none !important; }
.era button { font: 500 11px/1 var(--futura); letter-spacing: .32em; text-transform: uppercase; color: var(--accent);
              background: none; border: 0; padding: 8px 0; opacity: .6; cursor: pointer; }
.era button:hover, .era button:focus-visible { opacity: 1; outline: none; }

.hint { position: fixed; left: 0; right: 0; bottom: 4vh; margin: 0; text-align: center; pointer-events: none;
        font: 400 11px/1 var(--futura); letter-spacing: .4em; text-transform: uppercase; color: #8b8e94;
        transition: opacity .8s; }
.hint.gone, body:not([data-page="home"]) .hint { opacity: 0; }
