/* =========================================================
   MOD Fronts — Subpage styles (blog, articles, legal, thanks)
   Shares design tokens from styles.css.
   ========================================================= */

/* ---------- subpage hero / masthead ---------- */
.page-hero { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-hero--alt { background: var(--warm-white); }
.page-hero__inner { max-width: 760px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; color: var(--graphite); }
.page-hero__lede { margin-top: 1.1rem; font-size: 1.1rem; color: var(--muted); line-height: 1.6; max-width: 60ch; }
.page-hero__note { margin-top: .9rem; font-size: .95rem; color: var(--muted); line-height: 1.6; max-width: 60ch; }
.page-hero__note a { color: var(--teal-deep); }
.page-hero__note a:hover { color: var(--teal); }

/* breadcrumb */
.crumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; flex-wrap: wrap; }
.crumb a { color: var(--teal-deep); }
.crumb a:hover { color: var(--teal); }
.crumb span { color: var(--muted-light); }

/* ---------- blog index ---------- */
.blog-list { padding-block: clamp(2.5rem, 5vw, 4rem); }
.blog-list__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.2rem); }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.post-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.post-card__body { padding: clamp(1.4rem, 2.5vw, 1.9rem); display: flex; flex-direction: column; height: 100%; }
.post-card__meta { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; color: var(--muted-2); }
.post-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; line-height: 1.12; letter-spacing: -0.01em; color: var(--graphite); margin: .8rem 0 .6rem; }
.post-card__excerpt { font-size: .98rem; color: var(--muted); line-height: 1.55; margin-bottom: 1.2rem; }
.post-card__link { margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--teal-deep); }
.post-card:hover .post-card__link { color: var(--teal); }
@media (max-width: 860px){ .blog-list__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .blog-list__grid { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.article { padding-block: clamp(2.5rem, 5vw, 4rem); }
.article__wrap { max-width: 720px; margin-inline: auto; }
.article__meta { display: flex; gap: .8rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; flex-wrap: wrap; }
.article__meta .dot { color: var(--muted-light); }
.article__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.04; letter-spacing: -0.02em; color: var(--graphite); }
.article__lede { margin-top: 1.2rem; font-size: 1.18rem; line-height: 1.6; color: var(--ink); }
.article__body { margin-top: 2.2rem; }
.article__body h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--graphite); margin: 2.2rem 0 .8rem; }
.article__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--graphite); margin: 1.6rem 0 .5rem; }
.article__body p { font-size: 1.07rem; line-height: 1.75; color: var(--ink); margin-bottom: 1.15rem; }
.article__body ul, .article__body ol { margin: 0 0 1.3rem 0; padding-left: 0; }
.article__body li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; font-size: 1.05rem; line-height: 1.65; color: var(--ink); list-style: none; }
.article__body ul li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: 7px; height: 7px; background: var(--teal); border-radius: 50%; }
.article__body ol { counter-reset: li; }
.article__body ol li { counter-increment: li; }
.article__body ol li::before { content: counter(li); position: absolute; left: 0; top: .05em; color: var(--teal-deep); font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.article__body a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.article__body a:hover { color: var(--teal); }
.article__body strong { font-weight: 700; color: var(--graphite); }
.pullquote { border-left: 3px solid var(--teal); padding: .3rem 0 .3rem 1.3rem; margin: 1.8rem 0; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.4; color: var(--graphite); }

/* article footer cta */
.article__cta { margin-top: 2.6rem; padding: clamp(1.6rem, 3vw, 2.2rem); background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); }
.article__cta h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--graphite); margin-bottom: .6rem; }
.article__cta p { color: var(--muted); margin-bottom: 1.2rem; line-height: 1.6; }
.article__cta .btn + .btn { margin-left: .7rem; }

/* more articles */
.more { border-top: 1px solid var(--line); padding-top: 2.2rem; margin-top: 2.6rem; }
.more__head { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); margin-bottom: 1rem; }
.more__links { display: flex; flex-direction: column; gap: .8rem; }
.more__links a { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--graphite); display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.more__links a:hover { color: var(--teal-deep); }
.more__links a::after { content: "\2192"; color: var(--teal); }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(2.5rem, 5vw, 4rem); }
.legal__wrap { max-width: 760px; margin-inline: auto; }
.legal__eff { font-size: .9rem; color: var(--muted); margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--graphite); margin: 2rem 0 .7rem; letter-spacing: -0.01em; }
.legal h3 { font-weight: 700; font-size: 1.05rem; color: var(--graphite); margin: 1.3rem 0 .4rem; }
.legal p { font-size: 1.03rem; line-height: 1.7; color: var(--ink); margin-bottom: 1rem; }
.legal ul { margin: 0 0 1.1rem 0; }
.legal li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; font-size: 1rem; line-height: 1.6; color: var(--ink); list-style: none; }
.legal li::before { content: ""; position: absolute; left: .15rem; top: .6em; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.legal a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--teal); }
.legal address { font-style: normal; color: var(--ink); line-height: 1.6; }
.legal__note { margin-top: 2.2rem; padding: 1.2rem 1.4rem; background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* ---------- thank-you page ---------- */
.thanks { min-height: 52vh; display: grid; place-items: center; text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.thanks__inner { max-width: 560px; }
.thanks__mark { width: 60px; height: 60px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 15%, transparent); display: grid; place-items: center; margin: 0 auto 1.6rem; }
.thanks__mark svg { width: 30px; height: 30px; }
.thanks h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--graphite); }
.thanks p { margin-top: 1.1rem; font-size: 1.08rem; color: var(--muted); line-height: 1.6; }
.thanks__actions { margin-top: 2rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.2rem, 9vw, 5rem); line-height: 1; letter-spacing: -0.03em; color: var(--teal); margin: 0; }
.error-links { margin-top: 1.8rem; font-size: 1rem; color: var(--muted); line-height: 1.7; }
.error-links a { color: var(--teal-deep); }
.error-links a:hover { color: var(--teal); }
