/* Blog: index and article (index.php, single.php, template-parts/post-card.php) */
.blog-head { padding-bottom: 0; }
/* Topics read like tabs on a printed guide: serif words on one rule, the open one underlined in turmeric. */
.topics { margin-top: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line-strong); }
.topics ul { display: flex; gap: 4px clamp(20px, 2.6vw, 36px); overflow-x: auto; scrollbar-width: none; }
.topics ul::-webkit-scrollbar { display: none; }
.topics a { display: flex; align-items: baseline; gap: 6px; padding-block: 10px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-family: var(--serif); font-size: 1.35rem; white-space: nowrap; text-decoration: none; color: var(--ink-soft); }
.topics a:hover { color: var(--night); }
.topics a[aria-current] { color: var(--night); border-bottom-color: var(--turmeric); }
.topics small { font-family: "Alegreya Sans", sans-serif; font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.blog-list { padding-block: clamp(32px, 4vw, 56px) var(--sec); }

/* Cards: one link each; the title underlines on hover, nothing moves. */
.post-lead a, .post-card a { display: grid; text-decoration: none; }
.post-photo { display: block; overflow: hidden; border-radius: var(--r-photo); background: var(--canvas); }
.post-photo img { width: 100%; height: 100%; object-fit: cover; }
.post-photo.is-empty { display: grid; place-items: center; color: var(--line-strong); }
.post-photo.is-empty .i { width: 40px; height: 40px; }
.post-topic { display: block; font-size: 1rem; font-weight: 700; color: var(--wood); }
.post-title { font-family: var(--serif); font-weight: 500; text-wrap: balance; text-decoration-thickness: 1.5px; text-underline-offset: .14em; }
a:hover .post-title { text-decoration: underline; }
.post-excerpt { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-soft); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 1rem; color: var(--ink-soft); }
.post-meta > .read { display: inline-flex; align-items: center; gap: 6px; }
.post-meta > .read::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--clock) center / contain no-repeat; mask: var(--clock) center / contain no-repeat; }
:root { --clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }

