/* Dementia Daily Diary website. Colors and type match the app
   (dementia-daily-diary/src/theme). Every color is a token here — pages never use a hex. */
:root {
  --pink: #F40880;          /* brand pink: fills, never small text */
  --pink-text: #C2006A;     /* pink for links and small text on light backgrounds */
  --pink-tint: #FDE3F0;
  --text: #7D4060;          /* the app's purple text */
  --muted: #8E5575;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --border: rgba(125, 64, 96, 0.24);
  --tint-dailies: #FBF5F8;
  --tint-calendar: #FEFBEA;
  --tint-family: #F2FAFB;
  --tint-diary: #F6F2F6;
  --tint-plain: #FAFAFA;    /* Dashboard's screen background */
  /* Log-type dots, same as the app (never used for text) */
  --episode: #D99A00;
  --incident: #E0457A;
  --mood: #2F80ED;
  --plum: #6A456F;          /* footer, from the original site */
  --aqua: #31D3E8;          /* buttons: a fill, text on it is always dark */
  --on-aqua: #2E1A31;
  --aqua-tint: #E3F9FC;
  --lavender: #F3EAF7;
  --phone-bezel: #2B1A24;
  --on-pink: #FFFFFF;
  --plum-deep: #563659;     /* header, a step darker than the hero */
  --on-plum-accent: #FFB8DC; /* small accents (handwriting, swoosh) on plum */
  /* Elevation: soft plum shadows, like the app's cards */
  --lift-1: 0 2px 6px rgba(74, 38, 72, 0.12), 0 1px 2px rgba(74, 38, 72, 0.08);
  --lift-2: 0 8px 22px rgba(74, 38, 72, 0.16), 0 2px 6px rgba(74, 38, 72, 0.10);
  --radius: 22px;
  --wrap: 1080px;
  --font: 'Atkinson Hyperlegible Next', system-ui, -apple-system, sans-serif;
  --script: 'Borel', cursive;  /* handwriting: logo and short accents only, never body text */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; } /* class display rules must never override hidden */
a { color: var(--pink-text); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
.prose a { font-weight: 600; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; }
strong, b { font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.icon { width: 28px; height: 28px; flex: none; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--pink-text); outline-offset: 2px; }

/* Header: plum, like the footer (the hero below shares the color). */
.site-header { background: var(--plum); color: var(--on-pink); }
.header-row { padding-inline: clamp(16px, 3vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--script); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.brand:hover, .site-footer .brand:hover { text-decoration: none; }
.brand span { padding-top: 0.35em; } /* Borel sits high; nudge it level with the icon */
.brand img { display: block; }
.site-header { position: relative; z-index: 5; }
.main-nav { display: flex; gap: 20px; }
.main-nav a { color: var(--on-pink); text-decoration: none; font-weight: 600; }
.main-nav a:hover { color: var(--on-plum-accent); text-decoration: none; }

/* Phone menu: a white pill with the app's grid icon; opens a card of links like the app's list rows */
.mobile-menu { display: none; border: 0; padding: 0; }
.mobile-menu summary::after { content: none; }
.mobile-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--card); color: var(--plum); font-weight: 600; cursor: pointer; box-shadow: var(--lift-1); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary .icon { width: 22px; height: 22px; }
.mobile-menu .when-open, .mobile-menu[open] .when-closed { display: none; }
.mobile-menu[open] .when-open { display: inline-flex; }
.mobile-menu .when-closed { display: inline-flex; }
.menu-card { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); display: grid; background: var(--card); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(125, 64, 96, 0.25); overflow: hidden; }
.menu-card a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--border); }
.menu-card a:last-child { border-bottom: 0; }
.menu-card a span { flex: 1; }
.menu-card a .icon { color: var(--pink-text); width: 24px; height: 24px; }
.menu-card a .icon:last-child { color: var(--muted); width: 20px; height: 20px; }
.menu-card a:hover { background: var(--pink-tint); }

/* Sections */
section { padding: 64px 0; }
.tint-dailies { background: var(--tint-dailies); }
.tint-calendar { background: var(--tint-calendar); }
.tint-family { background: var(--tint-family); }
.tint-diary { background: var(--tint-diary); }
.tint-plain { background: var(--tint-plain); }
.eyebrow.script { font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0.02em; font-size: 1.35rem; line-height: 1.6; margin-bottom: 4px; }
.eyebrow { font-weight: 600; color: var(--pink-text); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; margin-bottom: 8px; }
.lead { font-size: 1.2rem; color: var(--muted); }

