/* Minna Tikkanen — one stylesheet.
   A dark stage, light type and plenty of room. Pictures sit beside or above text,
   never under it. Motion is limited on purpose to three things: the front-page
   carousel, the logo's roll on hover and the spotlight that follows the pointer
   over photographs. */

@font-face { font-family: "Jost"; src: url("fonts/jost.woff2") format("woff2"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Jost"; font-style: italic; src: url("fonts/jost-italic.woff2") format("woff2"); font-weight: 300 500; font-display: swap; }

:root {
  --bg: #0c0c0f;
  --surface: #141418;
  --text: #e9e6e0;
  --muted: #a3a1a8;
  --line: rgb(255 255 255 / .1);
  --accent: #e0668f;
  --font: "Jost", "Futura", "Century Gothic", ui-sans-serif, system-ui, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
body { margin: 0; background: var(--bg); color: var(--text); font: 350 1.125rem/1.75 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgb(233 230 224 / .4); }
a:hover { color: #fff; text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
strong, b { font-weight: 450; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.15; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: .4em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .8em; }
h2.small { font-size: 1.35rem; margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; margin-bottom: .5em; }
h4 { font-size: 1.1rem; font-weight: 400; line-height: 1.4; }
.label { font-size: .78rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.lede { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.5; color: #f3f1ec; max-width: 38rem; }
.lead { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.55; color: #f3f1ec; }
.muted { color: var(--muted); }
.note { font-size: .95rem; margin-top: 1.5rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.prose { max-width: 40rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--text); color: var(--bg); padding: .5rem 1rem; }

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section.tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section + .section { border-top: 1px solid var(--line); }
.section.tight + .section.tight { border-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0; }
.spaced { margin-top: 3.5rem; }

.split { display: grid; gap: 2.5rem 4rem; align-items: center; }
.split.top { align-items: start; }
.two-col { display: grid; gap: 3rem 5rem; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > :first-child { order: 2; }
  .two-col { grid-template-columns: 1fr 1fr; }
}

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .6rem 1.4rem;
  border: 1px solid var(--text); border-radius: 999px; background: var(--text); color: var(--bg);
  text-decoration: none; font-size: .95rem; font-weight: 400; letter-spacing: .02em; transition: background .2s, color .2s;
}
.button:hover { background: transparent; color: var(--text); }
.button.ghost { background: transparent; color: var(--text); border-color: rgb(233 230 224 / .5); }
.button.ghost:hover { border-color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.link { text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: .1em; }

/* ---------- the spotlight: light follows the pointer over a photograph ---------- */
.spot { position: relative; overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle var(--r, 26rem) at var(--x, 50%) var(--y, 45%), rgb(12 12 15 / 0) 0, rgb(12 12 15 / .28) 55%, rgb(12 12 15 / .62) 100%);
}
@media (hover: none) { .spot::after { background: radial-gradient(circle at 50% 45%, rgb(12 12 15 / 0) 40%, rgb(12 12 15 / .35) 100%); } }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 4 / 3; }
.photo.cover { width: fit-content; max-width: 100%; margin-inline: auto; }
.photo.cover img { width: auto; max-width: 100%; height: auto; max-height: 80svh; }
.photo.banner { aspect-ratio: 21 / 9; }
.photo.post-cover { aspect-ratio: 16 / 9; max-width: 60rem; margin-inline: auto; }
.post-figure { margin: 2rem 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(12 12 15 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem 2.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .75rem; margin-right: auto; text-decoration: none; font-size: 1.15rem; font-weight: 350; letter-spacing: .04em; }

.logo { display: block; flex: none; width: 2.7rem; height: 2.7rem; overflow: visible; }
.logo .lg-dots { color: var(--accent); }
/* the roll: the diamond turns a quarter while the letters stay upright */
.brand .logo, .brand .logo .lg-letters { transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
.brand .logo .lg-letters { transform-box: view-box; transform-origin: 800px 700px; }
.brand:hover .logo { transform: rotate(90deg); }
.brand:hover .logo .lg-letters { transform: rotate(-90deg); }

.nav-panel { display: flex; align-items: center; gap: 2rem; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; font-size: 1rem; }
.nav a { text-decoration: none; color: var(--muted); padding-block: .35rem; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--accent); }
.langs { display: flex; gap: .2rem; font-size: .85rem; letter-spacing: .08em; }
.langs a { display: grid; place-items: center; min-width: 2.4rem; min-height: 2.2rem; border-radius: 999px; text-decoration: none; color: var(--muted); border: 1px solid transparent; }
.langs a:hover { color: var(--text); }
.langs a[aria-current="page"] { color: var(--text); border-color: rgb(233 230 224 / .45); }
.menu-toggle { display: none; }

@media (max-width: 63.99rem) {
  .menu-toggle { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-right: -.5rem; border: 0; background: transparent; cursor: pointer; }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 1.4rem; height: 1px; background: currentColor; }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; } .menu-lines::after { top: 6px; }
  .menu-open .menu-lines { background: transparent; }
  .menu-open .menu-lines::before { top: 0; transform: rotate(45deg); }
  .menu-open .menu-lines::after { top: 0; transform: rotate(-45deg); }
  .nav-panel { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 2rem; padding: 2rem var(--gutter); overflow-y: auto; }
  .menu-open .nav-panel { display: flex; }
  .menu-open body { overflow: hidden; }
  .nav { flex-direction: column; gap: .2rem; }
  .nav a { font-size: 1.6rem; color: var(--text); box-shadow: none !important; }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav-panel .langs { font-size: 1rem; }
  .nav-panel .langs a { min-width: 3rem; min-height: 2.6rem; border-color: var(--line); }
}

/* ---------- home carousel ---------- */
.hero { min-height: min(82svh, 48rem); display: grid; align-items: end; isolation: isolate; background: #000; }
.hero-slides, .slide { position: absolute; inset: 0; }
.hero-slides { z-index: -2; }
.slide { opacity: 0; animation: slide calc(var(--count) * 6s) linear infinite; animation-delay: calc(var(--s) * 6s - .6s); }
.slide:first-child { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes slide {
  0% { opacity: 0; transform: scale(1.1); }
  4% { opacity: 1; }
  18% { opacity: 1; }
  23% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; }
}
.hero::after { z-index: -1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(12 12 15 / 0) 40%, rgb(12 12 15 / .78) 100%); pointer-events: none; }
.hero-copy { padding-block: 6rem clamp(2.5rem, 6vh, 4rem); }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); margin-bottom: .3em; }
.hero .label { color: #d8d5cf; }
.hero-intro { max-width: 34rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: #f3f1ec; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.card a { display: grid; gap: .35rem; text-decoration: none; }
.card-photo { aspect-ratio: 4 / 3; margin-bottom: .8rem; }
.card-photo.natural { aspect-ratio: auto; }
.card-photo.natural img { height: auto; }
.cards { align-items: start; }
.card-meta { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 1.5rem; font-weight: 300; line-height: 1.2; }
.card-text { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.card a:hover .card-title { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.jump a { display: inline-block; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .95rem; }
.jump a:hover { border-color: var(--text); }

/* ---------- lists ---------- */
.rows > li { display: grid; grid-template-columns: 7rem 1fr; gap: 1.25rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.row-year { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 1rem; padding-top: .05rem; }
.rows p { margin: .25rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.notes { margin-top: .5rem; }
.notes li { position: relative; padding-left: 1.1rem; color: var(--muted); font-size: 1rem; line-height: 1.6; margin-top: .25rem; }
.notes li::before { content: ""; position: absolute; left: 0; top: .75em; width: .4rem; height: 1px; background: var(--accent); }
@media (max-width: 36rem) { .rows > li { grid-template-columns: 1fr; gap: .15rem; } }
.bullets li { position: relative; padding: .7rem 0 .7rem 1.4rem; border-top: 1px solid var(--line); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: .55rem; height: 1px; background: var(--accent); }
.subhead { margin-top: 2.5rem; }
.facts-list div { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: 1.25rem; padding-block: .9rem; border-top: 1px solid var(--line); }
.facts-list div:last-child { border-bottom: 1px solid var(--line); }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; }
@media (max-width: 36rem) { .facts-list div { grid-template-columns: 1fr; gap: .1rem; } }
.stack { display: grid; gap: 1.5rem; }
.stack .photo { aspect-ratio: 4 / 3; }

/* ---------- bio / CV ---------- */
.cv-grid { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .cv-grid { grid-template-columns: 17rem 1fr; gap: 5rem; } .cv-aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.cv-nav { margin-top: 1.5rem; }
.cv-nav a { display: block; padding: .5rem 0 .5rem .9rem; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 1rem; line-height: 1.4; }
.cv-nav a:hover { color: var(--text); }
.cv-nav a.active { color: var(--text); border-left-color: var(--accent); }
.cv-section + .cv-section { margin-top: 3.5rem; }
.cv-section > h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.cv-body > .muted { margin-top: 2.5rem; font-style: italic; }

/* ---------- work page ---------- */
.facts { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 0; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.facts dd { margin: 0; line-height: 1.5; }
.work-body { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .work-body { grid-template-columns: minmax(0, 1fr) 22rem; gap: 5rem; } }
.concept { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.45; font-style: italic; color: #f3f1ec; padding-left: 1.25rem; border-left: 1px solid var(--accent); margin-bottom: 2rem; }
.work-credits .facts-list div { grid-template-columns: 1fr; gap: .1rem; font-size: 1rem; }
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 15rem), 1fr)); }
.gallery a { display: block; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video > button { position: absolute; inset: 0; border: 0; padding: 0; background: #000; cursor: pointer; }
.video > button img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video > button span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: .7rem 1.4rem; border-radius: 999px; background: var(--text); color: var(--bg); }
.pager { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.pager-card { display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem; align-items: center; text-decoration: none; padding: .75rem; border: 1px solid var(--line); }
.pager-card:hover { border-color: rgb(233 230 224 / .4); }
.pager-photo { aspect-ratio: 4 / 3; }
.pager-card .label { display: block; margin-bottom: .2rem; }

/* ---------- boxes / panel ---------- */
.boxes { display: grid; gap: 1rem; }
.boxes.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.boxes.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.box { padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); }
.box p { color: var(--muted); margin-bottom: .75rem; }
.box p:last-child { margin-bottom: 0; color: var(--text); }
.panel { display: grid; gap: 2.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 60rem) { .panel { grid-template-columns: 1fr 1fr; } }

/* ---------- blog ---------- */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tags li { font-size: .85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .75rem; }
.post-body { max-width: 42rem; }
.post-body h2 { font-size: 1.7rem; margin: 3rem 0 1rem; }
.post-body h2.old { font-size: 1.7rem; margin: 2.5rem 0 1rem; }
.post-body h3 { margin: 2rem 0 .75rem; }
.post-body blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 1px solid var(--accent); font-size: 1.35rem; font-style: italic; line-height: 1.5; color: #f3f1ec; }
.post-body blockquote p { margin: 0; }
.lang-notice { font-size: .95rem; color: var(--muted); font-style: italic; margin-bottom: 2rem; }
.post-body > div > p:first-child { font-size: 1.25rem; line-height: 1.6; color: #f3f1ec; }
.post-body > div > p:last-child em { color: var(--muted); font-size: .95rem; }
.sample-notice { font-size: .95rem; padding: .75rem 1rem; border: 1px dashed rgb(224 102 143 / .6); color: var(--muted); margin-bottom: 2rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; font-size: 1rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand .logo { width: 3rem; height: 3rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid .label { margin-bottom: .5rem; }
.footer-legal { margin-top: 3rem; font-size: .85rem; color: var(--muted); }

/* ---------- lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96svh; }
dialog.lightbox::backdrop { background: rgb(0 0 0 / .92); }
dialog.lightbox img { max-width: 96vw; max-height: 92svh; width: auto; margin: auto; }
dialog.lightbox button { position: fixed; top: 1rem; right: 1rem; border: 1px solid rgb(255 255 255 / .4); border-radius: 999px; background: transparent; color: #fff; padding: .45rem 1rem; cursor: pointer; }

.root-picker { display: grid; place-items: center; min-height: 100svh; text-align: center; }
.root-picker .logo { width: 5rem; height: 5rem; margin: 0 auto 1.5rem; }
.root-picker .langs { justify-content: center; gap: .75rem; margin-top: 1.5rem; font-size: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; } .slide:not(:first-child) { display: none; }
  .brand .logo, .brand .logo .lg-letters { transition: none; }
}
