/* ============================================
   Inner pages (about, speaking, work with me, concepts, contact) — spec §6.4.
   Shared components are in site.css.
   ============================================ */

/* ---------- page head: vertical legend + title on the terrain ---------- */
.page-head { position: relative; overflow: hidden; padding: clamp(120px, 15vw, 180px) 0 clamp(48px, 7vw, 88px); }
.page-head::before { content: ''; position: absolute; inset: 0; background: url(../images/map/terrain.svg) center / cover no-repeat; opacity: .45; pointer-events: none; }
.page-head .wrap { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.page-head .kicker { display: block; font-weight: 800; font-size: .95rem; letter-spacing: .28em; text-transform: uppercase; color: var(--contour); margin-bottom: 14px; }
.page-head h1 { font-weight: 900; font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .95; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.page-head .lead { margin-top: .8em; max-width: 46ch; }

/* ---------- story: portrait + prose ---------- */
.story { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.story img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }
.story .copy p { max-width: 62ch; margin-bottom: 1em; font-size: clamp(1.05rem, 1.15vw, 1.15rem); line-height: 1.65; text-wrap: pretty; }
.pull { margin-top: 1.4em; padding-top: .9em; border-top: 1px solid var(--line); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.25; letter-spacing: -.01em; max-width: 30ch; }

/* ---------- route: dated stations along a contour line ---------- */
.route { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.route::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; border-top: 2px dashed var(--contour); opacity: .6; }
.route li { position: relative; padding-top: 36px; }
.route li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--table); box-shadow: inset 0 0 0 4px var(--red-lit); }
.route .when { display: block; font-weight: 900; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1; color: var(--acetate); }
.route h3 { font-weight: 800; font-size: 1.2rem; margin-top: .5em; }
.route p { margin-top: .5em; font-size: 1.02rem; line-height: 1.55; color: var(--mute); }

/* ---------- card grids (values, topics, inclusions) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards .brief .zh:empty { display: none; }

/* ---------- plain list with hairlines ---------- */
.lines { list-style: none; max-width: 760px; }
.lines li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.08rem; line-height: 1.5; }
.lines li:last-child { border-bottom: 1px solid var(--line); }
.lines b { display: block; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 800; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; color: var(--red-lit); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 18px; max-width: 64ch; }

/* ---------- full-bleed print (speaking) ---------- */
.print.wide img { aspect-ratio: 900 / 386; }

