/* ==========================================================================
   REFLECTIONS (/blog/): Suroshri's personal stories and poems.
   Laid out like a journal: a left column (note about Reflections + archive by
   year and month) and the post itself on the right, reading like the Our Story
   page: Cormorant Garamond headings, Plus Jakarta Sans text, no cards.
   The first block is shared with the Page not found page (404.html).
   ========================================================================== */

:root {
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-badge: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-nav: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --common-font-montserrat: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --common-font-inter: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --common-font-spectral: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --blog-navy: #1B2857;
  --blog-ochre: #C58F38;
  --blog-grey: #DFE2E8;
  --blog-grey-soft: #F4F5F8;
}

/* ---------- Shared with 404.html ---------- */
.blog-main { padding: 5rem 0; }
.blog-main .container { max-width: 860px; }
body .subheading-gold { font-family: var(--font-sans) !important; font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: 1.3px !important; color: var(--blog-ochre) !important; }
body .blog-main h1 { font-family: var(--font-heading) !important; font-size: 46px !important; font-weight: 600 !important; line-height: 1.15 !important; letter-spacing: -0.5px !important; color: #000000 !important; margin-bottom: 1rem; }
body .blog-main p { font-family: var(--font-sans) !important; font-size: 14px !important; line-height: 1.8 !important; color: #333333 !important; }
.blog-main .card:hover { transform: none; }

/* Navy outline pill, 12px like every button on the site */
.blog-pill {
  display: inline-block; padding: 14px 30px; border-radius: 50px;
  font-family: var(--font-sans); font-size: 12px !important; font-weight: 600; letter-spacing: 1.2px; line-height: 1;
  text-decoration: none; text-transform: uppercase; transition: background-color .2s, color .2s;
}
.blog-pill.outline { border: 1px solid var(--blog-navy); color: var(--blog-navy); background: transparent; }
.blog-pill.outline:hover { background: var(--blog-navy); color: #FFFFFF; }

/* ---------- Reflections layout ---------- */
.refl-main { background: #FFFFFF; padding: 70px 0 80px; }
/* The left panel lines up with the logo (24px from the edge) and the post fills the rest of the
   page up to 24px from the right edge, in line with Login (her choice, 26 Nov 2026). */
.refl-grid {
  padding: 0 24px;
  display: grid; grid-template-columns: 264px minmax(0, 1fr); column-gap: 56px; row-gap: 40px;
  grid-template-areas: "photo posts" "about posts" "archive posts"; grid-template-rows: auto auto 1fr; align-items: start;
}

/* Left bar, like jonnajintonsweden.com/blog (her choice, 27 Nov 2026): separate white boxes outlined by a
   thin grey line, 15px inside, 40px apart; square corners. Each box title is small capitals with a short
   grey bar under it. */
.refl-box { background: #FFFFFF; border: 1px solid #F1F1F1; padding: 15px; }
.refl-photo-box { grid-area: photo; }
.refl-about { grid-area: about; }
.refl-archive { grid-area: archive; }
.refl-box-title { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.7px; text-transform: uppercase; color: #0A0A0A; margin: 0; line-height: 1.3; }
.refl-box-bar { width: 30px; height: 3px; background: #D4D3D3; margin: 9px 0 14px; }
/* Her photo (the 2nd photo of her Instagram post of 2 May 2025, "A lot is unfolding on my personal front…"). */
.refl-photo { display: block; max-width: 360px; margin: 0 auto; }
.refl-photo img { display: block; width: 100%; height: auto; }
body .refl-about .refl-note { font-family: var(--font-sans); font-size: 14px; line-height: 1.8; color: #333333; margin: 0; }
body .refl-about .refl-note + .refl-note { margin-top: 10px; }

.refl-year summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 24px; font-weight: 600; color: var(--blog-navy); padding: 4px 0;
}
.refl-year summary::-webkit-details-marker { display: none; }
.refl-year summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--blog-ochre); border-bottom: 1.5px solid var(--blog-ochre); transform: rotate(-45deg); transition: transform .2s; }
.refl-year[open] summary::before { transform: rotate(45deg); }
.refl-year ul { list-style: none; margin: 4px 0 10px; padding: 0; }
.refl-year li { font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: #6B7280; margin: 0 0 10px;
  display: grid; grid-template-columns: 66px minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
/* Beside each month, on its right, the title of each of its posts (her choice, 26 Nov 2026) */
.refl-year li a.refl-arch-post { grid-column: 2; font-size: 12px; line-height: 1.5; font-weight: 400; color: #4B5563; margin: 0 0 4px; }
.refl-year li a.refl-arch-post:hover { color: var(--blog-ochre); }
.refl-year li a.refl-arch-post .nowrap { white-space: nowrap; }
.refl-year li a { color: var(--blog-navy); text-decoration: none; font-weight: 500; }
.refl-year li a:hover, .refl-year li a.here { color: var(--blog-ochre); }

/* Right: the post, read like the Our Story page */
.refl-posts { grid-area: posts; min-width: 0; }
.refl-post + .refl-post { margin-top: 72px; }
.refl-post .subheading-gold { display: inline-block; margin-bottom: 10px; }
.refl-title { font-family: var(--font-heading) !important; font-size: 40px !important; font-weight: 600 !important; line-height: 1.2 !important; color: var(--blog-navy) !important; margin: 0 0 1.4rem !important; }
.refl-title a { color: inherit; text-decoration: none; }
.refl-post p { font-family: var(--font-sans); font-size: 15px; line-height: 1.85; color: #333333; margin: 0 0 1.1rem; }
.refl-post strong { color: var(--blog-navy); }

/* Photos: centred, as in the newsletter; two side by side for a pair */
.post-photo { display: block; width: 100%; max-width: 420px; height: auto; margin: 0.6rem auto 1.6rem; }
/* Pairs are all the Diwali sweets size (her choice, 26 Nov 2026): each photo close to a single photo's size */
.post-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2%; max-width: 760px; margin: 0.6rem auto 1.6rem; }
.post-pair img { display: block; width: 100%; height: auto; }
.post-line.hero-line { margin: 1.8rem auto 1.6rem; width: 290px; }

/* Poems (her choice, 26 Nov 2026): the poem written on its photo, on the right side, right-aligned,
   in the Music page lettering (Cormorant Garamond italic, 19.3px / 32px), white on a darkened strip so
   the rest of the photo (the moon) stays clear. Poems are signed "— SP", on the photo under the poem. */
.poem-on-photo { position: relative; overflow: hidden; margin: 0 0 1.6rem; display: flex; justify-content: flex-end; }
.poem-on-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.poem-on-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,30,0) 0%, rgba(10,14,30,0.1) 55%, rgba(10,14,30,0.6) 68%, rgba(10,14,30,0.75) 100%); }
.poem-on-photo .poem { position: relative; z-index: 1; width: max-content; padding: 64px 32px 64px 0; text-align: right; color: #FFFFFF; text-shadow: 0 1px 8px rgba(0,0,0,0.55); }
.poem { font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: 19.3px; line-height: 32px; white-space: pre-line; margin: 0; }
/* Sign-off "— SP" (her choice, 26 Nov 2026): a thin 1px dash, 40px long; 104px of space above it;
   SP as a small monogram in Cormorant Light (300): a smaller S (70%) beside the top half of the P,
   moved in close to the P's stem. */
.poem-on-photo .poem-sign { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 104px; font-style: normal; font-size: 28px; line-height: 1; letter-spacing: 0; }
.poem-sign .sp-mono { display: inline-block; font-family: 'Cormorant', 'Cormorant Garamond', serif; font-weight: 300; line-height: 1; }
.poem-sign .sp-mono .s, .poem-sign .sp-mono .p { display: inline-block; }
.poem-sign .sp-mono .s { position: relative; top: -0.12em; font-size: 0.7em; margin-right: calc(-0.06em - 1.93px); }
.poem-sign .sign-dash { display: inline-block; width: 40px; height: 1px; background: currentColor; }

/* Signature at the end of every story: "Suroshri", no dash, in the story's own lettering and colour (her choice, 26 Nov 2026) */
.refl-post .refl-sign { font-family: var(--font-sans); font-size: 15px; line-height: 1.85; font-weight: 400; color: #333333; margin: 1.8rem 0 0; }


/* One gentle invitation at the bottom, on the brand grey */
.refl-cta { background: var(--blog-grey); padding: 56px 20px; text-align: center; }
.refl-cta-line { font-family: var(--font-heading); font-size: 28px; font-weight: 600; color: var(--blog-navy); margin: 0 0 18px; }

/* ---------- Newsletter: only Kit's messages styled here ---------- */
.newsletter-section .formkit-alert { list-style: none; margin: 0 0 12px; padding: 0; color: #B42318; font-size: 14px; }
.newsletter-section .formkit-alert:empty { display: none; }
.newsletter-section .formkit-alert-success { color: #0C905C; }

/* ---------- Tablets and phones: note, then the post, then the archive ---------- */
@media (max-width: 900px) {
  .refl-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "about" "posts" "archive"; grid-template-rows: auto; row-gap: 24px; }
  /* Phones and tablets: no room beside the moon, so the poem runs across the darkened photo */
  .poem-on-photo .poem { width: 100%; padding: 40px 24px; }
  .poem-on-photo::after { background: rgba(10,14,30,0.58); }
  .poem-on-photo .poem-sign { margin-top: 80px; font-size: 24px; }
}
@media (max-width: 768px) {
  .blog-main { padding: 3.5rem 0; }
  body .blog-main h1 { font-size: 36px !important; }
  .refl-main { padding: 40px 0 56px; }
  .refl-grid { padding: 0 20px; }
  .refl-name a { font-size: 36px; }
  .refl-title { font-size: 30px !important; }
  .poem { font-size: 18px; line-height: 28px; }
  .refl-cta-line { font-size: 24px; }
}