.post-lead a { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.4vw, 52px); align-items: center; }
.post-lead .post-photo { aspect-ratio: 3 / 2; }
.post-lead .post-text { display: grid; gap: 12px; }
.post-lead .post-title { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; }
.post-lead .post-excerpt { -webkit-line-clamp: 4; font-size: 1.25rem; line-height: 1.42; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(18px, 2.2vw, 32px); }
.post-lead + .post-grid { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.post-card a { gap: 6px; align-content: start; }
.post-card .post-photo { aspect-ratio: 4 / 3; margin-bottom: 10px; }
.post-card .post-text { display: grid; gap: 6px; }
.post-card .post-title { font-size: 1.6rem; line-height: 1.14; }
.post-card .post-excerpt { -webkit-line-clamp: 3; line-height: 1.38; }
.post-card .post-meta { margin-top: 2px; }
:lang(zh) .post-title, :lang(ja) .post-title { line-height: 1.3; }
:lang(zh) .post-lead .post-title, :lang(ja) .post-lead .post-title { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
:lang(zh) .post-card .post-title, :lang(ja) .post-card .post-title { font-size: 1.4rem; }
@media (max-width: 1099px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .post-lead a { grid-template-columns: 1fr; gap: 18px; }
  .post-grid { grid-template-columns: 1fr; }
}

.blog-list .pagination { margin-top: clamp(48px, 6vw, 80px); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.nav-links a.page-numbers:hover { background: var(--canvas); }
.nav-links .current { background: var(--night); color: #fff; }
.nav-links .dots { min-width: 24px; padding: 0; color: var(--ink-soft); }
.nav-links .prev, .nav-links .next { display: inline-flex; gap: 6px; padding-inline: 18px; border: 1.5px solid var(--line-strong); }
.nav-links .prev .i, .nav-links .next .i { width: 18px; height: 18px; }
.blog-empty { display: grid; justify-items: start; gap: 18px; max-width: 34em; padding-block: 16px; font-size: 1.25rem; color: var(--ink-soft); }

/* Article: one centred reading column; the contents sit in the margin on wide screens. */
.article { padding-top: clamp(16px, 3vw, 40px); }
.article-top.is-wide .article-head { max-width: 720px; margin-inline: auto; }
.article-topic { display: inline-block; font-size: 1.05rem; font-weight: 700; color: var(--wood); text-decoration: none; }
.article-topic:hover { text-decoration: underline; }
.article-head h1 { margin-top: 10px; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.06; }
:lang(zh) .article-head h1, :lang(ja) .article-head h1 { font-size: clamp(2.1rem, 3.9vw, 3.2rem); line-height: 1.22; }
.article-head .lead { margin-top: 16px; font-size: clamp(1.25rem, 1.8vw, 1.45rem); line-height: 1.4; color: var(--ink-soft); }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 20px; font-size: 1rem; color: var(--ink-soft); }
.article-meta > .read { display: inline-flex; align-items: center; gap: 6px; }
.article-meta > .read::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--clock) center / contain no-repeat; mask: var(--clock) center / contain no-repeat; }
.article-cover { margin-top: clamp(28px, 4vw, 48px); }
.article-cover img { width: 100%; object-fit: cover; border-radius: var(--r-photo); }
.article-cover figcaption { max-width: 720px; margin: 10px auto 0; font-size: .98rem; color: var(--ink-soft); }
.article-top.is-wide { max-width: calc(1200px + 2 * var(--gutter)); }
.article-top.is-wide .article-cover img { aspect-ratio: 3 / 2; }
.article-top.is-tall .article-cover img { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .article-top.is-tall { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; max-width: calc(1200px + 2 * var(--gutter)); }
  .article-top.is-tall .article-cover { margin-top: 0; }
  .article-top.is-tall .article-cover img { max-height: calc(100vh - var(--head-h) - 48px); }
  .article-top.is-tall figcaption { margin-inline: 0; }
}
.article-body { margin-top: clamp(32px, 4.5vw, 56px); }
@media (min-width: 1100px) {
  .article-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); }
  .article-body .prose { grid-column: 2; grid-row: 1; }
  .toc { grid-column: 1; grid-row: 1; justify-self: end; align-self: start; position: sticky; top: calc(var(--head-h) + 28px); width: min(250px, 100%); }
  .toc-toggle { cursor: default; pointer-events: none; }
  .toc-toggle .i { display: none; }
}
.toc-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; font-size: 1rem; font-weight: 700; color: var(--ink-soft); text-align: left; }
.toc-toggle .i { width: 20px; height: 20px; transition: rotate .2s; }
.toc-toggle[aria-expanded="true"] .i { rotate: 180deg; }
.toc ol { display: grid; gap: 2px; margin-top: 12px; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; font-size: 1.02rem; line-height: 1.3; color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--night); }
.toc a[aria-current] { border-left-color: var(--turmeric); color: var(--night); font-weight: 500; }
@media (max-width: 1099px) {
  .toc { max-width: 720px; margin: 0 auto 32px; padding: 14px 18px; border-radius: var(--r-control); background: var(--canvas); }
  .toc-toggle { min-height: 32px; color: var(--night); }
  .toc ol { margin-bottom: 4px; }
  .article-body .prose { max-width: 720px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .toc-toggle .i { transition: none; }
}

/* Article text: a little larger and looser than the pages, for reading at length. */
.article .prose { font-size: 1.25rem; line-height: 1.64; }
:lang(zh) .article .prose, :lang(ja) .article .prose { font-size: 1.15rem; line-height: 1.85; }
.article .prose > * + * { margin-top: 1.05em; }
.article .prose > h2 { margin-top: 2.1em; font-size: clamp(1.8rem, 2.8vw, 2.3rem); line-height: 1.14; }
.article .prose > h3 { margin-top: 1.7em; font-size: 1.4rem; }
.article .prose > :is(h2, h3) + * { margin-top: .6em; }
.article .prose > :first-child { margin-top: 0; }
.article .prose a { color: var(--night); text-decoration-color: var(--turmeric); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.article .prose a:hover { color: var(--lantern-dark); text-decoration-color: currentColor; }
.article .prose :is(ul, ol) { padding-left: 1.3em; }
.article .prose ul { list-style: disc; }
.article .prose ol { list-style: decimal; }
.article .prose li::marker { color: var(--wood); }
.article .prose li + li { margin-top: .4em; }
.article .prose strong { font-weight: 700; }
.article .prose figure { margin-block: 2em; }
.article .prose figure img, .article .prose > p > img { width: 100%; }
.article .prose figcaption { margin-top: 10px; font-size: .95rem; line-height: 1.4; color: var(--ink-soft); }
.article .prose blockquote { margin-block: 1.8em; padding-left: 24px; border-left: 3px solid var(--turmeric); }
.article .prose blockquote p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.38; }
.article .prose blockquote cite { display: block; margin-top: 10px; font-family: "Alegreya Sans", sans-serif; font-size: 1rem; font-style: normal; color: var(--ink-soft); }
.article .prose hr { width: 100%; height: 1px; margin-block: 2.4em; border: 0; background: var(--line-strong); }
.article .prose .wp-block-table { overflow-x: auto; }
.article .prose table { width: 100%; border-collapse: collapse; font-size: 1.05rem; line-height: 1.4; }
.article .prose :is(th, td) { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article .prose th { font-weight: 700; border-bottom-color: var(--line-strong); }
.article .prose .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.article .prose .wp-block-gallery.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article .prose .wp-block-gallery figure { margin: 0; }
.article .prose .wp-block-gallery img { height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.article .prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.article .prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 10px 28px; border-radius: 999px; background: var(--night); color: #fff; font-weight: 700; text-decoration: none; }
.article .prose .wp-block-button__link:hover { background: #2a3f66; color: #fff; }
.article .prose iframe { width: 100%; border: 0; border-radius: var(--r-photo); }
.article .prose .wp-block-embed__wrapper { position: relative; }

.article-foot { max-width: calc(720px + 2 * var(--gutter)); margin-top: clamp(40px, 5vw, 64px); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.share p { font-weight: 700; }
.share ul { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: 1.02rem; font-weight: 700; text-decoration: none; transition: border-color .15s, background-color .15s; }
.share-btn:hover { border-color: var(--night); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-btn.is-done { border-color: var(--ok); color: var(--ok); }

/* "Book a shoot" after the article, then more articles. */
.post-cta { max-width: calc(1100px + 2 * var(--gutter)); margin-block: clamp(56px, 7vw, 96px); }
.post-cta-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; border-radius: var(--r-panel); background: var(--canvas); }
.post-cta-photo img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.post-cta-text { display: grid; align-content: center; justify-items: start; gap: 12px; padding: clamp(28px, 4.5vw, 56px); }
.post-cta-text h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.post-cta-text p { max-width: 30em; color: var(--ink-soft); }
.post-cta-price { color: var(--night) !important; font-size: 1.15rem; }
.post-cta-text .btn { margin-top: 8px; }
@media (max-width: 760px) {
  .post-cta-in { grid-template-columns: 1fr; }
  .post-cta-photo img { min-height: 0; aspect-ratio: 3 / 2; }
}
.related { padding-bottom: var(--sec); }
.related > h2 { margin-bottom: clamp(24px, 3vw, 40px); font-size: clamp(2rem, 3.2vw, 2.6rem); }
/* Phones: more articles as a short list, small photo beside the title. */
@media (max-width: 760px) {
  .related .post-grid { gap: 20px; }
  .related .post-card a { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
  .related .post-card .post-photo { aspect-ratio: 1; margin: 0; border-radius: var(--r-control); }
  .related .post-card .post-title { font-size: 1.3rem; }
  .related .post-card .post-excerpt { display: none; }
}
