/* Pasi Eronen Watt – site stylesheet. No scripts, no third-party requests. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Central European and Baltic letters (Czech, Latvian and others): downloaded only by
   pages that contain them. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  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: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-italic.woff2") format("woff2");
  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;
}

:root {
  /* The palette is taken from the portrait: the arcade's shadow for the
     night band, its sandstone for the paper, the sweater for the accent.
     The graduated rule is the one ornament: one standard, applied everywhere. */
  --paper: #f5f0e7;
  --ink: #1e1a15;
  --ink-soft: #62584b;
  --rule: #d8cebf;
  --accent: #8f6210;
  --mark: #f2c95c;
  --on-mark: #1e1a15;
  --night: #1d160e;
  --night-ink: #f3ece0;
  --night-soft: #c6baa6;
  --night-accent: #e6ab3c;
  --font: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16130f;
    --ink: #eee7db;
    --ink-soft: #b2a897;
    --rule: #3a3229;
    --accent: #e6ab3c;
    --mark: #e6ab3c;
    --on-mark: #16130f;
    color-scheme: dark;
  }
}

*, *::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(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--mark); color: var(--on-mark); }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
cite { font-style: italic; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover { background: var(--mark); color: var(--on-mark); text-decoration-color: currentColor; }
a:focus-visible {
  background: var(--mark);
  color: var(--on-mark);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.skip {
  position: absolute;
  z-index: 10;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--mark);
  color: var(--on-mark);
  font-weight: 600;
}
.skip:focus { top: 1rem; }

/* The graduated rule. --rc sets its colour. */
.rule, .rule-light {
  --rc: var(--ink);
  height: 14px;
  background:
    linear-gradient(var(--rc), var(--rc)) 0 0 / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--rc) 0 1px, transparent 1px 48px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--rc) 0 1px, transparent 1px 8px) 0 0 / 100% 7px no-repeat;
}
.rule-light {
  --rc: var(--rule);
  height: 10px;
  background:
    linear-gradient(var(--rc), var(--rc)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--rc) 0 1px, transparent 1px 48px) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--rc) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat;
}

/* Site header */
.head-band { position: relative; z-index: 3; }
.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  padding-block: 0.9rem;
  font-size: 0.9375rem;
}
.site-head:has(.site-name) { flex-wrap: wrap; }
.site-head ul { display: flex; flex-wrap: wrap; gap: 0 1rem; }
@media (min-width: 40rem) {
  .site-head { flex-wrap: wrap; gap: 0.25rem 2rem; padding-block: 1.1rem; }
  .site-head ul { gap: 0 1.25rem; }
}
.site-head a { text-decoration: none; display: inline-block; padding-block: 0.375rem; }
.site-head a:hover { text-decoration: underline; }
.site-head [aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); }
.site-name { font-weight: 800; letter-spacing: -0.01em; }
.lang { flex-shrink: 0; white-space: nowrap; }
.lang a { font-weight: 600; }

.on-dark { background: var(--night); color: var(--night-ink); }
.on-dark a:hover, .top a:hover { background: var(--night-accent); color: var(--night); }

/* Home: the night band. The portrait's arcade recedes towards the name and
   dissolves into the band, so photograph and type read as one composition. */
.top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
}
.top a { text-decoration-color: var(--night-accent); }
.top .rule { --rc: var(--night-accent); }
.hero-photo img {
  display: block;
  width: 100%;
  height: clamp(22rem, 108vw, 38rem);
  object-fit: cover;
  object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 98%);
}
.hero-text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  margin-top: clamp(-6rem, -14vw, -3rem);
  padding-bottom: 3.25rem;
}
.nameplate { display: grid; gap: 0.6rem; max-width: 100%; }
.name {
  font-size: clamp(2.9rem, 14.2vw, 9.25rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin-left: -0.04em;
}
.name span { display: block; }
.role { color: var(--night-accent); font-weight: 700; text-wrap: balance; }
.statement {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 19em;
  text-wrap: balance;
}
.creds { color: var(--night-soft); max-width: 34em; font-size: 1rem; }

@media (min-width: 48rem) {
  .head-band.on-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
  }
  .hero-photo {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 50%;
  }
  .hero-photo img {
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 42%);
    mask-image: linear-gradient(to right, transparent 0, #000 42%);
  }
  .hero-text {
    margin-top: 0;
    min-height: clamp(36rem, 82vh, 48rem);
    align-content: end;
    padding-block: 6.5rem 4.5rem;
  }
  .name { font-size: clamp(4.5rem, 8.6vw, 9.25rem); }
  /* One text column that stays clear of the photograph at every width:
     the photo starts at 50vw and the page edge sits 3rem in from the wrap. */
  .role, .statement { max-width: min(34rem, 50vw - 4rem); }
  .statement { max-width: min(17em, 50vw - 4rem); }
  :lang(fi) .statement { font-size: clamp(1.4rem, 2.2vw, 1.85rem); max-width: min(34rem, 50vw - 4rem); }
  .creds { max-width: min(30em, 50vw - 5rem); }
  .role .ph { white-space: nowrap; }  /* break the role line only between phrases */
}

