/* Owns the public Blog's editorial layout and responsive reading surfaces.
 * Extends the existing website tokens; does not style the Flutter app or help.
 * All content remains visible without script, animation, or remote fonts. */
.journal-site { --journal-green: #25444c; --journal-muted: #685c50; }
.journal-site .shell { width: min(1160px, calc(100% - 64px)); }
.journal-site .eyebrow { color: var(--rust); font: 600 .8rem/1.7 var(--sans); letter-spacing: .16em; }
.journal-site .eyebrow span { display: block; margin-top: 6px; letter-spacing: .08em; color: var(--journal-muted); font-weight: 400; }
.journal-site a:focus-visible { outline: 3px solid var(--rust); outline-offset: 5px; border-radius: 3px; }
.journal-site .locale-switch { white-space: nowrap; }
/* Longer English titles and labels wrap by word while keeping the same layout. */
html[lang="en"] .journal-intro h1 { font-size: clamp(2.7rem, 4.4vw, 4rem); line-height: 1.2; letter-spacing: -.04em; }
html[lang="en"] .article-hero h1 { font-size: clamp(2rem, 3.5vw, 3.1rem); }
html[lang="en"] .journal-hero { grid-template-columns: 1.1fr .9fr; }
html[lang="en"] .journal-site .brand > span { white-space: nowrap; }
html[lang="en"] .journal-site .desktop-nav { gap: 20px; }
html[lang="en"] .journal-site .footer-links { flex-wrap: wrap; }
html[lang="en"] .story-body { line-height: 1.85; }
.journal-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-block: 88px 100px; }
.journal-intro h1 { font-size: clamp(3.1rem, 5.3vw, 5rem); line-height: 1.25; letter-spacing: -.04em; margin: 30px 0 25px; }
.journal-lead { color: var(--journal-muted); font-size: 1rem; line-height: 2; }
.ink-link { display: inline-block; color: var(--journal-green); border-bottom: 1px solid currentColor; padding-block: 5px; font-weight: 600; font-size: .95rem; }
.journal-intro .ink-link { margin-top: 15px; }
.journal-hero-art { min-width: 0; position: relative; }
.cover-art { position: relative; overflow: hidden; isolation: isolate; }
.mobile-art { height: 340px; background: #ede3d2; }
.art-orbit { position: absolute; width: 290px; height: 290px; border: 1px solid #b7b6a28a; border-radius: 50%; left: 12%; top: 9%; z-index: -1; }
.mobile-art::after { content: ''; position: absolute; width: 130%; height: 100px; background: #c7cebb80; bottom: -35px; left: -15%; transform: rotate(-10deg); z-index: -1; }
.mobile-art img { position: absolute; height: 310px; width: auto; filter: drop-shadow(0 12px 12px #4f3b2420); }
.phone-back { left: 17%; top: 40px; transform: rotate(-10deg); }
.phone-front { left: 45%; top: 18px; transform: rotate(8deg); }
.art-word { position: absolute; left: 22px; bottom: 16px; color: var(--journal-green); font-family: var(--serif); font-size: .95rem; letter-spacing: .08em; }
.journal-hero-art .mobile-art { height: 530px; border-radius: 48% 48% 8px 8px; }
.journal-hero-art .mobile-art img { height: 402px; }
.journal-hero-art .phone-back { left: 9%; top: 90px; }
.journal-hero-art .phone-front { left: 42%; top: 47px; }
.journal-hero-art .art-orbit { width: 370px; height: 370px; left: 6%; top: 11%; }
.journal-hero-art .art-word { left: 32px; bottom: 28px; }
.hero-margin-note { display: block; text-align: right; font-size: .875rem; color: var(--journal-muted); margin-top: 18px; }
.desktop-art { height: 340px; display: flex; align-items: center; padding: 35px; background: #e2e9e3; }
.desktop-art img { width: 100%; height: auto; border: 1px solid #b7bcb4; border-radius: 7px; box-shadow: 0 14px 30px #243e3d20; }
.desktop-art .art-word { bottom: 15px; }
.migration-art { background: #e9ddcc; }
.migration-art img { width: 100%; height: 100%; object-fit: contain; }
.journal-stories { padding-bottom: 80px; }
.stories-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 34px; margin-bottom: 32px; }
.stories-heading h2, .related-stories > h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin-bottom: 0; }
.stories-heading > p { margin: 0; font-size: .95rem; color: var(--journal-muted); }
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.post-card { min-width: 0; }
.post-card > a { display: block; height: 100%; border: 1px solid var(--line); background: #fff9ed80; transition: border-color .2s; }
.post-card > a:hover { border-color: var(--rust); }
.post-card-copy { padding: 28px 30px 32px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 17px; align-items: center; color: var(--journal-muted); font-size: .875rem; line-height: 1.7; }
.post-meta > span:first-child { color: var(--rust); font-weight: 600; }
.post-card h2, .post-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.5; margin: 15px 0 12px; }
.post-card-copy > p { font-size: 1rem; line-height: 1.9; color: var(--journal-muted); }
.read-story { display: inline-block; color: var(--journal-green); font-size: .875rem; font-weight: 600; padding-top: 13px; }
.read-story span { padding-inline: 5px; }
.guide-feature { margin-top: 35px; }
.guide-feature > a { display: grid; grid-template-columns: 1fr 1fr; background: var(--journal-green); color: var(--ivory); }
.guide-copy { padding: 48px; align-self: center; }
.post-tag { font-size: .875rem; letter-spacing: .12em; color: #edc7a2; }
.guide-copy h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.45; margin: 18px 0; }
.guide-copy p { font-size: 1rem; line-height: 1.9; color: #e8e4d8; }
.guide-copy .read-story { color: #edc7a2; }
.guide-feature .migration-art { min-height: 360px; }
.journal-signoff { text-align: center; padding: 10px 0 90px; }
.journal-signoff > span { color: var(--rust); font: 5rem/.9 var(--serif); }
.journal-signoff p { font: 1.8rem/1.7 var(--serif); color: var(--journal-green); }
.journal-site .journal-footer { padding-top: 45px; }
.journal-site .footer-links a { font-size: .875rem; }
.article-heading { padding-block: 38px 54px; border-bottom: 1px solid var(--line); }
.back-to-blog { display: inline-block; color: var(--journal-muted); font-size: .875rem; margin-bottom: 34px; }
.back-to-blog:hover { color: var(--rust); }
.article-hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 48px; }
.article-hero h1 { font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.35; letter-spacing: -.025em; margin: 23px 0 14px; }
.article-subtitle { font: 1.5rem/1.65 var(--serif); color: var(--rust); }
.article-deck { font-size: 1rem; line-height: 1.95; color: var(--journal-muted); }
.byline { font-size: .875rem; color: var(--journal-muted); margin: 24px 0 0; }
.article-hero .cover-art { border-radius: 3px; }
.article-hero .migration-art { height: 320px; }
.article-hero .mobile-art { height: 350px; }
.article-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 65px; align-items: start; padding-block: 56px 80px; }
.article-sidebar { position: sticky; top: 110px; }
.article-sidebar nav > p { color: var(--rust); font-size: .875rem; font-weight: 600; margin-bottom: 18px; }
.article-sidebar ol { padding: 0; margin: 0; list-style: none; border-left: 1px solid var(--line); }
.article-sidebar li a { display: block; padding: 9px 0 9px 15px; font-size: .9rem; line-height: 1.7; color: var(--journal-muted); }
.article-sidebar li a:hover { color: var(--rust); }
.sidebar-download { display: inline-block; margin-top: 25px; border-bottom: 1px solid var(--journal-green); font-size: .9rem; color: var(--journal-green); padding-bottom: 5px; }
.story-body { min-width: 0; font-size: 1.0625rem; line-height: 2; color: #3c332b; overflow-wrap: break-word; }
.story-body p { margin-bottom: 23px; }
.story-body .opening { font: 1.4rem/1.9 var(--serif); color: var(--journal-green); }
.story-body h2 { margin: 65px 0 23px; color: var(--journal-green); font-size: 1.8rem; line-height: 1.5; scroll-margin-top: 110px; }
.story-body h3 { margin: 30px 0 15px; font-size: 1.3rem; color: var(--journal-green); }
.story-body strong { font-weight: 650; color: #3a3027; }
.story-body ol { padding-left: 1.5em; }
.story-body li { padding-left: .3em; margin-bottom: 15px; }
.story-figure { margin: 36px 0 42px; }
.story-figure img { width: 100%; height: auto; background: #faf5ed; border: 1px solid #dcd3c5; }
.story-figure a { display: block; }
.story-figure figcaption { color: var(--journal-muted); text-align: center; font-size: .875rem; line-height: 1.8; padding-top: 12px; }
.story-figure figcaption span { white-space: nowrap; color: var(--rust); padding-left: 5px; }
.phone-figure { max-width: 340px; margin-inline: auto; }
.phone-figure img { border: 0; }
.editor-note { background: #eee6d6; border-left: 3px solid #ab694b; padding: 20px 25px; margin: 30px 0; font-size: 1rem; line-height: 1.95; }
.closing-line { color: var(--journal-green); font-family: var(--serif); font-size: 1.35rem; padding-block: 25px; }
.availability { margin-top: 38px; border-top: 1px solid var(--line); padding-top: 28px; }
.story-body .availability h2 { font-size: 1.25rem; margin: 0 0 15px; }
.availability > p { font-size: .95rem; color: var(--journal-muted); }
.journal-button { display: inline-block; color: var(--ivory); background: var(--journal-green); padding: 10px 25px; border-radius: 3px; font-size: 1rem; font-weight: 600; }
.journal-button:hover { background: #18343b; }
.migration-reminder { margin-top: 28px; padding: 22px; background: #ede3d2; font-size: 1rem; }
.migration-reminder span { display: block; color: var(--journal-muted); }
.migration-reminder a { color: var(--rust); border-bottom: 1px solid currentColor; }
.related-stories { border-top: 1px solid var(--line); padding-block: 45px 80px; }
.related-stories > h2 { margin-bottom: 30px; }
.related-stories > .ink-link { margin-top: 35px; }
.compact-card .cover-art { height: 245px; }
.compact-card .mobile-art img { height: 230px; }
.compact-card .phone-back { top: 25px; left: 22%; }
.compact-card .phone-front { top: 12px; left: 47%; }
.compact-card .post-card-copy { padding: 23px 27px; }
/* Keep added navigation readable in the existing homepage's intermediate width. */
@media (min-width: 801px) and (max-width: 1120px) { .journal-site .desktop-nav { gap: 18px; } }
@media (max-width: 1000px) {
  .journal-hero { gap: 30px; }
  .journal-hero-art .mobile-art { height: 450px; }
  .journal-hero-art .mobile-art img { height: 330px; }
  .article-hero { gap: 28px; }
  .article-layout { gap: 35px; grid-template-columns: 180px minmax(0, 1fr); }
  .guide-copy { padding: 32px; }
}
@media (max-width: 800px) {
  html[lang="en"] .journal-hero { grid-template-columns: 1fr; }
  html[lang="en"] .journal-intro h1 { font-size: clamp(2.3rem, 9vw, 3.6rem); }
  html[lang="en"] .article-hero h1 { font-size: 2rem; }
  html[lang="en"] .article-sidebar ol { grid-template-columns: 1fr; }
  .journal-site .shell { width: calc(100% - 40px); }
  .journal-hero { grid-template-columns: 1fr; padding-block: 45px 55px; gap: 35px; }
  .journal-intro h1 { font-size: clamp(2.7rem, 9vw, 4rem); margin-block: 20px; }
  .journal-hero-art { max-width: 470px; width: 100%; margin-inline: auto; }
  .journal-hero-art .mobile-art { height: 440px; }
  .journal-hero-art .mobile-art img { height: 340px; }
  .journal-hero-art .phone-back { top: 70px; left: 10%; }
  .journal-hero-art .phone-front { top: 35px; left: 43%; }
  .post-grid { grid-template-columns: 1fr; gap: 26px; }
  .stories-heading { display: block; }
  .stories-heading > p { margin-top: 16px; }
  .post-card-copy { padding: 24px; }
  .guide-feature > a { grid-template-columns: 1fr; }
  .guide-feature .migration-art { min-height: 0; height: 265px; }
  .guide-copy { padding: 30px; }
  .article-heading { padding-block: 28px 35px; }
  .back-to-blog { margin-bottom: 26px; }
  .article-hero { grid-template-columns: 1fr; gap: 30px; }
  .article-hero h1 { font-size: 2.2rem; }
  .article-hero .mobile-art { max-width: 440px; width: 100%; margin-inline: auto; }
  .article-hero .migration-art { height: 250px; }
  .article-layout { grid-template-columns: 1fr; gap: 35px; padding-block: 30px 45px; }
  .article-sidebar { position: static; padding: 20px; background: #eee6d680; }
  .article-sidebar ol { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
  .article-sidebar .sidebar-download { display: none; }
  .story-body h2 { font-size: 1.55rem; margin-top: 45px; }
  .story-body { font-size: 1rem; line-height: 2; }
  .story-body .opening { font-size: 1.25rem; }
  .desktop-art { padding: 22px; height: 280px; }
  .phone-figure { max-width: 300px; }
  .editor-note { padding: 18px; }
  .journal-signoff { padding-bottom: 60px; }
  .journal-signoff p { font-size: 1.5rem; }
}
@media (max-width: 380px) {
  .journal-hero-art .mobile-art { height: 380px; }
  .journal-hero-art .mobile-art img { height: 290px; }
  .journal-hero-art .art-orbit { width: 280px; height: 280px; }
  .article-sidebar ol { grid-template-columns: 1fr; }
  .article-hero h1 { font-size: 1.95rem; }
}
