/* Full Covers Journal: the index and the article pages.
   Loaded after styles.css, so it only holds what those pages add.
   Layout: a wide head, one lead photograph, then the article beside a short
   "On this page" rail on wide screens. Body copy is darker and larger than
   the marketing pages' muted text, because it is read at length. */

.lp { padding-block: clamp(7rem, 12vw, 9.5rem) clamp(4rem, 7vw, 6rem); }
.lp__head { max-width: 58rem; }
.lp h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.lp__head .lede { margin-top: 1.5rem; font-size: clamp(1.125rem, 1.4vw, 1.3rem); max-width: 58ch; }
.lp__head .btn { margin-top: 2rem; }

.byline { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0; color: var(--muted); font-size: 0.9375rem; }
.byline b { color: var(--ink); font-weight: 600; }
.byline span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 0.75rem 0.2em; border-radius: 50%; background: var(--red); }

/* the lead photograph: a rounded panel, like the plates on the home page */
.lp__lead { margin: clamp(2.5rem, 5vw, 4rem) 0 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; background: #d9d6cf; box-shadow: var(--shadow); }
.lp__lead img { width: 100%; height: 100%; object-fit: cover; }
/* a card photo clicked on another page grows into this one (script.js names the card; styles.css opts pages in) */
.lp__lead { view-transition-name: lead-photo; }
@media (max-width: 767px) { .lp__lead { aspect-ratio: 4 / 3; } }

/* article beside its contents */
.lp__cols { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 15rem); justify-content: space-between; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.lp__cols .lp__body { margin-top: 0; }
.lp__toc { position: sticky; top: 6.5rem; }
.lp__toc p { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.lp__toc ol { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; border-left: 1px solid var(--line); }
.lp__toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); font-size: 0.9375rem; line-height: 1.35; text-decoration: none; transition: color 0.4s var(--ease), border-color 0.4s var(--ease); }
.lp__toc a:hover { color: var(--ink); border-color: var(--red); }
@media (max-width: 1099px) { .lp__cols { grid-template-columns: minmax(0, 1fr); } .lp__toc { display: none; } }

/* reading copy */
.lp__body { max-width: 44rem; margin-top: clamp(2.5rem, 5vw, 4rem); font-size: 1.125rem; line-height: 1.7; }
.lp__body h2 { font-size: clamp(1.6rem, 2.4vw, 1.95rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-top: 3.25rem; text-wrap: balance; scroll-margin-top: 6.5rem; }
.lp__body h2:first-child { margin-top: 0; }
.lp__body h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin-top: 1.75rem; }
.lp__body p, .lp__body li { color: #3b3a36; text-wrap: pretty; }
.lp__body p { margin-top: 1rem; }
.lp__body h3 + p { margin-top: 0.4rem; }
.lp__body strong { color: var(--ink); font-weight: 650; }
.lp__body a { color: var(--red-ink); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; text-decoration-color: rgba(176, 46, 23, 0.35); transition: text-decoration-color 0.4s var(--ease); }
.lp__body a:hover { text-decoration-color: currentColor; }
.lp__body ul, .lp__body ol { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.lp__body li { position: relative; padding-left: 1.6rem; }
.lp__body ul > li::before { content: ""; position: absolute; left: 0.2rem; top: 0.68em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.lp__body ol { counter-reset: step; }
.lp__body ol > li { counter-increment: step; padding-left: 2.2rem; }
.lp__body ol > li::before { content: counter(step); position: absolute; left: 0; top: 0.18em; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--red-wash); color: var(--red-ink); font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }

.tbl { margin-top: 1.25rem; overflow-x: auto; }
.tbl table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 1rem; }
.tbl th, .tbl td { text-align: left; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; color: #3b3a36; }
.tbl th { color: var(--ink); font-weight: 600; }
.tbl--fit table { min-width: 0; }

/* a phone screenshot sits in a white bezel, as media does on the home page */
.lp__fig { margin: 1.75rem 0 0; width: min(100%, 18rem); padding: var(--inset); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.lp__fig img { width: 100%; height: auto; border-radius: var(--r-in); display: block; }
.lp__fig figcaption { padding: 0.75rem 0.4rem 0.3rem; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }

/* questions: each one ruled off, so the block scans as a list */
.faq { margin-top: 3.25rem; }
.faq h2 { margin-top: 0; }
.faq h3 { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.faq h2 + h3 { margin-top: 1.5rem; }

/* more articles: cards, not a bullet list */
.lp__more { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.lp__more h2 { font-size: clamp(1.6rem, 2.4vw, 1.95rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 1.5rem; }
.lp__more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.lp__more li { display: grid; }
.lp__more a { position: relative; display: block; padding: 1.4rem 4rem 1.5rem 1.5rem; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; text-decoration: none; transition: color 0.4s var(--ease), transform 0.5s var(--ease); }
.lp__more a::after { content: ""; position: absolute; right: 1.25rem; top: 1.25rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23141414'%3E%3Cpath d='M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z'/%3E%3C/svg%3E") center / 0.9rem no-repeat; transition: transform 0.5s var(--ease), background-color 0.4s var(--ease); }
.lp__more a:hover { color: var(--red-ink); transform: translateY(-2px); }
.lp__more a:hover::after { transform: translate(3px, -2px); background-color: var(--red-wash); }

/* the closing ask: the one red panel on the page */
.lp__cta { margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r); background: var(--red); color: var(--on-red); box-shadow: 0 24px 50px -24px rgba(214, 58, 34, 0.7); display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; max-width: none; }
.lp__cta p { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.lp__cta .btn { background: #fff; color: var(--ink); box-shadow: none; }
.lp__cta .btn i { background: var(--red-wash); color: var(--red-ink); }
.lp__cta .btn:hover { background: var(--bg); box-shadow: none; }

/* the index: the newest article leads, the rest sit two across */
.posts { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); max-width: none; }
.post { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform 0.5s var(--ease); }
.post:hover { transform: translateY(-3px); }
.post__img { aspect-ratio: 16 / 9; overflow: hidden; background: #d9d6cf; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { display: grid; align-content: start; gap: 0.5rem; padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.post h2 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; transition: color 0.4s var(--ease); }
.post:hover h2 { color: var(--red-ink); }
.post p { color: var(--muted); }
.post__body > span { margin-top: 0.4rem; color: var(--red-ink); font-weight: 600; font-size: 0.9375rem; }
.post--lead { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.post--lead .post__img { aspect-ratio: auto; min-height: clamp(16rem, 28vw, 24rem); }
.post--lead .post__body { align-content: center; padding: clamp(1.5rem, 4vw, 3rem); }
.post--lead h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
@media (max-width: 767px) {
  .posts { grid-template-columns: minmax(0, 1fr); }
  .post--lead { grid-template-columns: minmax(0, 1fr); }
  .post--lead .post__img { aspect-ratio: 16 / 9; min-height: 0; }
}

/* links in the floating nav, for pages that are not the home page */
.nav__links a[aria-current="page"] { color: var(--ink); }