/* Light sections: label | text, divided by the light rule */
.sec { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.rule-light + .band { padding-block: 1.5rem 2.5rem; }
.top + .sec { padding-top: clamp(3rem, 6vw, 5rem); }
.top + .sec .band::before { display: none; }
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 0 1rem;
}
.sec .band::before {
  content: "";
  grid-column: 1 / -1;
  height: 10px;
  margin-bottom: 0.75rem;
  background:
    linear-gradient(var(--rule), var(--rule)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 48px) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat;
}
.band > h2 {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.band-body { display: grid; gap: 1.75rem; min-width: 0; }
.band-body > p, .prose p { max-width: 38em; }
.prose { display: grid; gap: 1rem; }
.note { color: var(--ink-soft); font-size: 0.9375rem; }
.hint { color: var(--ink-soft); font-size: 0.875rem; }

@media (min-width: 60rem) {
  .band {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 3rem;
  }
  .sec .band::before { margin-bottom: 0.5rem; }
}

/* Book */
.book { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.book-main { display: contents; }
.book-main > .book-head { grid-column: 2; }
.book-main > .pull, .book-main > .prose { grid-column: 1 / -1; }
.cover { margin: 0; }
.cover img { display: block; width: 100%; height: auto; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(30,26,21,.18); }
@media (min-width: 48rem) {
  .book { grid-template-columns: 13rem minmax(0, 1fr); column-gap: 2.5rem; }
  .book-main { display: grid; gap: 1.75rem; grid-column: 2; }
  .book-main > .book-head, .book-main > .pull, .book-main > .prose { grid-column: auto; }
}
.book-head { display: grid; gap: 0.5rem; align-content: start; min-width: 0; overflow-wrap: break-word; }
@media (max-width: 24rem) { .book { grid-template-columns: 5.75rem minmax(0, 1fr); gap: 1rem; } }
.book-title {
  font-size: clamp(1.75rem, 8.5vw, 4.75rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.book-sub { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; line-height: 1.25; }
.gloss { color: var(--ink-soft); }
.book-site { font-weight: 700; margin-top: 0.35rem; }

.pull { display: grid; gap: 0.75rem; max-width: 46rem; padding-left: 1.25rem; border-left: 3px solid var(--accent); }
.pull blockquote p {
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pull figcaption { color: var(--ink-soft); font-size: 0.9375rem; }

.reviews { display: grid; gap: 1.5rem 2.5rem; }
.reviews li { display: grid; gap: 0.5rem; align-content: start; padding-top: 0.9rem; border-top: 1px solid var(--rule); }
.reviews blockquote p { font-size: 1.0625rem; line-height: 1.4; font-weight: 500; }
.reviews blockquote p::before { content: "“"; }
.reviews blockquote p::after { content: "”"; }
:lang(fi) .reviews blockquote p::before, :lang(fi) .reviews blockquote p::after { content: "”"; }
.reviews .src { font-size: 0.875rem; color: var(--ink-soft); }
.reviews .src a { font-weight: 700; color: var(--ink); }
@media (min-width: 48rem) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Selected work */
.lede { font-size: 1.1875rem; line-height: 1.45; max-width: 36em; }
.cards { display: grid; gap: 1.75rem 2.5rem; }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: grid; gap: 0.4rem; align-content: start; padding-top: 0.9rem; border-top: 2px solid var(--ink); }
.card h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.card-sub { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 0.35rem; }
.kicker {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Arguments */
.args { display: grid; gap: 2rem 3rem; }
.args h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.45rem; }
.more-link { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--ink-soft); }
.more-link a { font-weight: 700; color: var(--ink); }
@media (min-width: 42rem) { .args { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Compact lists (home): date, then title and one line of detail */
.two { display: grid; gap: 2.5rem 3.5rem; }
@media (min-width: 52rem) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.list > li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 0.6rem;
  border-top: 1px solid var(--rule);
}
.list .when { color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.list .t { font-weight: 700; }
.list .meta { display: block; color: var(--ink-soft); font-size: 0.9375rem; }
.list.cv .when { color: var(--ink); font-weight: 700; }
@media (min-width: 60rem) {
  .list.cv > li { padding-block: 0.5rem; }
  .list.cv .meta { display: inline; }
  .list.cv .meta::before { content: "· "; }
}
.more { font-weight: 700; margin-top: 0.75rem; }
.more + .more { margin-top: 0.25rem; }

/* Then and now: dated pairs joined by a fine line */
.tn-intro { color: var(--ink-soft); margin-bottom: 1rem; }
.tn { margin-bottom: 1.75rem; }
.tn h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.6rem; }
.tn-pair .tn { margin-bottom: 0; }
.tn-quote { margin: 0 0 1rem; padding-left: 0.9rem; border-left: 3px solid var(--accent); }
.tn-quote p { font-size: 1.0625rem; font-style: italic; line-height: 1.45; }
.tn-quote footer { margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.8125rem; }
.tn ol { list-style: none; margin: 0; padding: 0; }
.tn li {
  position: relative;
  padding: 0 0 1rem 1.5rem;
  border-left: 1px solid var(--rule);
  margin-left: 0.3rem;
}
.tn li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tn li::before {
  content: "";
  position: absolute;
  left: -0.3rem;
  top: 0.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}
.tn-when { font-weight: 800; font-size: 0.875rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.tn li > p:nth-child(2) { font-weight: 700; line-height: 1.35; }
.tn .meta { margin-top: 0.15rem; }

.lede { text-wrap: pretty; }  /* avoid a one-word last line */

/* Phones: a shorter intro photo, cropped so the face and the knit stay above the name,
   brings name, title and statement onto the first screen. The six menu links sit in two
   deliberate rows of three instead of wrapping one link onto a row of its own. */
@media (max-width: 30rem) {
  .hero-photo img { height: clamp(18.5rem, 92vw, 24rem); object-position: 50% 42%; }
  .site-head ul::after { content: ""; flex-basis: 100%; order: 1; }
  .site-head li:nth-child(n+4) { order: 2; }
}

/* Documentary photographs with captions */
.photo { margin: 0; max-width: 46rem; }
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.875rem; }
.intro .photo { margin-top: 0.75rem; }

/* Then and now: the dated reflection above each pair */
.tn-note { margin: 0 0 1rem; padding: 0.75rem 0 0.25rem; border-top: 1px solid var(--rule); }
.tn-note p:not(.tn-label) { font-size: 1rem; line-height: 1.5; }
.tn-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

/* Reading paths on the writing page */
.paths { display: grid; gap: 2rem 3rem; }
@media (min-width: 52rem) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.path h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.4rem; }
.soon {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.35em;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-mark);
  background: var(--mark);
}

.check {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 40em;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--rule);
}
.check strong { color: var(--ink); }

/* Facts and full lists (sub-pages) */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 42em; }
.facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.5rem; padding-block: 0.6rem; border-top: 1px solid var(--rule); }
.facts dt { font-weight: 700; }
.facts dd, .list .t, .list .meta, .card, .what { overflow-wrap: break-word; min-width: 0; }
:lang(fi) .list .t, :lang(fi) .card p, :lang(fi) .prose p { hyphens: auto; -webkit-hyphens: auto; }
.facts dd a { overflow-wrap: anywhere; }
@media (max-width: 30rem) {
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .list > li { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 0 0.75rem; }
}

