/* The Notebook — blog index + post pages. Reuses tokens/header/footer from
   styles.css; this file adds the blog-specific pieces. */

.nav__link--active { color: #fff; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }

/* ---- Blog index ---- */
.blog-masthead { position: relative; background: var(--teal); padding: 56px 32px 64px; }
.blog-masthead__inner { position: relative; max-width: 1080px; margin: 0 auto; text-align: center; }
.blog-masthead .eyebrow { justify-content: center; display: inline-flex; }
.blog-masthead h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 6vw, 64px); line-height: 0.98; margin: 0 0 16px; color: var(--cream); text-wrap: balance; }
.blog-masthead p { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2vw, 21px); color: var(--cream-2); max-width: 52ch; margin: 0 auto; }

.notebook-main { max-width: 1080px; margin: 0 auto; padding: 64px 32px 80px; }

.featured-post { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: stretch; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(22,40,61,.10); border: 1px solid #e6dcc4; margin-bottom: 56px; color: inherit; transition: box-shadow .15s ease; }
.featured-post:hover { box-shadow: 0 24px 52px rgba(22,40,61,.16); }
.featured-post__art { position: relative; background: var(--navy); min-height: 320px; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.featured-post__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.featured-post__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, color-mix(in srgb, var(--accent,#16283D) 45%, transparent), color-mix(in srgb, #0a121e 80%, var(--accent,#16283D))); }
.featured-post__art::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px); }
.featured-post__badge { position: relative; z-index: 2; align-self: flex-start; background: var(--orange); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.featured-post__title { position: relative; z-index: 2; font-family: var(--serif); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--cream); }
.featured-post__body { padding: 40px 40px 40px 8px; display: flex; flex-direction: column; justify-content: center; }
.featured-post__meta { font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.featured-post__excerpt { font-size: 17px; line-height: 1.65; color: #47566a; margin: 0 0 22px; }
.featured-post__more { font-weight: 800; font-size: 15px; color: var(--orange); }

.section-divider { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.section-divider h2 { font-family: var(--serif); font-weight: 800; font-size: 24px; margin: 0; color: var(--navy); white-space: nowrap; }
.section-divider .rule { flex: 1; height: 2px; background: #d8cba9; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 26px rgba(22,40,61,.08); border: 1px solid #e6dcc4; color: inherit; transition: box-shadow .15s ease, transform .15s ease; }
.post-card:hover { box-shadow: 0 18px 38px rgba(22,40,61,.15); transform: translateY(-3px); }
.post-card__accent { height: 8px; }
.post-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-weight: 700; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.post-card__title { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--navy); margin-bottom: 12px; }
.post-card__excerpt { font-size: 14.5px; line-height: 1.6; color: #56657a; margin: 0 0 20px; flex: 1; }
.post-card__more { font-weight: 800; font-size: 13.5px; color: var(--orange); }

.older-entries { text-align: center; margin-top: 56px; }
.btn--outline-teal { display: inline-block; border: 2px solid var(--teal); color: var(--teal); font-weight: 800; font-size: 15px; letter-spacing: .03em; padding: 14px 32px; border-radius: 999px; transition: background-color .15s ease, color .15s ease; }
.btn--outline-teal:hover { background: var(--teal); color: var(--cream); }

/* ---- Newsletter strip (shared by index + post) ---- */
.newsletter-strip { background: var(--navy); padding: 60px 32px; text-align: center; }
.newsletter-strip__inner { max-width: 620px; margin: 0 auto; }
.newsletter-strip h2 { font-family: var(--serif); font-weight: 800; font-size: 28px; color: var(--cream); margin: 0 0 10px; }
.newsletter-strip p { font-size: 16px; color: var(--slate-2); margin: 0 0 24px; }
.strip-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.strip-form input[type=email] { flex: 1 1 240px; max-width: 320px; border: 2px solid #2f4763; background: #1f344b; color: var(--cream); border-radius: 999px; padding: 13px 18px; font-family: inherit; font-size: 15px; outline: none; transition: border-color .15s ease; }
.strip-form input[type=email]:focus { border-color: var(--teal); }
.strip-form button { background: var(--orange); color: #fff; border: none; font-family: inherit; font-weight: 800; font-size: 15px; padding: 13px 26px; border-radius: 999px; cursor: pointer; transition: background-color .15s ease; }
.strip-form button:hover { background: var(--orange-hover); }
.strip-form button:disabled { opacity: .8; cursor: default; }
.strip-status { margin-top: 14px; color: #7fd3e4; font-weight: 700; font-size: 14.5px; }

/* ---- Post / article ---- */
.article-header { position: relative; background: var(--navy); padding: 56px 32px 60px; overflow: hidden; }
.article-header.has-hero { min-height: 340px; display: flex; align-items: center; }
.article-header__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.article-header__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(175deg, color-mix(in srgb, var(--accent,#16283D) 55%, transparent), color-mix(in srgb, #0a121e 78%, var(--accent,#16283D))); }
.article-header__inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.article-back { display: inline-block; color: #7fc9d9; font-weight: 700; font-size: 13px; letter-spacing: .06em; margin-bottom: 22px; }
.article-back:hover { color: var(--cream); }
.article-meta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.article-meta .dot { color: #3f5a76; }
.article-meta .muted { color: #8aa0b4; }
.article-header h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 5vw, 52px); line-height: 1.04; margin: 0 0 20px; color: var(--cream); text-wrap: balance; }
.article-dek { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--slate-2); margin: 0; }

.article-hero { max-width: 860px; margin: -32px auto 0; padding: 0 32px; position: relative; z-index: 1; }
.article-hero__box { aspect-ratio: 16 / 8; background: var(--teal); border-radius: 12px; box-shadow: 0 20px 44px rgba(22,40,61,.24); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.article-hero__box::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 26px); }
.article-hero__label { position: relative; color: var(--cream-2); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.article-hero__caption { text-align: center; font-size: 13px; color: #8a7d61; margin-top: 12px; font-style: italic; }

.article { max-width: 680px; margin: 0 auto; padding: 52px 32px 24px; font-size: 18.5px; line-height: 1.75; color: #2a3a4d; }
.article > p:first-of-type::first-letter { float: left; font-family: var(--serif); font-weight: 900; font-size: 74px; line-height: 0.72; color: var(--orange); margin: 8px 14px 0 0; }
.article p { margin: 0 0 24px; }
.article h2 { font-family: var(--serif); font-weight: 800; font-size: 28px; line-height: 1.2; color: var(--navy); margin: 8px 0 18px; }
.article blockquote { margin: 8px 0 34px; padding: 4px 0 4px 26px; border-left: 5px solid var(--teal); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4; color: var(--navy); }
.article ol { margin: 0 0 32px; padding: 0; list-style: none; counter-reset: finding; }
.article ol li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; counter-increment: finding; font-size: 17.5px; line-height: 1.6; }
.article ol li::before { content: counter(finding); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.article ul { margin: 0 0 24px; padding-left: 22px; }
.article ul li { margin: 6px 0; }

.author-card { max-width: 680px; margin: 36px auto 0; padding: 0 32px; }
.author-card__inner { background: #fff; border: 1px solid #e6dcc4; border-radius: 14px; padding: 28px 30px; display: flex; gap: 22px; align-items: center; box-shadow: 0 12px 30px rgba(22,40,61,.08); }
.author-card__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: var(--cream); font-family: var(--serif); font-weight: 900; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.author-card__name { font-family: var(--serif); font-weight: 800; font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.author-card p { font-size: 14.5px; line-height: 1.6; color: #56657a; margin: 0; }

.article-tags { max-width: 680px; margin: 28px auto 0; padding: 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.article-tag { border: 1.5px solid var(--teal); color: var(--teal); font-weight: 700; font-size: 12px; letter-spacing: .04em; padding: 6px 13px; border-radius: 999px; text-transform: uppercase; }

/* ---- Recommended posts + back link (end of article) ---- */
.post-more { max-width: 1080px; margin: 64px auto 0; padding: 0 32px; }
.post-more--empty { margin-top: 48px; }
.post-more__back { text-align: center; margin-top: 44px; }

.preorder-strip { position: relative; background: var(--teal); margin-top: 56px; padding: 56px 32px; }
.preorder-strip__inner { position: relative; max-width: 640px; margin: 0 auto; text-align: center; }
.preorder-strip h2 { font-family: var(--serif); font-weight: 900; font-size: 30px; color: var(--cream); margin: 0 0 12px; }
.preorder-strip p { font-size: 16.5px; color: var(--cream-2); margin: 0 0 26px; }

.notfound { max-width: 680px; margin: 0 auto; padding: 90px 32px; text-align: center; }
.notfound h1 { font-family: var(--serif); font-weight: 900; font-size: 40px; color: var(--navy); margin: 0 0 12px; }
.notfound p { font-size: 17px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post__body { padding: 32px; }
  .post-grid { grid-template-columns: 1fr; }
  .notebook-main { padding: 48px 20px 64px; }
}
@media (max-width: 560px) {
  .article > p:first-of-type::first-letter { font-size: 58px; }
  .article { font-size: 17.5px; }
}

/* ============ Notebook landing redesign — "Notes from the Bench" ============ */
.nb-wrap { max-width: 1360px; margin: 0 auto; }
/* hero */
.nb-hero { background: #1B9AAF; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px); padding: 56px 48px; }
.nb-hero__grid { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.nb-kicker { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 14px; letter-spacing: .3em; color: #BFE8EF; text-transform: uppercase; margin: 0 0 14px; }
.nb-h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.08; color: #fff; margin: 0 0 16px; }
.nb-sub { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.5; color: #E5F6F9; margin: 0 0 26px; max-width: 480px; }
.nb-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; max-width: 440px; padding: 6px 6px 6px 20px; box-shadow: 0 6px 24px rgba(22,40,60,.25); }
.nb-search svg { flex-shrink: 0; }
.nb-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 14px; color: #1C2B3A; background: transparent; }
.nb-search input::placeholder { color: #8A93A0; }
.nb-search button { background: #E8623D; color: #fff; border: 0; border-radius: 999px; font: inherit; font-weight: 800; font-size: 13px; padding: 10px 20px; cursor: pointer; }
.nb-search button:hover { background: #C74B2A; }
.nb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.nb-chip { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 700; font-size: 12px; padding: 7px 14px; border-radius: 999px; text-decoration: none; }
.nb-chip:hover { background: rgba(255,255,255,.22); }
.nb-chip.on { background: rgba(22,40,60,.55); border-color: rgba(255,255,255,.35); font-weight: 800; }
/* hero featured card */
.nb-feat { display: block; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 40px rgba(22,40,60,.35); color: inherit; text-decoration: none; }
.nb-feat__img { position: relative; height: 260px; background: var(--navy); }
.nb-feat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-feat__badge { position: absolute; top: 14px; left: 14px; background: #E8623D; color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.nb-feat__body { padding: 22px 26px 24px; }
.nb-feat__meta { font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8A93A0; margin-bottom: 12px; }
.nb-feat__meta .cat { color: #1B9AAF; }
.nb-feat__title { font-family: var(--serif); font-weight: 800; font-size: 24px; line-height: 1.15; color: #16283C; margin: 0 0 10px; }
.nb-feat__excerpt { font-size: 14px; line-height: 1.6; color: #3D4A59; margin: 0 0 14px; }
.nb-feat__more, .nb-card__more { color: #E8623D; font-weight: 800; font-size: 13px; }
/* fresh off the bench */
.nb-fresh { background: #F0EAD9; padding: 44px 48px; }
.nb-sec { max-width: 1360px; margin: 0 auto; }
.nb-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.nb-sec-head h2 { font-family: var(--serif); font-weight: 800; font-size: 26px; color: #16283C; margin: 0; }
.nb-sec-head .rule { flex: 1; height: 1px; background: #D6CCB6; }
.nb-link { color: #E8623D; font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; }
.nb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nb-card { display: block; background: #fff; border-radius: 10px; border-top: 4px solid var(--cat, #1B9AAF); padding: 24px 26px; box-shadow: 0 2px 8px rgba(28,43,58,.08); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.nb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28,43,58,.14); text-decoration: none; }
.nb-card__meta { font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.nb-card__meta .cat { color: var(--cat, #1B9AAF); }
.nb-card__meta .dim { color: #8A93A0; }
.nb-card__title { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.2; color: #16283C; margin: 0 0 8px; }
.nb-card__excerpt { font-size: 14px; line-height: 1.6; color: #3D4A59; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nb-loadmore-wrap { text-align: center; margin-top: 30px; }
.nb-loadmore { display: inline-block; border: 2px dashed #B8AE9A; background: #FBF7EC; color: #1C2B3A; font-weight: 800; font-size: 14px; padding: 14px 36px; border-radius: 999px; text-decoration: none; }
.nb-loadmore:hover { background: #f3ecdc; }
.nb-empty { text-align: center; color: #6b6250; padding: 40px 0; font-size: 15px; }
.nb-empty a { color: #E8623D; font-weight: 700; }
/* reading paths */
.nb-paths { max-width: 1360px; margin: 40px auto 0; background: #1C2B3A; border-radius: 14px; padding: 34px 38px; }
.nb-paths__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.nb-paths__head h2 { font-family: var(--serif); font-weight: 800; font-size: 22px; color: #F0EAD9; margin: 0; }
.nb-paths__head .cap { font-family: var(--serif); font-style: italic; font-size: 14px; color: #5BC4D4; }
.nb-paths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nb-path { display: block; background: #22374C; border-radius: 10px; padding: 20px 22px; border-left: 4px solid var(--edge, #E8623D); color: inherit; text-decoration: none; }
.nb-path:hover { background: #294560; text-decoration: none; }
.nb-path__title { font-family: var(--serif); font-weight: 700; font-size: 17px; color: #fff; margin: 0 0 8px; }
.nb-path__desc { font-size: 13px; line-height: 1.5; color: #9FB0C2; margin: 0 0 14px; }
.nb-path__foot { font-weight: 800; font-size: 12px; letter-spacing: .05em; color: #5BC4D4; }
/* most read */
.nb-mostread { background: #F0EAD9; padding: 0 48px 48px; }
.nb-mr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nb-mr { display: flex; gap: 14px; align-items: flex-start; color: inherit; text-decoration: none; }
.nb-mr__rank { font-family: var(--serif); font-weight: 800; font-size: 40px; line-height: 1; color: #E8623D; flex-shrink: 0; }
.nb-mr__title { display: block; font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.3; color: #16283C; margin: 0 0 4px; }
.nb-mr:hover .nb-mr__title { text-decoration: underline; }
.nb-mr__meta { display: block; font-size: 12px; color: #8A93A0; }
/* pre-order band */
.nb-preorder { background: #E8623D; padding: 40px 48px; }
.nb-preorder__inner { max-width: 1360px; margin: 0 auto; display: flex; align-items: center; gap: 36px; }
.nb-preorder__cover { width: 110px; height: 165px; border-radius: 6px; object-fit: cover; box-shadow: 0 10px 26px rgba(0,0,0,.28); flex-shrink: 0; }
.nb-preorder__text { flex: 1; color: #fff; }
.nb-preorder__kicker { font-family: var(--serif); font-style: italic; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; opacity: .85; margin: 0 0 6px; }
.nb-preorder__title { font-family: var(--serif); font-weight: 800; font-size: 30px; margin: 0 0 8px; }
.nb-preorder__blurb { font-size: 15px; line-height: 1.6; margin: 0; max-width: 560px; }
.nb-preorder__cta { background: #16283C; color: #fff; font-weight: 800; font-size: 15px; padding: 16px 34px; border-radius: 999px; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.nb-preorder__cta:hover { background: #0f1c2b; }
/* archive strip */
.nb-archive { background: #F0EAD9; padding: 32px 48px; }
.nb-archive__inner { max-width: 1360px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nb-archive__label { font-family: var(--serif); font-weight: 700; font-size: 16px; color: #16283C; }
.nb-month { background: #fff; border: 1px solid #D6CCB6; border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: 13px; color: #16283C; text-decoration: none; }
.nb-month:hover { border-color: #b8ae9a; background: #FBF7EC; }
.nb-month .n { color: #8A93A0; }
/* newsletter */
.nb-news { background: #16283C; color: #F0EAD9; text-align: center; padding: 56px 48px; }
.nb-news h2 { font-family: var(--serif); font-weight: 800; font-size: 30px; margin: 0 0 10px; }
.nb-news p.sub { font-size: 15px; opacity: .85; margin: 0 0 22px; }
.nb-news form { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.nb-news input { width: 280px; max-width: 80vw; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 12px 18px; font: inherit; font-size: 14px; color: #F0EAD9; }
.nb-news input::placeholder { color: #9FB0C2; }
.nb-news button { background: #E8623D; color: #fff; border: 0; border-radius: 999px; font: inherit; font-weight: 800; font-size: 14px; padding: 12px 26px; cursor: pointer; }
.nb-news button:hover { background: #C74B2A; }
.nb-news .legal { font-size: 12px; opacity: .6; margin: 18px 0 0; }
.nb-news .legal a { color: #5BC4D4; }
/* responsive */
@media (max-width: 1000px) {
  .nb-hero__grid { grid-template-columns: 1fr; }
  .nb-grid { grid-template-columns: repeat(2, 1fr); }
  .nb-paths__grid { grid-template-columns: 1fr; }
  .nb-mr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nb-hero, .nb-fresh, .nb-mostread, .nb-preorder, .nb-archive, .nb-news { padding-left: 22px; padding-right: 22px; }
  .nb-grid { grid-template-columns: 1fr; }
  .nb-mr-grid { grid-template-columns: 1fr; }
  .nb-search { max-width: none; }
  .nb-preorder__inner { flex-direction: column; text-align: center; }
  .nb-preorder__blurb { margin: 0 auto; }
}
