/* Dailybetes journal — the homepage's warm canvas, evergreen type and mint accents. */
:root { --canvas: #FAF8F3; --evergreen: #243D35; --teal: #287B69; --sage: #DCEEE2; --lavender: #EEE6F7; --muted: #53665B; --line: #DDE4DC; --white: #FFFFFF; }
* { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
body { margin: 0; background: var(--canvas); color: var(--evergreen); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--sage); }
a { color: var(--teal); text-underline-offset: 4px; }
a:hover { color: var(--evergreen); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; border-radius: 5px; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
main:focus { outline: none; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -70px; padding: 14px 20px; background: var(--evergreen); color: var(--white); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 243, .96); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 22px; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--evergreen); text-decoration: none; font-size: 24px; font-weight: 750; letter-spacing: -.9px; white-space: nowrap; }
.brand img { width: 38px; height: 38px; }
.brand-dot { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a[aria-current="page"] { color: var(--evergreen); }
.nav-links .nav-download, .button { min-height: 48px; padding: 13px 24px; color: var(--white); background: var(--evergreen); border: 1px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; font-weight: 650; gap: 12px; }
.nav-links .nav-download:hover, .button:hover { color: var(--white); background: var(--teal); }
.button.secondary { border-color: var(--line); background: transparent; color: var(--evergreen); }
.button.secondary:hover { border-color: var(--teal); }
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--teal); }
.journal-intro { padding-block: 76px 52px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; }
h1, h2, h3, p, figure { margin: 0; }
.journal-intro h1 { margin-top: 20px; font-size: clamp(46px, 5.7vw, 72px); line-height: 1.04; letter-spacing: -.06em; font-weight: 700; }
.journal-intro h1 span { display: block; color: var(--teal); }
.journal-intro p { max-width: 390px; color: var(--muted); font-size: 18px; line-height: 1.7; padding-bottom: 3px; }
.featured-story { display: grid; grid-template-columns: 1fr 1.1fr; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: var(--white); }
.story-art { position: relative; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, #E5F0E7, #F3EDF5); padding: 28px 32px 20px; }
.story-art > img { width: 100%; display: block; aspect-ratio: 3 / 2; object-fit: contain; }
.story-art figcaption { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.5; }
.story-art .art-label { align-self: flex-start; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--teal); }
.story-copy { padding: 42px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; background: var(--sage); padding: 7px 12px; font-size: 12px; font-weight: 650; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.meta .separator { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.story-copy .meta { margin: 20px 0 15px; }
.story-copy h2 { font-size: clamp(28px, 3.1vw, 38px); line-height: 1.16; letter-spacing: -.045em; font-weight: 700; }
.story-copy h2 a { color: inherit; text-decoration: none; }
.story-copy h2 a:hover { color: var(--teal); }
.story-copy p { margin: 18px 0 24px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 650; display: inline-flex; gap: 16px; align-items: center; min-height: 44px; }
.journal-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin: 48px 0 76px; border-top: 1px solid var(--line); padding-top: 28px; }
.journal-principles h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 10px; }
.journal-principles p { font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 490px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); padding-block: 30px 0; }
.breadcrumb a { min-height: 32px; display: inline-flex; align-items: center; }
.article-head { max-width: 980px; margin: 42px auto 38px; }
.article-head h1 { margin: 20px 0; font-size: clamp(36px, 4.7vw, 60px); line-height: 1.09; letter-spacing: -.055em; font-weight: 700; text-wrap: balance; }
.article-head .standfirst { max-width: 800px; font-size: 19px; line-height: 1.7; color: var(--muted); margin-bottom: 24px; }
.article-cover { max-width: 980px; margin: 0 auto 52px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; padding: 32px 42px; border-radius: 28px; background: linear-gradient(125deg, var(--sage), #F0EBF5); }
.article-cover blockquote { margin: 0; font-size: clamp(25px, 3vw, 37px); line-height: 1.3; letter-spacing: -.035em; font-weight: 650; }
.article-cover blockquote cite { display: block; margin-top: 20px; font-size: 13px; letter-spacing: 0; font-weight: 500; font-style: normal; color: var(--muted); }
.article-cover figure img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.article-cover figcaption { margin-top: 8px; font-size: 11px; text-align: center; color: var(--muted); line-height: 1.5; }
.reading-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 58px; justify-content: center; align-items: start; margin-bottom: 72px; }
.article-sidebar { position: sticky; top: 112px; border-top: 1px solid var(--line); padding-top: 18px; }
.article-sidebar > p { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; color: var(--teal); }
.article-sidebar nav { display: grid; gap: 4px; }
.article-sidebar nav a { min-height: 38px; padding-block: 7px; font-size: 13px; line-height: 1.6; text-decoration: none; color: var(--muted); }
.article-sidebar nav a:hover { color: var(--teal); }
.article-body { min-width: 0; }
.article-body > p, .article-body section > p { font-size: 17px; line-height: 1.9; margin-bottom: 22px; }
.article-body .opening { font-size: 20px; line-height: 1.75; }
.article-body h2 { font-size: 29px; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; margin: 42px 0 18px; scroll-margin-top: 106px; }
.article-body .inline-source { font-size: 11px; vertical-align: super; margin-left: 2px; }
.medical-note { padding: 22px 24px; border-left: 3px solid var(--teal); background: #EEF4EE; margin: 34px 0; }
.medical-note h2 { font-size: 17px; margin: 0 0 8px; letter-spacing: -.01em; }
.medical-note p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.author-card { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding-block: 28px; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-monogram { width: 54px; height: 54px; border-radius: 50%; background: var(--sage); color: var(--evergreen); display: grid; place-items: center; font-size: 23px; font-weight: 650; }
.author-card h2 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.01em; }
.author-card p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.references { margin-top: 34px; }
.references h2 { font-size: 22px; margin-top: 0; }
.references ol { padding-left: 20px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.references li { padding-left: 6px; margin-bottom: 10px; scroll-margin-top: 108px; }
.article-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; }
.share-button { display: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; min-height: 44px; padding: 10px 16px; color: var(--evergreen); font-size: 13px; }
.share-button.ready { display: inline-flex; }
.share-status { display: block; width: 100%; font-size: 12px; color: var(--muted); min-height: 18px; }
.blog-cta { background: var(--evergreen); border-radius: 28px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 64px; color: var(--white); }
.blog-cta h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.04em; font-weight: 650; margin-bottom: 12px; }
.blog-cta p { color: #DCEEE2; font-size: 14px; line-height: 1.8; max-width: 610px; }
.blog-cta .button { background: var(--sage); color: var(--evergreen); white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-top p { color: var(--muted); max-width: 370px; font-size: 13px; line-height: 1.8; margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; max-width: 460px; }
.footer-links a { font-size: 13px; min-height: 36px; display: inline-flex; align-items: center; }
.footer-bottom { padding-top: 30px; margin-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
@media (max-width: 1050px) { .reading-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 34px; } .story-copy { padding: 32px; } .story-art { padding-inline: 18px; } .nav-links { gap: 20px; } }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); } .site-nav { min-height: 72px; gap: 12px; } .brand { font-size: 21px; gap: 8px; } .brand img { width: 34px; height: 34px; }
  .nav-links { gap: 16px; } .nav-links .nav-secondary { display: none; } .nav-links .nav-download { min-height: 42px; padding: 10px 15px; font-size: 12px; }
  .journal-intro { grid-template-columns: 1fr; gap: 24px; padding-block: 50px 34px; } .journal-intro h1 { font-size: 54px; } .journal-intro p { max-width: 560px; font-size: 16px; }
  .featured-story { grid-template-columns: 1fr; } .story-art { padding: 20px; } .story-art > img { max-width: 540px; margin-inline: auto; aspect-ratio: 2 / 1; } .story-copy { padding: 30px; }
  .journal-principles { gap: 32px; margin-bottom: 52px; } .article-head { margin-top: 30px; } .article-cover { padding: 26px; gap: 18px; }
  .reading-layout { grid-template-columns: 1fr; gap: 26px; } .article-sidebar { position: static; padding-bottom: 18px; border-bottom: 1px solid var(--line); } .article-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px 20px; } .article-sidebar nav a { min-height: 40px; }
  .blog-cta { padding: 30px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 36px); } .brand { font-size: 19px; letter-spacing: -.6px; } .brand img { width: 30px; height: 30px; }
  .nav-links { gap: 12px; } .nav-links a { font-size: 12px; } .nav-links .nav-download { display: none; } .site-nav { min-height: 66px; }
  .journal-intro h1 { font-size: clamp(39px, 11.5vw, 55px); } .featured-story { border-radius: 23px; } .story-copy { padding: 24px; } .story-copy h2 { font-size: 29px; }
  .journal-principles { grid-template-columns: 1fr; gap: 28px; } .story-copy .meta { gap: 6px 10px; font-size: 12px; }
  .article-head h1 { font-size: clamp(34px, 9.5vw, 46px); } .article-head .standfirst { font-size: 17px; } .article-cover { grid-template-columns: 1fr; gap: 15px; padding: 26px 22px; border-radius: 22px; margin-bottom: 30px; } .article-cover figure { max-width: 330px; margin-inline: auto; } .article-cover blockquote { font-size: 28px; } .article-cover blockquote cite { margin-top: 12px; }
  .article-body > p, .article-body section > p { font-size: 16px; line-height: 1.9; } .article-body .opening { font-size: 19px; } .article-body h2 { font-size: 26px; } .article-sidebar nav { gap: 2px 14px; } .medical-note { padding: 20px; }
  .blog-cta { padding: 28px 24px; border-radius: 22px; } .blog-cta h2 { font-size: 27px; } .blog-cta .button { width: 100%; }
  .footer-top { flex-direction: column; } .footer-links { justify-content: flex-start; gap: 8px 22px; } .site-footer .brand { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Supplied founder photography: preserve the full frame and original proportions. */
.story-photo { padding: 0; background: #EEE9DF; }
.story-photo > img { width: 100%; max-width: none; height: auto; aspect-ratio: auto; object-fit: contain; margin: 0; }
.story-photo figcaption { padding: 14px 20px; font-size: 12px; }
.story-author { display: flex; align-items: center; gap: 14px; margin: 20px 0 18px; }
.story-author .meta { margin: 0; }
.story-author .author-photo { width: 48px; height: auto; display: block; flex: 0 0 48px; border-radius: 10px; }
.article-cover-photo { display: block; padding: 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.article-cover-photo > img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.article-cover-photo figcaption { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 0; padding: 24px 28px; text-align: left; }
.article-cover-photo blockquote { font-size: clamp(22px, 2.5vw, 28px); }
.article-cover-photo blockquote cite { margin-top: 10px; }
.article-cover-photo figcaption > span { font-size: 11px; line-height: 1.6; color: var(--muted); }
.author-card { grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 24px; }
.author-card > .author-photo { display: block; width: 112px; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 16px; }
@media (max-width: 800px) {
  .story-photo { padding: 0; }
  .story-photo > img { max-width: none; aspect-ratio: auto; }
  .article-cover-photo { padding: 0; }
}
@media (max-width: 520px) {
  .article-cover-photo { padding: 0; }
  .article-cover-photo figcaption { align-items: flex-start; flex-direction: column; gap: 12px; padding: 22px; }
  .author-card { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
  .author-card > .author-photo { width: 80px; border-radius: 12px; }
}
