/*
Theme Name: Grio Journal
Template: twentytwentyfive
Description: A journal for writing, photography, video and building with AI. Child of Twenty Twenty-Five; everything is version-controlled in theme.json, templates and patterns.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.3
Text Domain: grio-journal
*/

/* ---------- reading measure ---------- */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote { hyphens: auto; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- dark mode (follows the reader's OS) ---------- */
@media (prefers-color-scheme: dark) {
  :root body {
    --wp--preset--color--base: #121212;
    --wp--preset--color--contrast: #ece8e1;
    --wp--preset--color--muted: #9a948a;
    --wp--preset--color--surface: #1c1b19;
    --wp--preset--color--rule: #2e2c29;
    --wp--preset--color--accent: #e58a5b;
  }
  img { filter: brightness(.94); }
}

/* ---------- photography ---------- */
.wp-block-image.is-style-photo img,
.wp-block-gallery.is-style-photo img { border-radius: 0; }
.wp-block-image.is-style-photo figcaption,
.grio-exif { font-family: var(--wp--preset--font-family--manrope); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); letter-spacing: .02em; }
.grio-exif { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.grio-exif li::before { content: none; }
.wp-block-gallery.is-style-photo { gap: 4px !important; }

/* ---------- video ---------- */
.wp-block-embed.is-type-video { border-radius: 6px; overflow: hidden; }
.grio-chapters { font-family: var(--wp--preset--font-family--fira-code); font-size: var(--wp--preset--font-size--small); }

/* ---------- build logs (AI) ---------- */
.is-style-prompt {
  border-left: 3px solid var(--wp--preset--color--accent);
  background: var(--wp--preset--color--surface);
  padding: 1rem 1.25rem; font-family: var(--wp--preset--font-family--fira-code); font-size: .9em; white-space: pre-wrap;
}
.is-style-prompt::before { content: "prompt"; display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--muted); margin-bottom: .5rem; }

/* ---------- section badges on the feed ---------- */
.taxonomy-category.wp-block-post-terms a { text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-family: var(--wp--preset--font-family--manrope); color: var(--wp--preset--color--accent); }

/* ---- Nightly "Building with Claude" posts ---- */
.jd-section .jd-project { color: var(--wp--preset--color--accent); }
.jd-section .jd-project a { color: inherit; text-decoration: none; }
.jd-section .jd-project a:hover { text-decoration: underline; }
.jd-links { font-family: var(--wp--preset--font-family--manrope); font-size: var(--wp--preset--font-size--small); margin-top: -.4rem; }
.jd-links a { text-decoration: none; border-bottom: 1px solid currentColor; }
.jd-code { margin: 1.5rem 0; }
.jd-code pre { margin: 0; }
.jd-code figcaption { font-family: var(--wp--preset--font-family--manrope); font-size: .8rem; color: var(--wp--preset--color--muted); margin-top: .4rem; }
.wp-block-video video { width: 100%; border-radius: 6px; }
.jd-offclock { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.jd-card { margin: 1.5rem 0; }
.jd-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--wp--preset--font-family--manrope); color: var(--wp--preset--color--muted); }
.jd-card h3 small { text-transform: none; letter-spacing: 0; margin-left: .5rem; }
.jd-card ul { list-style: none; padding: 0; margin: 0; }
.jd-card li::before { content: none; }
.jd-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem; }
.jd-stats li { padding: .8rem; border-radius: 8px; background: color-mix(in srgb, currentColor 6%, transparent); }
.jd-stats b { display: block; font-size: 1.6rem; line-height: 1.1; font-family: var(--wp--preset--font-family--manrope); }
.jd-stats span, .jd-posters span, .jd-tracks span, .jd-games span { display: block; font-size: .78rem; color: var(--wp--preset--color--muted); }
.jd-workouts { margin-top: .6rem !important; font-size: .9rem; }
.jd-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; }
.jd-posters img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; display: block; margin-bottom: .4rem; }
.jd-posters b, .jd-tracks b, .jd-games b { font-size: .88rem; line-height: 1.25; display: block; }
.jd-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem 1rem; }
.jd-tracks li { display: grid; grid-template-columns: 48px 1fr; column-gap: .7rem; align-items: center; }
.jd-tracks img { width: 48px; height: 48px; border-radius: 4px; grid-row: span 2; }
.jd-tracks a { text-decoration: none; }
.jd-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.jd-games img { width: 100%; border-radius: 6px; display: block; margin-bottom: .4rem; }
.jd-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: .8rem; }
.jd-shots img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* On the screen: one row per show, every episode listed */
.jd-shows { display: grid; gap: 1.2rem; }
.jd-show { display: grid; grid-template-columns: 96px 1fr; column-gap: 1rem; align-items: start; }
.jd-show > img { width: 96px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; }
.jd-show b { font-size: 1rem; display: block; line-height: 1.3; }
.jd-show b a, .jd-eps a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.jd-show > div > span { display: block; font-size: .78rem; color: var(--wp--preset--color--muted); margin: .15rem 0 .5rem; }
.jd-eps { list-style: none; padding: 0; margin: 0; font-size: .88rem; columns: 2 220px; column-gap: 1.5rem; }
.jd-eps li { break-inside: avoid; padding: .12rem 0; }
.jd-ep-no { font-family: var(--wp--preset--font-family--manrope); font-size: .72rem; color: var(--wp--preset--color--muted); display: inline-block; min-width: 3.6em; }