.hero { padding: 64px 0 56px; background: var(--plum); color: var(--on-pink); }
.hero .eyebrow.script { color: var(--on-plum-accent); }
.hero .lead { color: var(--on-pink); opacity: 0.92; }
.hero .subscribe { margin: 28px 0 8px; }
.hero .subscribe-title, .hero .fine-print, .hero .launch-line { text-align: left; color: var(--on-pink); }
.hero .fine-print, .hero .launch-line { opacity: 0.85; }
/* A soft hand-drawn underline under the key words */
.swoosh { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 50 2 120 2 198 7' fill='none' stroke='%23FFB8DC' stroke-width='3' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E") bottom / 100% 0.35em no-repeat; padding-bottom: 0.12em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }

/* Real app screenshots in a phone frame */
.phone { display: block; width: min(300px, 100%); height: auto; border: 9px solid var(--phone-bezel); border-radius: 46px; box-shadow: 0 24px 60px rgba(40, 16, 38, 0.30), 0 8px 20px rgba(40, 16, 38, 0.20); background: var(--phone-bezel); }
.phones { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phones .front { position: relative; z-index: 1; width: 270px; transform: translateX(40px); }
.phones .back { position: absolute; width: 240px; top: 48px; transform: translateX(-90px) rotate(-6deg); opacity: 0.95; }

/* The app's tab bar, as a way into each section */
.tabbar { display: flex; justify-content: space-around; gap: 8px; padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--border); }
.tabbar-band { border-bottom: 1px solid var(--border); } /* full-width line under the tab icons */
.tabbar a { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; min-width: 0; color: var(--text); text-decoration: none; font-weight: 400; font-size: 15px; }
.tabbar a:hover { color: var(--pink-text); text-decoration: none; }
.tabbar .icon { width: 32px; height: 32px; }

/* Feature sections: words on one side, the screen on the other */
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; }
.feature-grid.flip { grid-template-columns: 300px minmax(0, 1fr); }
.feature-grid.flip:has(> .card) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.feature-grid.flip > :first-child { order: 2; }
.feature-grid .phone { width: 300px; aspect-ratio: 600 / 1304; }
.tab-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 16px 6px 10px; border-radius: 999px; background: var(--pink); color: var(--on-pink); font-weight: 600; }
/* Chip color = that tab's color in the app's bottom nav (Dailies and Dashboard stay pink) */
.tab-label.tab-calendar { background: #7A6A00; }
.tab-label.tab-family { background: #00788A; }
.tab-label.tab-diary { background: var(--plum); } /* the app's brand plum */
.tab-label .icon { width: 24px; height: 24px; }
.soon-tag { margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--on-pink); color: var(--pink-text); font-size: 16px; }
.sub { margin-top: 28px; }
/* A big handwritten title, for names like Aidy */
.script-title { font-family: var(--script); font-weight: 400; color: var(--pink-text); font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1.5; margin: 4px 0 0; }
.script-title sup { font-family: var(--font); font-size: 0.3em; font-weight: 600; vertical-align: super; margin-left: 4px; }
.script-sub { font-size: 1.4rem; font-weight: 600; margin-bottom: 16px; }
.small-note { font-size: 16px; }

/* App chips (same look as the app's Chip) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--card); font-weight: 600; font-size: 16px; box-shadow: var(--lift-1); }
.chip .icon { width: 16px; height: 16px; }
.chip.selected { background: var(--pink-tint); border-color: var(--pink-text); color: var(--pink-text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot.episode { background: var(--episode); }
.dot.incident { background: var(--incident); }
.dot.mood { background: var(--mood); }

/* A row like the app's calendar prompt */
.app-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); color: var(--pink-text); margin-bottom: 12px; box-shadow: var(--lift-1); }
.app-row span { flex: 1; }

/* Diary mood faces */
.moods { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.moods span { display: grid; justify-items: center; gap: 4px; font-size: 16px; }
.moods .icon { width: 56px; height: 56px; padding: 12px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--card); box-shadow: var(--lift-1); }