.rows > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem 1.5rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--rule);
}
.when { font-weight: 700; }
.what { display: grid; gap: 0.2rem; }
.list .what { display: block; }
.what h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.band-body > p + .paths { margin-top: -0.5rem; }
.meta { color: var(--ink-soft); font-size: 0.9375rem; }
@media (min-width: 36rem) {
  .rows > li { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .rows.plain > li { grid-template-columns: minmax(0, 1fr); }
}

/* Sub-page openings */
.page-title {
  padding-top: clamp(1.5rem, 5vw, 3.5rem);
  font-size: clamp(2.5rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  padding-bottom: 0.14em;
}
.intro { display: grid; gap: 1.1rem; padding-block: 2rem 1rem; }
.intro > p:not(.statement) { max-width: 38em; }

/* Media kit */
.portrait { max-width: 15rem; }
.portrait img { display: block; width: 100%; height: auto; }
.bio { display: grid; gap: 0.75rem; }
.bio h3 { font-size: 1.0625rem; font-weight: 700; }
.copy { user-select: all; -webkit-user-select: all; display: grid; gap: 0.75rem; max-width: 38em; }

/* Marks an item that still needs the owner's input */
.todo { background: var(--mark); color: var(--on-mark); padding: 0 0.25em; }

/* Footer */
.site-foot { padding-block: 3rem 2.5rem; color: var(--ink-soft); font-size: 0.875rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; padding-top: 1rem; }

@media print {
  body { background: #fff; color: #000; }
  .site-head ul, .skip, .hero-photo { display: none; }
  .top { background: #fff; color: #000; }
  .role, .creds { color: #000; }
}
