/* Homepage only. The original Indice stylesheet continues to own all inner pages. */
.home-template .main { max-width: 1100px; }
.main > .yg-home { max-width: 1028px; }
.yg-home { --yg-pad: 1.25rem; --yg-gap: 1.25rem; --yg-section-gap: 2.5rem; }
.yg-home--compact { --yg-pad: 1rem; --yg-gap: 1rem; --yg-section-gap: 1.75rem; }
.yg-home > section { margin: 0 0 var(--yg-section-gap); }
.yg-home img { display: block; max-width: 100%; }
.yg-home figure { margin: 0; }
.yg-home h1, .yg-home h2, .yg-home h3 { font-weight: 600; text-wrap: pretty; }
.yg-home h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 1rem; letter-spacing: -.015em; }
.yg-home h2, .yg-home h3 { font-size: 1.125rem; line-height: 1.3; margin: 0 0 .75rem; }
.yg-home p { font-size: .9rem; line-height: 1.6; margin: 0 0 1rem; }
.yg-home .yg-eyebrow { font-size: .75rem; line-height: 1.4; color: #666; margin: 0 0 .75rem; }
.yg-home .yg-copy > :last-child { margin-bottom: 0; }
.yg-home .yg-copy img, .yg-home .yg-copy video, .yg-home .yg-copy iframe { max-width: 100%; }
.yg-home .yg-copy img { height: auto; }
.yg-home .yg-copy .kg-width-wide, .yg-home .yg-copy .kg-width-full { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
.yg-home .yg-copy ul, .yg-home .yg-copy ol { padding-left: 1.25rem; font-size: .9rem; }
.yg-home .yg-copy hr { width: 100%; border: 0; border-top: 1px solid #e0e0e0; margin: 1.25rem 0 .85rem; }
.yg-home .yg-copy a { overflow-wrap: anywhere; }
.yg-home .yg-copy pre { overflow-x: auto; }
.yg-text-link { font-size: .9rem; }
.yg-origin { border: 1px solid #111; }
.yg-intro-grid { display: grid; grid-template-columns: 1.45fr 1fr; }
.yg-intro-grid--text-only { grid-template-columns: 1fr; }
.yg-intro-copy { padding: calc(var(--yg-pad) + .25rem); min-width: 0; }
.yg-intro-copy .yg-copy p { font-size: 1rem; max-width: 33rem; }
.yg-intro-copy .yg-copy p:last-child { font-size: .9rem; }
.yg-portrait { display: grid; grid-template-rows: 1fr auto; min-width: 0; border-left: 1px solid #111; }
.yg-portrait img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; }
.yg-portrait figcaption, .yg-studio-image figcaption { padding: .65rem 1rem; border-top: 1px solid #111; font-size: .75rem; color: #666; line-height: 1.4; }
.yg-portrait figcaption p, .yg-studio-image figcaption p { font-size: inherit; margin: 0; }
.yg-story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid #111; }
.yg-story-card { padding: var(--yg-pad); border-left: 1px solid #111; min-width: 0; }
.yg-story-card:first-child { border-left: 0; }
.yg-story-card h2 { font-size: 1rem; margin-bottom: .65rem; }
.yg-story-card p { font-size: .9rem; }
.yg-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #111; padding-bottom: .5rem; margin-bottom: 1rem; }
.yg-section-heading h2 { margin: 0; }
.yg-section-heading > a { font-size: .8rem; flex-shrink: 0; }
.yg-current-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--yg-gap); }
.yg-panel { border: 1px solid #111; min-width: 0; }
.yg-panel-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .75rem var(--yg-pad); font-size: .75rem; line-height: 1.4; color: #666; }
.yg-feature-image { display: block; border-top: 1px solid #111; border-bottom: 1px solid #111; }
.yg-feature-image img { width: 100%; height: auto; }
.yg-card-copy { padding: var(--yg-pad); }
.yg-side-stack { display: grid; grid-template-rows: auto 1fr; gap: var(--yg-gap); min-width: 0; }
.yg-side-stack > :only-child { grid-column: 1 / -1; }
.yg-side-stack:not(:has(> *)) { display: none; }
.yg-current-grid:not(:has(.yg-side-stack > *)) { grid-template-columns: 1fr; }
.yg-latest-note, .yg-reading-paths { padding: var(--yg-pad); }
.yg-latest-note h3 { font-size: 1.25rem; line-height: 1.25; }
.yg-reading-paths > h3 { margin-bottom: 1rem; }
.yg-reading-paths .yg-copy > h2, .yg-reading-paths .yg-copy > h3, .yg-reading-paths .yg-copy > h4 { padding-top: .8rem; margin: 0 0 .2rem; border-top: 1px solid #e0e0e0; font-size: .9rem; font-weight: 600; }
.yg-reading-paths .yg-copy > p { font-size: .8rem; color: #666; margin-bottom: .8rem; }
.yg-section-intro { max-width: 41rem; margin-bottom: var(--yg-gap); }
.yg-section-intro p { font-size: 1rem; }
.yg-project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #111; }
.yg-project-card { padding: var(--yg-pad); min-width: 0; border-left: 1px solid #111; display: flex; flex-direction: column; }
.yg-project-card:first-child { border-left: 0; }
.yg-project-card > .yg-copy { display: flex; flex-direction: column; flex: 1; }
.yg-project-card .yg-copy > hr { margin-top: auto; }
.yg-project-card .yg-copy > hr + p { font-size: .75rem; line-height: 1.4; color: #666; margin-bottom: .4rem; }
.yg-project-card .yg-copy > hr + p + p { font-size: .8rem; line-height: 1.45; min-height: 2.9em; }
.yg-material { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--yg-gap); }
.yg-material--single { grid-template-columns: 1fr; }
.yg-material--single .yg-studio-image img { max-height: 450px; object-fit: cover; }
.yg-studio-image { border-bottom: 1px solid #111; }
.yg-studio-image img { width: 100%; height: auto; }
.yg-books-panel { padding: var(--yg-pad); }
.yg-books-content { --yg-book-height: 125px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1rem; }
.yg-books-content > * { grid-column: 1 / -1; min-width: 0; }
.yg-books-content > .kg-product-card { grid-column: auto; margin: .5rem 0 1.25rem; }
.yg-home .yg-books-content .kg-product-card-container { display: flex; flex-direction: column; align-items: stretch; padding: 0; gap: 0; border: 0; border-radius: 0; background: none; box-shadow: none; height: 100%; }
.yg-home .yg-books-content .kg-product-card-image { width: 100%; height: 125px; max-height: 125px; object-fit: contain; object-position: bottom left; margin: 0 0 .75rem; border-radius: 0; }
.yg-home .yg-books-content .kg-product-card-image[src*="dark-forest-era-wrap"] { width: auto; aspect-ratio: 942 / 1417; object-fit: cover; object-position: right center; align-self: flex-start; }
/* Frame the original artwork; negative margins reserve only the visible front cover. */
.yg-home .yg-books-content .kg-product-card-image:is([src*="on-the-creative-life"], [src*="dark-forest-anthology"]) { max-width: none; max-height: none; border: 0; object-fit: fill; align-self: flex-start; flex-shrink: 0; }
/* Source 1216 x 1152; front cover x250, y43, width715, height1010. */
.yg-home .yg-books-content .kg-product-card-image[src*="on-the-creative-life"] { width: calc(var(--yg-book-height) * 1216 / 1010); height: calc(var(--yg-book-height) * 1152 / 1010); clip-path: inset(3.732638889% 20.641447368% 8.59375% 20.559210526%); margin: calc(var(--yg-book-height) * -43 / 1010) calc(var(--yg-book-height) * -251 / 1010) calc(.75rem - var(--yg-book-height) * 99 / 1010) calc(var(--yg-book-height) * -250 / 1010); }
/* Source 300 x 400; front cover x75, y14, width188, height372. */
.yg-home .yg-books-content .kg-product-card-image[src*="dark-forest-anthology"] { width: calc(var(--yg-book-height) * 300 / 372); height: calc(var(--yg-book-height) * 400 / 372); clip-path: inset(3.5% 12.333333333% 3.5% 25%); margin: calc(var(--yg-book-height) * -14 / 372) calc(var(--yg-book-height) * -37 / 372) calc(.75rem - var(--yg-book-height) * 14 / 372) calc(var(--yg-book-height) * -75 / 372); }
.yg-home .yg-books-content .kg-product-card-title-container { padding: 0; }
.yg-home .yg-books-content .kg-product-card-title { font-family: inherit; font-size: .8rem; font-weight: 400; line-height: 1.4; color: inherit; margin: 0 0 .5rem; letter-spacing: 0; }
.yg-home .yg-books-content .kg-product-card-description { font-size: .75rem; line-height: 1.4; margin: 0 0 .5rem; }
.yg-home .yg-books-content .kg-product-card-description:empty { display: none; }
.yg-home .yg-books-content .kg-product-card-description p { font-size: inherit; }
.yg-home .yg-books-content .kg-product-card-button { display: block; min-height: 0; height: auto; width: auto; padding: 0; margin-top: auto; border: 0; border-radius: 0; background: transparent; color: #000; font-family: inherit; font-size: .75rem; font-weight: 400; line-height: 1.4; text-align: left; white-space: normal; text-decoration: underline; box-shadow: none; }
.yg-home .yg-books-content .kg-product-card-button:hover { text-decoration: none; }
.yg-books-content > hr + p { font-size: .75rem; color: #666; margin-bottom: .5rem; }
.yg-books-content > hr + p + p { font-size: .85rem; }
.yg-letter-box { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: calc(var(--yg-pad) + .25rem); border: 1px solid #111; }
.yg-letter-copy { max-width: 36rem; min-width: 0; }
.yg-home .yg-button { display: inline-block; flex-shrink: 0; border: 1px solid #000; color: #fff; background: #000; padding: .65rem 1rem; font-family: inherit; font-size: .875rem; line-height: 1.4; text-decoration: none; text-align: center; }
.yg-home .yg-button:hover { background: #fff; color: #000; }
.yg-home a:focus-visible { outline: 2px solid #000; outline-offset: 4px; }

@media (min-width:769px) and (max-width:1100px) {
    .yg-intro-grid { grid-template-columns: 1.15fr 1fr; }
    .yg-intro-grid--text-only { grid-template-columns: 1fr; }
    .yg-intro-copy { padding: var(--yg-pad); }
    .yg-story-grid, .yg-project-grid { grid-template-columns: 1fr; }
    .yg-story-card, .yg-project-card { border-left: 0; border-top: 1px solid #111; }
    .yg-story-card:first-child, .yg-project-card:first-child { border-top: 0; }
    .yg-current-grid { grid-template-columns: 1fr; }
    .yg-side-stack { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; }
    .yg-material { grid-template-columns: 1fr; }
    .yg-project-card .yg-copy > hr + p + p { min-height: 0; }
    .yg-books-content { grid-template-columns: repeat(2,minmax(0,8rem)); }
}
@media (max-width:768px) {
    .main > .yg-home { max-width: 100%; }
    .yg-intro-grid { grid-template-columns: 1.25fr 1fr; }
    .yg-intro-grid--text-only { grid-template-columns: 1fr; }
    .yg-intro-copy { padding: var(--yg-pad); }
    .yg-story-grid, .yg-project-grid { grid-template-columns: 1fr; }
    .yg-story-card, .yg-project-card { border-left: 0; border-top: 1px solid #111; }
    .yg-story-card:first-child, .yg-project-card:first-child { border-top: 0; }
    .yg-current-grid, .yg-material { grid-template-columns: 1fr; }
    .yg-side-stack { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; }
    .yg-project-card .yg-copy > hr + p + p { min-height: 0; }
    .yg-books-content { grid-template-columns: repeat(2,minmax(0,8rem)); }
    .yg-letter-box { gap: 1.5rem; }
}
@media (max-width:580px) {
    .yg-home { --yg-pad: 1rem; --yg-gap: 1rem; --yg-section-gap: 2rem; }
    .yg-home--compact { --yg-pad: .85rem; --yg-gap: .85rem; --yg-section-gap: 1.5rem; }
    .yg-intro-grid, .yg-side-stack { grid-template-columns: 1fr; }
    .yg-intro-copy { padding: var(--yg-pad); }
    .yg-portrait { border-left: 0; border-top: 1px solid #111; }
    .yg-portrait img { height: auto; object-fit: contain; }
    .yg-portrait figcaption { padding: .6rem 1rem; }
    .yg-section-heading { flex-wrap: wrap; gap: .5rem 1rem; }
    .yg-books-content { --yg-book-height: 110px; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: .7rem; }
    .yg-home .yg-books-content .kg-product-card-image { height: 110px; max-height: 110px; }
    .yg-letter-box { display: block; padding: var(--yg-pad); }
    .yg-letter-box .yg-button { margin-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .yg-home * { scroll-behavior: auto; }
}