.cta { text-align: center; }
.cta .stores { justify-content: center; }
.cta-icon { border-radius: 36px; margin-bottom: 20px; box-shadow: var(--lift-2); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.soon { display: inline-block; margin: 0; padding: 10px 18px; border-radius: var(--radius); background: var(--aqua-tint); border: 1.5px solid var(--aqua); color: var(--text); font-weight: 600; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: none;
  background: var(--aqua); color: var(--on-aqua); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; box-shadow: var(--lift-1);
  transition: box-shadow 0.15s, transform 0.15s;
}
.button:hover { filter: brightness(0.97); box-shadow: var(--lift-2); transform: translateY(-1px); text-decoration: none; }
.button.outline { background: transparent; color: var(--text); border: 1.5px solid var(--aqua); }

/* Feature cards */
.grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--lift-1); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p:last-child { margin-bottom: 0; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checks li::before { content: ''; position: absolute; left: 4px; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--pink-text); border-bottom: 2px solid var(--pink-text); transform: rotate(-45deg); }

.quote { font-size: 1.15rem; margin: 28px 0; padding: 20px 24px; border-radius: var(--radius); background: var(--pink-tint); border-left: 4px solid var(--pink); }

/* FAQ (Help page) */
details:not(.mobile-menu) { border-bottom: 1px solid var(--border); padding: 16px 0; }
details:not(.mobile-menu) summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details:not(.mobile-menu) summary::after { content: '+'; color: var(--pink-text); font-size: 1.4rem; line-height: 1; }
details[open]:not(.mobile-menu) summary::after { content: '−'; }
details p { margin: 12px 0 0; }

/* Forms (Formspree) */
form { display: grid; gap: 16px; }
label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 600; } /* inputs are full width, so they wrap below the label text */
.optional { font-weight: 400; color: var(--muted); }
input, textarea, select {
  font: inherit; color: var(--text); background: var(--card);
  border: 1.5px solid rgba(125, 64, 96, 0.38); border-radius: 12px;
  min-height: 48px; padding: 10px 14px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
label.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; }
label.check input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--pink-text); }
.hp { position: absolute; left: -9999px; }

/* Legal pages */
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.updated { color: var(--muted); }

