/* Writing pages: list and post. Uses the tokens from ../style.css */
.w-page { padding: 22vh var(--pad) 10vh; min-height: 100vh; }
.w-head h1 { font-size: clamp(64px, 14vw, 230px); line-height: .9; letter-spacing: -.055em; font-weight: 500; margin: 14px 0 26px; }
.w-head p { font-size: clamp(17px, 1.6vw, 21px); color: var(--soft); max-width: 44ch; line-height: 1.5; }
.w-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 7vh 0 4vh; }
.w-filters button { font: inherit; font-size: 14px; color: var(--ink); background: none; cursor: pointer; border: 1px solid var(--rule); border-radius: 999px; padding: 9px 16px; min-height: 40px; }
.w-filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.w-filters b { font-weight: 500; opacity: .5; margin-left: 4px; }

.w-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.w-list li { border-top: 1px solid var(--rule); }
.w-list a { display: grid; grid-template-columns: 120px 1fr 120px; gap: 8px 24px; align-items: baseline; padding: 28px 0; transition: opacity .3s; }
.w-list h2 { font-size: clamp(26px, 3.4vw, 50px); letter-spacing: -.035em; line-height: 1.05; font-weight: 500; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.w-list .sum { grid-column: 2; font-size: 16px; color: var(--soft); line-height: 1.5; max-width: 60ch; }
.w-list time { text-align: right; font-size: 14px; color: var(--soft); }
.w-list:hover a { opacity: .35; }
.w-list a:hover { opacity: 1; }
.w-list a:hover h2 { transform: translateX(14px); }
.kind { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k, var(--soft)); }
.kind[data-k="article"] { --k: #0891b2; }
.kind[data-k="message"] { --k: #c08a2d; }
.kind[data-k="note"] { --k: #6b7a5a; }
.w-empty { padding: 60px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.w-empty h2 { font-size: clamp(30px, 4vw, 56px); letter-spacing: -.035em; font-weight: 500; }
.w-empty p { margin-top: 12px; color: var(--soft); font-size: 17px; }

/* Single post */
.post { padding: 22vh var(--pad) 12vh; }
.post-head { max-width: 900px; margin: 0 auto 8vh; }
.post-head h1 { font-size: clamp(44px, 7vw, 110px); line-height: .98; letter-spacing: -.045em; font-weight: 500; margin: 20px 0 22px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--soft); }
.post-body { max-width: 680px; margin: 0 auto; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.75; }
.post-body > * + * { margin-top: 1.2em; }
.post-body h2 { font-size: 1.6em; line-height: 1.2; letter-spacing: -.02em; font-weight: 500; margin-top: 2em; }
.post-body blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid #0891b2; font-family: var(--serif); font-style: italic; font-size: 1.4em; line-height: 1.35; }
.post-body .ref { margin-top: -.6em; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding-left: 26px; }
.post-list { padding-left: 1.4em; }
.post-list li { padding: .5em 0 .5em .3em; border-bottom: 1px solid var(--rule); }
.post-list li::marker { color: #0891b2; font-weight: 500; }
.post-list b { font-weight: 500; }
.post-body a { border-bottom: 1px solid currentColor; }
.post-foot { max-width: 680px; margin: 10vh auto 0; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; }
.read-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.read-bar span { display: block; height: 100%; background: #0891b2; transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 720px) {
  .w-list a { grid-template-columns: 1fr; gap: 6px; }
  .w-list .sum { grid-column: 1; }
  .w-list time { text-align: left; }
  .w-list:hover a { opacity: 1; }
  .w-list a:hover h2 { transform: none; }
}
