/* oakvilleleo.com */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #f6eedd;
  --ink-2: rgba(246, 238, 221, .7);
  --ink-3: rgba(246, 238, 221, .44);
  --edge: #071a2b;
  --mid: #0d3346;
  --glow: #1f6a78;
  --vx: 50%;
  --vy: 50%;
  --serif: "Fraunces", "Lora", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(18px, 3.2vw, 44px);
}

* { box-sizing: border-box; }
html { background: var(--edge); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }

/* the sky: a light at the end of the tunnel, colored by the year you are in */
#sky { position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 34vmax 30vmax at var(--vx) var(--vy), var(--glow) 0%, transparent 100%),
    radial-gradient(ellipse 110vmax 95vmax at var(--vx) var(--vy), var(--mid) 0%, var(--edge) 72%);
}
#sky::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; pointer-events: none; }
#gl { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; cursor: default; }
#track { position: relative; z-index: 0; width: 1px; pointer-events: none; }

/* labels that ride on the stars */
#labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; transition: opacity .9s ease; }
body.is-intro #labels { opacity: 0; }
.ev { position: absolute; left: 0; top: 0; display: block; text-align: left; pointer-events: auto; cursor: pointer; -webkit-user-select: none; user-select: none; will-change: transform, opacity;
  transform-origin: 0 50%; padding: 6px 10px 7px 16px; margin: 0; max-width: 19em; border-radius: 10px; color: var(--ink);
  transition: background-color .25s ease; }
