/* Loonie Park: fonts */

@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
/* Caveat's Cyrillic letters (used for the Mongolian translation title). */
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-cyrillic-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-ext-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-vietnamese.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-vietnamese-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ── Design settings ───────────────────────────────────────
   Two kinds of type, each with a Korean partner:
     handwritten: Caveat, with Nanum Pen Script for Korean
                  (name, navigation, titles, descriptions, links)
     serif:       Newsreader, with Gowun Batang for Korean
                  (details and longer reading text)
   The Korean fonts are only used for Korean characters
   (see korean-fonts.css), so English always stays in Caveat/Newsreader. */
:root {
  --paper: #ecebe7;
  --paper-deep: #e2e0db;
  --ink: #1b1b1a;
  --ink-soft: #5e5b56;
  --line: #c9c6bf;
  --hand: "Caveat", "Nanum Pen Script", cursive;
  --serif: "Newsreader", "Gowun Batang", Georgia, serif;
  --highlight: rgba(236, 196, 92, .45);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --wide: 1240px;
  --space: clamp(4rem, 9vw, 8rem);
}

/* ── Basics ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
}
:lang(ko) { word-break: keep-all; }
/* Images always keep their own shape: never stretched, never cropped. */
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink-soft); text-decoration-thickness: 2px; }
/* Keyboard focus: a soft highlighter stroke behind the text. */
:focus-visible { outline: none; background-color: var(--highlight); box-shadow: 0 0 0 .15em var(--highlight); border-radius: .1em; }
img:focus-visible, .entry-media:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; background: none; box-shadow: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header and footer ────────────────────────────────── */
.site-header {
  max-width: var(--wide); margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--gutter) 0;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem;
}
.site-name { font-family: var(--hand); font-weight: 600; font-size: 2rem; line-height: 1; text-decoration: none; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.1rem, 3vw, 2.25rem); }
.site-header nav a { font-family: var(--hand); font-weight: 500; font-size: 1.75rem; line-height: 1; text-decoration: none; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .25em; }

main { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

.site-footer {
  max-width: var(--wide); margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: .5rem var(--gutter) 1.5rem;
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; align-items: baseline;
  font-size: .875rem; color: var(--ink-soft);
}

/* ── Shared text styles ───────────────────────────────── */
.page-head { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.page-title, .project-title {
  font-family: var(--hand); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.75rem, 1.8rem + 4vw, 5rem); line-height: .95; margin: 0;
  text-wrap: balance;
}
.page-intro { font-family: var(--hand); font-size: 1.6rem; line-height: 1.35; max-width: 26em; margin: 1.25rem 0 0; }
.section-title { font-family: var(--hand); font-weight: 600; font-size: 2rem; line-height: 1.1; margin: 0 0 1rem; }
.small-heading { font-family: var(--hand); font-weight: 600; font-size: 1.6rem; line-height: 1.2; margin: 1.75rem 0 .5rem; }
.hand-text { font-family: var(--hand); font-size: 1.55rem; line-height: 1.42; }
.hand-text p { margin: 0 0 .8em; }
.hand-text h2, .hand-text h3 { font-family: var(--hand); font-weight: 600; font-size: 2rem; line-height: 1.15; margin: 0 0 .6em; }
/* Korean descriptions stay handwritten (Nanum Pen Script), like the titles and links. */
.hand-text:lang(ko), .entry-summary:lang(ko) { font-size: 1.7rem; line-height: 1.45; }
.reading { max-width: 38em; }
.reading h2 { font-family: var(--hand); font-weight: 600; font-size: 2rem; line-height: 1.1; margin: 2.2em 0 .5em; }
.reading h3 { font-size: 1.1rem; margin: 2em 0 .4em; }
.reading blockquote { font-family: var(--hand); font-size: 1.8rem; line-height: 1.3; margin: 0 0 1.5em; }
.reading blockquote p { margin: 0; }
.reading .caption { font-size: .875rem; color: var(--ink-soft); }
.crumb { font-family: var(--hand); font-size: 1.35rem; line-height: 1.2; margin: 0 0 1rem; }
.crumb a { color: var(--ink-soft); }
.back-arrow { display: inline-flex; align-items: center; height: 1.2em; vertical-align: top; padding-right: .3em; text-decoration: none; }
.back-arrow svg { display: block; width: 1.4em; height: auto; }
.back-arrow:hover { color: var(--ink); }
.credit, .project-media .credit { font-size: .8125rem; color: var(--ink-soft); margin: .75rem 0 0; }
.status { font-family: var(--hand); font-size: 1.35rem; line-height: 1.2; color: var(--ink-soft); margin: .25rem 0 .9rem; }
.back { margin: var(--space) 0 0; font-family: var(--hand); font-size: 1.6rem; }

/* Links to VoiceMap, podcasts and project pages: handwritten, underlined text. */
.buttons { list-style: none; margin: 1.9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.6rem; }
.button {
  font-family: var(--hand); font-size: 1.5rem; line-height: 1.25;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
}
.button--main { font-weight: 600; text-decoration-thickness: 1.5px; }
.button:hover { color: var(--ink-soft); text-decoration-thickness: 2px; }
/* Spotify / Apple Podcasts on a tour page: a little larger, with a bigger click area. */
.buttons--listen { gap: .35rem 2.2rem; }
.buttons--listen .button { display: inline-block; padding: .2em 0; font-size: 1.9rem; }

/* Placeholder for a picture that is not available yet. */
.placeholder {
  aspect-ratio: 3 / 2; background: var(--paper-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-family: var(--hand); font-size: 1.5rem;
}

/* ── Homepage slideshow ───────────────────────────────── */
.slideshow { padding-top: clamp(2.5rem, 7vw, 5rem); }
/* All photographs sit in one spot and fade into each other.
   Each keeps its own shape and fits inside the frame. */
.slides { display: grid; place-items: center; }
.slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.slide.is-current { opacity: 1; visibility: visible; transition: opacity 1.2s ease, visibility 0s; }
.slide img { width: auto; max-width: 100%; max-height: min(70vh, 760px); }
.slideshow-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem;
  margin-top: 1.25rem;
}
.slide-caption { margin: 0; font-family: var(--hand); font-size: 1.6rem; line-height: 1.2; }
.slide-caption a { text-decoration: none; }
.slide-caption a:hover { text-decoration: underline; opacity: 1; }
.slide-controls { display: flex; gap: 1.25rem; font-family: var(--hand); font-size: 1.4rem; line-height: 1; }
.slide-controls button:hover { text-decoration: underline; }
.home-intro {
  font-family: var(--hand); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.38;
  max-width: 24em; margin: clamp(4rem, 10vw, 7.5rem) 0 0;
}

/* ── Work and Walk lists ──────────────────────────────── */
.entries { display: grid; gap: clamp(4.5rem, 10vw, 8.5rem); }
/* Work and Walk start straight with the projects, at the same height as project pages. */
.list-top { padding-top: clamp(2.5rem, 7vw, 5rem); }
.entry {
  display: grid; align-items: center; gap: 2rem clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.entry--portrait { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.entry--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.entry--portrait.entry--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.entry--flip .entry-media { order: 2; }
.entry-media { display: block; text-decoration: none; }
.entry-media:hover { opacity: .9; }
.entry--portrait .entry-media img { max-height: 78vh; width: auto; }
.entry--portrait.entry--flip .entry-media img { margin-left: auto; }
.entry-title { font-family: var(--hand); font-weight: 600; text-transform: uppercase; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.25rem); line-height: 1; margin: 0 0 1.4rem; text-wrap: balance; }
.entry-title:lang(ko) { font-weight: 400; line-height: 1.1; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; opacity: 1; }

.entry-summary { font-family: var(--hand); font-size: 1.5rem; line-height: 1.4; margin: 0; max-width: 22em; }


/* ── Project and walk pages ───────────────────────────── */
.project { padding-top: clamp(2.5rem, 7vw, 5rem); }
.project-top {
  display: grid; align-items: start; gap: 2.5rem clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.project-top--portrait { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.project-title { margin-bottom: 1.75rem; font-size: clamp(2.6rem, 1.8rem + 3.2vw, 4.4rem); }
.project-title:lang(ko) { font-weight: 400; line-height: 1.1; }
.project-media img { max-height: 88vh; width: auto; }
.project-note { margin: 2.5rem 0 0; font-family: var(--hand); font-size: 1.5rem; line-height: 1.3; }
.other-language { margin: 1.25rem 0 0; font-family: var(--hand); font-size: 1.4rem; }

.gallery { margin-top: var(--space); display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.gallery--single { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
figcaption { font-size: .8125rem; color: var(--ink-soft); margin-top: .6rem; }

.project-more { margin-top: var(--space); display: grid; gap: 3rem clamp(2rem, 6vw, 6rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-more--single { grid-template-columns: minmax(0, 1fr); max-width: 46em; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: .7rem 0; border-top: 1px solid var(--line); font-family: var(--hand); font-size: 1.5rem; line-height: 1.3; }
.list-more { color: var(--ink-soft); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

.prototype + .prototype { margin-top: 3rem; }
details { margin-top: 1rem; }
summary { cursor: pointer; font-family: var(--hand); font-size: 1.5rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--ink-soft); text-decoration-thickness: 2px; }
details[open] summary { text-decoration: none; }
details .reading { margin-top: 1rem; }

.stops { margin-top: var(--space); max-width: 46em; }
.stops ol { list-style: none; margin: 0; padding: 0; }
.stop { padding: 2.25rem 0; border-top: 1px solid var(--line); }
.stop:last-child { border-bottom: 1px solid var(--line); }
.stop-title { font-family: var(--hand); font-weight: 600; font-size: 2.1rem; line-height: 1.1; margin: 0 0 .6rem; }
.stop-title:lang(ko) { font-weight: 400; }
.player iframe { width: 100%; height: 150px; border: 0; }
.player audio { width: 100%; }
.audio-missing { font-family: var(--hand); font-size: 1.3rem; color: var(--ink-soft); margin: .4rem 0 0; }

/* ── About ────────────────────────────────────────────── */
.about {
  padding-top: clamp(3rem, 8vw, 6rem);
  display: grid; align-items: start; gap: 3rem clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}
.about .page-title { margin-bottom: 2rem; }
.about .hand-text { font-size: clamp(1.5rem, 1.12rem + .67vw, 1.65rem); max-width: 20em; }
.about .hand-text p { margin-bottom: .35em; }
/* Instagram / LinkedIn under the biography: small, soft, underlined. */
.about-links { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; font-family: var(--hand); font-size: 1.3rem; line-height: 1.2; color: var(--ink-soft); }
/* Books: a quiet heading, no divider lines, whitespace between entries;
   publisher and year smaller and softer than the title. */
.about .section-title { margin-top: 3rem; font-size: 1.45rem; font-weight: 500; color: var(--ink-soft); }
.about .plain-list li { border: 0; padding: 0; margin: 0 0 .9rem; font-size: 1.5rem; line-height: 1.25; text-wrap: pretty; }
.about .plain-list .list-more { font-size: .8em; white-space: nowrap; }
.about-portrait img { max-height: 88vh; width: auto; }
.about-portrait figcaption { font-family: var(--hand); font-size: 1.3rem; color: var(--ink); }

/* ── Longer text pages ────────────────────────────────── */
.text-page { padding-top: clamp(2.5rem, 7vw, 5rem); max-width: 46em; }

/* ── Phones and small tablets ─────────────────────────── */
@media (max-width: 820px) {
  .entry, .entry--portrait, .entry--flip, .entry--portrait.entry--flip, .project-top, .project-top--portrait, .about, .project-more { grid-template-columns: minmax(0, 1fr); }
  .entry--flip .entry-media { order: 0; }
  .entry--portrait .entry-media img, .project-media img, .about-portrait img { max-height: 72vh; }
  .entry--portrait.entry--flip .entry-media img { margin-left: 0; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .slides { place-items: end center; }
  .slide img { max-height: 44vh; }
}
@media (max-width: 420px) {
  .site-name { font-size: 1.8rem; }
  .site-header nav a { font-size: 1.55rem; }
  .site-header ul { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-current { transition: none; }
}