/* Footer */
.wave { line-height: 0; background: var(--bg); }
.wave svg { display: block; width: 100%; height: 48px; fill: var(--plum); }
.site-footer { background: var(--plum); color: var(--on-pink); padding: 32px 0 24px; margin-top: 0; }
.site-footer a { color: var(--on-pink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 380px; }
.footer-about { font-size: 16px; opacity: 0.9; margin: 14px 0 0; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.footer-col { display: grid; gap: 12px; align-content: start; font-size: 16px; }
.footer-head { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer .footer-col a { opacity: 0.9; }
.site-footer .brand { color: var(--on-pink); font-size: 1.4rem; }
/* Social buttons: filled aqua circles, like the Tended site's footer */
.socials { display: flex; gap: 10px; margin-top: 20px; }
.site-footer .socials a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--aqua); color: var(--on-aqua); opacity: 1; }
.site-footer .socials a:hover { filter: brightness(1.08); }
.socials .social-soon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--on-pink); }
.socials .icon { width: 22px; height: 22px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.footer-bottom p { margin: 0; font-size: 14px; opacity: 0.8; }
.footer-bottom p:last-child { max-width: 560px; }

@media (max-width: 760px) {
  .main-nav { display: none; }
  .mobile-menu { display: block; }
  .header-row { flex-wrap: nowrap; }
}
@media (max-width: 860px) {
  .hero-grid, .grid, .grid.two, .feature-grid, .feature-grid.flip, .feature-grid.flip:has(> .card) { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { gap: 32px; }
  .feature-grid .phone, .feature-grid.flip > :first-child { order: 0; }
  .feature-grid > .phone { margin: 0 auto; width: min(260px, 80%); }
  .phones { min-height: 460px; }
  .phones .front { width: 220px; transform: translateX(30px); }
  .phones .back { width: 190px; transform: translateX(-70px) rotate(-6deg); }
  .tabbar span { display: none; }
  .footer-cols { gap: 40px; }
  section { padding: 48px 0; }
}
@media (max-width: 520px) {
  .brand span { font-size: 1rem; white-space: nowrap; }
  .brand img { width: 31px; height: 32px; }
}

/* Join page: the invite code, big enough to read across a room */
.invite-code { font-size: 2.2rem; font-weight: 600; letter-spacing: 0.18em; color: var(--pink-text); margin: 8px 0 12px; }

/* Email signup (home page, under the hero and in the closing section) */
.subscribe { max-width: 480px; margin: 28px auto 20px; gap: 8px; }
.subscribe-title { font-weight: 600; margin: 0; text-align: center; }
/* The arrow button sits inside the email field, on the right */
.subscribe-field { position: relative; }
.subscribe-field input { border-radius: 999px; padding: 10px 60px 10px 20px; min-height: 52px; border-color: transparent; box-shadow: var(--lift-2); }
.subscribe-go { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--aqua); color: var(--on-aqua); cursor: pointer; box-shadow: var(--lift-1); }
.subscribe-go:hover { filter: brightness(0.95); }
.subscribe-go .icon { width: 24px; height: 24px; stroke-width: 2.25; }
.fine-print { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.launch-line { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.cta .launch-line { text-align: center; }

/* Articles: content plus a right-hand sidebar (stacks below on phones) */
.article-wrap { padding-top: 48px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article-meta { color: var(--muted); font-size: 16px; }
.article-hero { display: block; width: 100%; border-radius: var(--radius); margin: 8px 0 28px; box-shadow: 0 14px 40px rgba(125, 64, 96, 0.15); }
.article .prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.article .prose p, .article .prose li { font-size: 1.1rem; }
.article-app { display: flex; gap: 16px; align-items: flex-start; margin: 36px 0 24px; padding: 20px; border-radius: var(--radius); background: var(--pink-tint); }
.article-app img { border-radius: 14px; flex: none; }
.article-app p { margin: 0 0 12px; }
.article-fine { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); }
.article-fine p, .article .prose .article-fine p, .article .prose .article-fine li { font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
.fine-head { font-weight: 600; }
.sources { margin: 0 0 12px; padding-left: 1.3em; }
.sources a { color: var(--muted); }
.sources a .icon { width: 14px; height: 14px; margin-left: 3px; vertical-align: -2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.article-list { display: grid; margin-top: 16px; }
/* Compact rows: a small image beside the title and summary */
/* No card around each article: a divider between them instead, so the image can be bigger */
.article-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: stretch; padding: 22px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.article-row:last-child { border-bottom: 0; }
.article-row:hover { text-decoration: none; }
/* The image fills the row's full height (cropped at the sides), so it lines up with the text */
.article-row img { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; border-radius: 14px; }
.article-row-body { display: grid; gap: 4px; align-content: center; }
.article-row-body .eyebrow { margin: 0; font-size: 0.75rem; }
.article-row-body strong { font-size: 1.15rem; line-height: 1.25; }
.article-row-summary { font-size: 16px; line-height: 1.4; color: var(--muted); }
.article-row .article-meta { font-size: 14px; }
.article-row:hover strong { color: var(--pink-text); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 999px; font-weight: 600; background: var(--card); box-shadow: var(--lift-1); }
.pagination span[aria-current] { background: var(--plum); color: var(--on-pink); }
.pagination .icon { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .article-row { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .article-row img { border-radius: 10px; min-height: 110px; }
  .article-row-summary { display: none; }
  .article-row-body strong { font-size: 1.05rem; }
}

.sidebar { display: grid; gap: 24px; align-content: start; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--lift-1); }
.side-plain .subscribe { margin: 0 auto; }
.side-head { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; }
.side-head .icon { width: 24px; height: 24px; color: var(--pink-text); }
.side-note { font-size: 16px; color: var(--muted); margin: 0 0 12px; }
.video-list, .side-articles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.video-list li { display: flex; gap: 12px; align-items: center; font-size: 16px; line-height: 1.35; }
.video-list li > span:last-child { display: grid; gap: 2px; }
.video-thumb { position: relative; flex: none; width: 96px; height: 60px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink-tint), #F3EAF7); color: var(--pink-text); }
.video-thumb .icon { width: 26px; height: 26px; opacity: 0.55; }
.play { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); }
.play::after { content: ''; position: absolute; left: 8px; top: 6px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.video-list em, .side-articles em { font-style: normal; font-size: 16px; color: var(--muted); }
.side-articles li { display: grid; gap: 2px; font-size: 16px; line-height: 1.35; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.side-articles li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-articles a { font-weight: 600; }
.video-list strong { font-weight: 600; }
.read-more { display: inline-flex; align-items: center; gap: 2px; margin-top: 14px; font-weight: 600; font-size: 16px; }
.read-more .icon { width: 18px; height: 18px; }
.side-subscribe .subscribe { margin: 0; }
.side-subscribe:empty { display: none; }
@media (max-width: 960px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Sidebar app card: the launch icon, so people get to know it, and store icons */
.app-card { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 4px 0 8px; }
.app-card-icon { width: 160px; height: 160px; border-radius: 36px; box-shadow: var(--lift-2); }
.app-card-name { font-weight: 600; margin: 0; font-size: 1.1rem; }
.app-card-label { font-size: 14px; color: var(--muted); margin: 0; }
.store-icons { display: flex; gap: 14px; justify-content: center; }
.store-icons a { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--plum); color: var(--on-pink); box-shadow: var(--lift-1); }
.store-icons a:hover { background: var(--pink); }
.store-icons .icon { width: 26px; height: 26px; }

/* Pull quote in the handwriting font, centered between paragraphs */
.pull-quote { margin: 40px auto; padding: 18px 0; max-width: 560px; text-align: center; border-top: 2px solid var(--pink-tint); border-bottom: 2px solid var(--pink-tint); }
.pull-quote p, .article .prose .pull-quote p { margin: 0; font-family: var(--script); font-size: clamp(1.7rem, 3.8vw, 2.3rem); line-height: 1.7; color: var(--pink-text); }

/* "All articles" link at the top of each article */
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0 24px; font-weight: 600; text-decoration: none; color: var(--pink-text); }
.back-link .icon { width: 20px; height: 20px; }
.back-link:hover { text-decoration: underline; }

/* A short personal note from the founder inside an article */
.founder-note { margin: 28px 0; padding: 20px 24px; border-radius: var(--radius); background: var(--tint-diary); border-left: 4px solid var(--plum); }
.founder-head { font-family: var(--script); color: var(--pink-text); font-size: 1.3rem; line-height: 1.6; margin: 0 0 6px; }
.article .prose .founder-note p:last-child { margin: 0; font-style: italic; }


/* Aidy on the home page: one bordered box, with a line between the two columns */
.aidy-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--lift-1); }
.aidy-box > div { padding: 40px; }
.aidy-box > div:last-child { display: flex; align-items: center; border-left: 1px solid var(--border); }
.aidy-box .checks { margin: 0; }
.cta { padding-top: 96px; }
@media (max-width: 860px) {
  .aidy-box { grid-template-columns: minmax(0, 1fr); }
  .aidy-box > div { padding: 28px 20px; }
  .aidy-box > div:last-child { border-left: 0; border-top: 1px solid var(--border); }
  .cta { padding-top: 72px; }
}

/* Unlisted draft articles (front matter draft: true) */
.draft-banner { margin: 0; padding: 10px 16px; text-align: center; font-weight: 600; background: var(--aqua-tint); color: var(--text); }

/* Article search (Articles page and the sidebar) */
.article-search { position: relative; display: block; margin: 20px 0 4px; max-width: 520px; }
.article-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.article-search input { border-radius: 999px; padding-left: 48px; }
.side-search { margin: 4px 0 14px; }
.side-search input { min-height: 44px; font-size: 16px; }
.search-count { color: var(--muted); font-size: 16px; margin: 8px 0 0; }

/* Share row under an article's date */
.share-row { display: flex; align-items: center; gap: 10px; margin: -4px 0 20px; }
.share-native { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: var(--lift-1); }
.share-native:hover { color: var(--pink-text); }
.share-native .icon { width: 20px; height: 20px; }
.share-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--plum); color: var(--on-pink); box-shadow: var(--lift-1); }
.share-icon:hover { background: var(--pink); }
.share-icon .icon { width: 18px; height: 18px; }