.ev--left { transform-origin: 100% 50%; text-align: right; padding: 6px 16px 7px 10px; }
.ev--top { transform-origin: 50% 100%; text-align: center; padding: 6px 10px 14px; }
.ev-when { display: block; font: 500 11.5px/1.3 var(--sans); letter-spacing: .05em; color: var(--c); font-variant-numeric: tabular-nums; }
.ev-title { display: block; font: 420 17px/1.22 var(--serif); font-variation-settings: "opsz" 28; letter-spacing: -.005em; text-wrap: balance; text-shadow: 0 1px 14px rgba(3, 10, 20, .6); }
.ev-note { display: none; margin-top: 7px; font: 400 13.5px/1.5 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.ev:hover .ev-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--c); }
.ev.is-on { text-align: left; background: rgba(6, 16, 28, .62); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); max-width: 24em; padding-top: 12px; padding-bottom: 13px; z-index: 5; }
.ev.is-on .ev-title { font-size: 20px; text-decoration: none; }
.ev.is-on .ev-note { display: block; }
.ev.is-on .ev-note:empty { display: none; }
.ev-link { display: none; margin-top: 9px; font: 500 13px/1.3 var(--sans); color: var(--c); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ev-link::after { content: " \2197"; }
.ev.is-on .ev-link { display: inline-block; }
/* not happened yet: lighter, in italics, like something penciled in */
.ev--ahead .ev-title { font-style: italic; color: var(--ink-2); }
.ev--ahead.is-on .ev-title { color: var(--ink); }

/* the date under the cursor */
#chip { position: fixed; z-index: 3; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .2s; font: 400 12.5px/1.35 var(--sans); color: var(--ink);
  padding: 6px 10px; border-radius: 8px; background: rgba(6, 16, 28, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; }
#chip.is-on { opacity: 1; }
#chip small { display: block; font-size: 11.5px; color: var(--ink-3); }

/* fixed interface */
.hud { position: fixed; z-index: 4; transition: opacity .6s ease; }
body.is-intro .hud, body.is-list .hud { opacity: 0; pointer-events: none; }
#mark { left: var(--pad); top: calc(var(--pad) - 4px); font: 480 17px/1 var(--serif); letter-spacing: 0; text-decoration: none; }
#tools { right: var(--pad); top: calc(var(--pad) - 6px); display: flex; gap: clamp(14px, 2vw, 26px); font: 400 13.5px/1 var(--sans); }
#tools button { padding: 6px 0; color: var(--ink-2); border-bottom: 1px solid transparent; }
#tools button:hover, #tools button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink-3); }

#clock { left: var(--pad); bottom: var(--pad); }
#clock b { display: block; font: 300 clamp(28px, 4.2vw, 50px)/1 var(--serif); font-variation-settings: "opsz" 96; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#clock span { display: block; margin-top: 8px; font: 400 13px/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
body.is-end #clock { opacity: 0; }

#legend { right: var(--pad); bottom: var(--pad); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; max-width: min(46vw, 420px); margin: 0; padding: 0; list-style: none; font: 400 12.5px/1.2 var(--sans); color: var(--ink-2); }
#legend li { display: flex; align-items: center; gap: 7px; }
#legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 9px var(--c); }

#rail { right: calc(var(--pad) - 9px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 0; }
#rail button { position: relative; width: 26px; height: clamp(12px, 2.25vh, 19px); }
#rail button::before { content: ""; position: absolute; right: 9px; top: 50%; width: 6px; height: 1px; background: var(--ink-3); transition: width .2s, background-color .2s; }
#rail button.is-decade::before { width: 11px; }
#rail button:hover::before, #rail button.is-now::before { width: 16px; background: var(--ink); }
#rail button span { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); font: 400 12px/1 var(--sans); color: var(--ink); opacity: 0; transition: opacity .2s; font-variant-numeric: tabular-nums; }
#rail button:hover span, #rail button.is-now span { opacity: 1; }
#rail button.is-now span { color: var(--ink-2); }

/* opening card */
#intro { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; padding: var(--pad) var(--pad) calc(var(--pad) + 8px); transition: opacity .9s ease, transform .9s ease; }
#intro h1 { margin: 0; font: 300 clamp(64px, 12vw, 170px)/.9 var(--serif); font-variation-settings: "opsz" 144, "SOFT" 60; letter-spacing: -.035em; }
#intro .tag { margin: clamp(12px, 1.6vw, 20px) 0 0; max-width: 24em; font: italic 340 clamp(20px, 2.5vw, 33px)/1.22 var(--serif); font-variation-settings: "opsz" 72, "SOFT" 60; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
#intro p { margin: clamp(14px, 1.8vw, 22px) 0 0; max-width: 31em; font: 400 clamp(15.5px, 1.35vw, 18px)/1.55 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.go { margin-top: clamp(20px, 2.6vw, 30px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.btn { display: inline-block; text-decoration: none; padding: 13px 22px 14px; border-radius: 999px; background: var(--ink); color: #0b1c2a; font: 560 15px/1 var(--sans); transition: transform .15s ease, background-color .2s; }
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.lnk { display: inline-block; text-decoration: none; padding: 6px 0; font: 400 15px/1 var(--sans); color: var(--ink-2); border-bottom: 1px solid var(--ink-3); }
.lnk:hover { color: var(--ink); border-bottom-color: var(--ink); }
body:not(.is-intro) #intro { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* arriving at today */
#now { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; padding: var(--pad) var(--pad) calc(var(--pad) + 8px); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .9s ease, transform .9s ease; }
body.is-end #now { opacity: 1; transform: none; pointer-events: auto; }
#now h2 { margin: 0; max-width: 16em; font: 300 clamp(30px, 5vw, 64px)/1.02 var(--serif); font-variation-settings: "opsz" 144, "SOFT" 60; letter-spacing: -.028em; text-wrap: balance; }
#now p { margin: 14px 0 0; max-width: 34em; font: 400 clamp(15px, 1.3vw, 17px)/1.55 var(--sans); color: var(--ink-2); text-wrap: pretty; }
#now .open { margin-top: 12px; max-width: 36em; color: var(--ink); }
#now .open b { font-weight: 600; }
#now .open i { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; border: 2px solid #ffa477; vertical-align: 1px; }
body.is-end #legend { opacity: 0; }

/* the same life as a plain list */
#list { position: fixed; inset: 0; z-index: 8; overflow-y: auto; background: color-mix(in srgb, var(--edge) 93%, #000); padding: clamp(64px, 9vw, 110px) var(--pad) 120px; }
#list .col { max-width: 660px; margin: 0 auto; }
#list h1 { margin: 0 0 10px; font: 300 clamp(38px, 6vw, 68px)/1 var(--serif); letter-spacing: -.03em; }
#list .lede { margin: 0 0 44px; max-width: 34em; font: 400 16.5px/1.6 var(--sans); color: var(--ink-2); }
#list .pick { display: flex; flex-wrap: wrap; gap: 8px; margin: -22px 0 8px; }
#list .pick button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 7px; border-radius: 999px; border: 1px solid var(--ink-3); font: 400 13px/1 var(--sans); color: var(--ink-3); }
#list .pick i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: .45; }
#list .pick button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-2); background: rgba(246, 238, 221, .08); }
#list .pick button[aria-pressed="true"] i { opacity: 1; }
#list h2 { margin: 46px 0 14px; font: 300 34px/1 var(--serif); letter-spacing: -.02em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
#list ol { margin: 0; padding: 0; list-style: none; }
#list li { position: relative; padding: 9px 0 9px 22px; }
#list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
#list li b { display: block; font: 440 18px/1.3 var(--serif); }
#list li span { display: block; margin-top: 3px; font: 400 14.5px/1.5 var(--sans); color: var(--ink-2); }
#list li em { font: 400 12.5px/1 var(--sans); font-style: normal; color: var(--c); letter-spacing: .03em; }
#list li .lnk { margin-top: 6px; font-size: 13.5px; }
#list .close { position: fixed; right: var(--pad); top: calc(var(--pad) - 6px); z-index: 9; }
body.is-list { overflow: hidden; }
#list .contact { margin-top: 56px; display: flex; gap: 22px; }

#t-list .short { display: none; }
@media (max-width: 760px) {
  #legend, #rail { display: none; }
  #t-list .long { display: none; }
  #t-list .short { display: inline; }
  #mark { font-size: 15.5px; }
  .ev { max-width: 13.5em; }
  .ev-title { font-size: 15px; }
  .ev.is-on { max-width: 17em; }
  .ev.is-on .ev-title { font-size: 17px; }
  #tools { gap: 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