/* ---------- concepts legend ---------- */
.legend-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 80px); }
.legend-group h2 { font-weight: 900; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; padding-bottom: .4em; border-bottom: 2px solid var(--acetate); }
.legend-group h2 .zh { font-family: var(--display-zh); color: var(--mute); font-size: .7em; margin-left: .4em; }
.legend-group ul { list-style: none; }
.legend-group li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.legend-group a { font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--paper); }
.legend-group a:hover { color: var(--acetate); }
.legend-group p { margin-top: .3em; font-size: 1rem; color: var(--mute); line-height: 1.5; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { font-weight: 700; font-size: 1rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75em .8em; border: 0; background: #fff; color: var(--ink); }
.form textarea { min-height: 160px; resize: vertical; }
.form button { justify-self: start; border: 0; cursor: pointer; }
.reach { list-style: none; }
.reach li { padding: 14px 0; border-top: 1px solid var(--line); }
.reach b { display: block; font-size: .95rem; color: var(--mute); font-weight: 700; }
.reach a { font-weight: 800; font-size: 1.15rem; }

@media (max-width: 1100px) { .route { grid-template-columns: repeat(2, minmax(0, 1fr)); } .route::before { display: none; } }
@media (max-width: 900px) {
  .page-head .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-head .legend { display: none; }
  .story, .cards, .cards.two, .legend-list, .contact-grid, .route { grid-template-columns: minmax(0, 1fr); }
  .story img { max-width: 280px; }
}

/* ---------- writing index: dispatches ---------- */
.wr-links { margin-top: 1em; font-weight: 700; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.blog-filter { font: inherit; font-weight: 700; font-size: 1rem; padding: .5em .95em; border: 0; background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.blog-filter:hover { box-shadow: inset 0 0 0 1px var(--acetate); }
.blog-filter.active { background: var(--acetate); color: var(--table); box-shadow: none; }
/* posts as a card grid: picture, category, title, date; the newest spans two columns */
.dispatches { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); }
.dispatch .card { display: flex; flex-direction: column; height: 100%; color: var(--paper); text-decoration: none; }
.dispatch figure { aspect-ratio: 16 / 9; overflow: hidden; background: var(--table-deep); border: 1px solid var(--line); }
.dispatch figure img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.dispatch figure .ph { display: block; width: 100%; height: 100%; background: url(../images/map/terrain.svg) center / cover; opacity: .5; }
.dispatch .card:hover img { transform: scale(1.03); }
.dispatch .cat { display: block; margin-top: 14px; font-weight: 800; font-size: .8rem; letter-spacing: .16em; color: var(--contour); }
.dispatch h2 { font-weight: 800; font-size: clamp(1.12rem, 1.3vw, 1.3rem); line-height: 1.3; margin-top: .35em; text-wrap: balance; }
.dispatch .card:hover h2 { color: var(--acetate); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dispatch p { display: none; }
.dispatch .meta { margin-top: auto; padding-top: .6em; font-size: .92rem; color: var(--mute); }
.dispatch.top { grid-column: span 2; }
.dispatch.top h2 { font-weight: 900; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.15; letter-spacing: -.01em; }
.dispatch.top p { display: block; margin-top: .5em; font-size: 1.05rem; line-height: 1.55; color: var(--mute); max-width: 62ch; }
.blog-show-more { margin-top: 36px; }
@media (max-width: 1100px) { .dispatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .dispatches { grid-template-columns: minmax(0, 1fr); } .dispatch.top { grid-column: auto; } }

/* ---------- connect: a business card for people Mikael meets (connect.html, QR at #qr) ---------- */
.connect { position: relative; padding: clamp(100px, 12vw, 150px) var(--gut) clamp(48px, 7vw, 96px); }
.connect::before { content: ''; position: absolute; inset: 0; background: url(../images/map/terrain.svg) center / cover no-repeat; opacity: .35; pointer-events: none; }
.connect-card { position: relative; display: grid; grid-template-columns: minmax(150px, 260px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 920px; margin: 0 auto; }
.connect-photo { position: relative; margin: 0; transform: rotate(-2deg); }
.connect-photo img { display: block; width: 100%; height: auto; box-shadow: 0 2px 3px rgba(0, 0, 0, .35), 0 24px 40px -12px rgba(0, 0, 0, .6); }
.connect-photo .tape { position: absolute; top: -12px; left: 50%; z-index: 1; width: 84px; height: 26px; transform: translateX(-50%) rotate(3deg); background: rgba(242, 242, 238, .55); }
.connect h1 { font-weight: 900; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: .95; letter-spacing: -.02em; }
.connect h1 .zh { display: block; margin-top: .25em; font-family: var(--display-zh); font-size: .62em; letter-spacing: .14em; color: var(--red-lit); }
.connect-line { margin-top: .9em; max-width: 44ch; font-size: 1.1rem; line-height: 1.5; }
.connect-actions { display: grid; gap: 12px; margin-top: 1.4em; max-width: 380px; }
.connect-actions .btn { justify-content: center; min-height: 52px; }
.connect-wa { gap: .55em; font-size: 1.1rem; }
.connect-wa svg { width: 1.3em; height: 1.3em; flex: none; }
.connect-qr { position: relative; max-width: 920px; margin: clamp(56px, 8vw, 96px) auto 0; padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); text-align: center; scroll-margin-top: 72px; }
.connect-qr h2 { font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.qr-paper { display: inline-block; margin-top: 18px; padding: 14px; background: #fff; box-shadow: 0 2px 3px rgba(0, 0, 0, .35), 0 24px 40px -14px rgba(0, 0, 0, .6); }
.qr-paper img { display: block; width: min(300px, 70vw); height: auto; }
.qr-url { margin-top: 14px; font-weight: 800; color: var(--mute); }
@media (max-width: 700px) {
  .connect-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .connect-photo { width: 58%; max-width: 230px; }
  .connect-line { margin-inline: auto; }
  .connect-actions { width: 100%; margin-inline: auto; }
}
