/* Blog list and single article. Loads after refined.css; reuses the hero frame (.intro) as a shorter page head. */

/* ---------- Page head: the same coastline as the home hero, lower ---------- */
.intro--page .intro__grid { padding-top: clamp(16px, 3vw, 48px); padding-bottom: clamp(88px, 10vw, 150px); min-height: clamp(380px, 34vw, 520px); }
.intro--page .intro__copy h1 { font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4rem); }
.intro--page .intro__copy .lead { max-width: 32ch; }
.intro--page .intro__visual picture, .intro--page .intro__visual .page-art { position: absolute; left: 54%; top: 46%; width: 66%; transform: translate(-50%, -50%); }

/* article head: a longer headline and the post's cover cut as a teardrop on the blob */
/* the blob takes the right ~55% of the frame, so the headline stays in the left half */
.intro--article .intro__copy { grid-column: 1 / span 6; }
.intro--article .intro__copy h1 { font-size: clamp(2rem, 1.3rem + 1.9vw, 2.875rem); max-width: 17ch; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-weight: 500; font-size: 1rem; color: var(--ink-2); text-decoration: none; transition: color 160ms ease; }
.back-link svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .back-link:hover { color: var(--ink); } .back-link:hover svg { transform: translateX(-3px); } }
.article-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 1rem; color: var(--ink-2); }
.article-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 18px; border-radius: 50%; background: var(--blue); vertical-align: middle; }
.cover { position: absolute; left: 52%; top: 46%; width: min(58%, 340px); aspect-ratio: 1; transform: translate(-50%, -50%); margin: 0; border-radius: 6% 50% 50% 50%; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(14, 27, 44, 0.12), 0 30px 60px -28px rgba(14, 27, 44, 0.55); }
.cover img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1199px) {
  .intro--page .intro__visual picture, .intro--page .intro__visual .page-art { width: 64%; left: 53%; }
  .intro--article .intro__copy { grid-column: 1 / span 6; }
}
@media (max-width: 900px) {
  .intro--page .intro__grid { min-height: 0; padding-bottom: 0; }
  .intro--page .intro__copy .lead { max-width: 40ch; }
  .intro--page .intro__visual picture, .intro--page .intro__visual .page-art { position: relative; left: auto; top: auto; display: block; width: min(460px, 86%); margin: 0 auto; transform: none; }
  .intro--article .intro__copy { grid-column: 1 / -1; }
  .intro--article .intro__copy h1 { max-width: 24ch; }
  .cover { position: relative; left: auto; top: auto; transform: none; display: block; width: min(240px, 56%); margin: 0 auto; }
}

/* ---------- Blog list: hairline rows, teardrop pictures alternate sides of the curl ---------- */
.post-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.post-row { border-top: 1px solid var(--line); }
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-row a.post-row__link { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 4vw, 56px); color: inherit; text-decoration: none; }
.post-row .drop { position: relative; width: 100%; background: var(--mist); }
.post-row .drop img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.post-row h2 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); max-width: 22ch; transition: color 200ms ease; }
.post-row .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.9375rem; color: var(--ink-2); }
.post-row .meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 16px; border-radius: 50%; background: var(--blue); vertical-align: middle; }
.post-row .excerpt { margin-top: 16px; color: var(--ink-2); max-width: 58ch; }
.read-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; font-size: 1.0625rem; color: var(--blue-deep); }
.read-more svg { width: 20px; height: 20px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .post-row a.post-row__link:hover .drop img { transform: scale(1.04); }
  .post-row a.post-row__link:hover h2 { color: var(--blue-deep); }
  .post-row a.post-row__link:hover .read-more svg { transform: translateX(4px); }
}
.post-row a.post-row__link:focus-visible { outline-offset: 8px; }
.blog-list { padding-top: clamp(48px, 6vw, 96px); }
@media (max-width: 700px) {
  .post-row a.post-row__link { grid-template-columns: 1fr; gap: 24px; }
  .post-row .drop { width: min(220px, 60%); }
}

/* ---------- Article body ---------- */
.article-body { padding-top: clamp(48px, 6vw, 96px); }
.article-body .grid { align-items: start; row-gap: 48px; }
.prose { grid-column: 1 / span 7; min-width: 0; font-size: 1.1875rem; line-height: 1.7; overflow-wrap: break-word; }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child { font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.4375rem); line-height: 1.55; color: var(--ink); }
.prose p { color: #2b3a4e; max-width: 66ch; }
.prose a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--blue); text-underline-offset: 0.2em; transition: text-decoration-color 160ms ease; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { width: min(100%, 520px); border-radius: var(--radius); background: var(--mist); }
.prose figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }

/* aside: share and a related call to action, sticky beside the text on wide screens */
.article-aside { grid-column: 9 / span 4; position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 20px; }
.aside-card { background: var(--mist); border-radius: var(--radius); padding: 24px; }
.aside-card h2 { font-size: 1.1875rem; letter-spacing: -0.01em; }
.aside-card p { margin-top: 8px; font-size: 1rem; color: var(--ink-2); }
.aside-card .button { margin-top: 18px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 500; text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 160ms ease, transform 160ms var(--ease-out), color 160ms ease; }
.share svg { width: 18px; height: 18px; flex: none; }
.share a:active, .share button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .share a:hover, .share button:hover { box-shadow: inset 0 0 0 1.5px var(--blue-deep); color: var(--blue-deep); } }
.share button[data-copied] { color: var(--blue-deep); box-shadow: inset 0 0 0 1.5px var(--blue-deep); }
.article-foot { grid-column: 1 / span 7; display: flex; flex-wrap: wrap; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line); }
.button--outline .arrow--back { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { .button--outline:hover .arrow--back { transform: scaleX(-1) translateX(4px); } }
@media (max-width: 1000px) {
  .prose, .article-foot { grid-column: 1 / -1; }
  .article-aside { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* more from the blog */
.more-posts { padding-top: var(--section); }
.more-posts .post-list { margin-top: 32px; }

/* blog pagination and empty state */
.pager { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; font-weight: 600; }
.pager a { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.empty { grid-column: 1 / -1; color: var(--ink-2); }
/* WordPress content inside articles */
.prose img { height: auto; }
.prose .aligncenter { margin-inline: auto; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; color: #2b3a4e; }
.prose li + li { margin-top: 0.4em; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--blue); color: var(--ink); font-size: 1.25rem; }
/* images inside the article text: same treatment as the prototype's figure */
.prose img { display: block; width: min(100%, 520px); height: auto; margin: 2em 0; border-radius: var(--radius); background: var(--mist); }
