/* A garden journal: a photographic lead, practical reading, then exploration. */
.home #main { padding-block: 0; }
.gi-homepage { --gi-home-unit: 1px; background: var(--gi-ivory-50); padding-bottom: clamp(3rem, 6vw, 6rem); }
.gi-homepage a { text-decoration: none; }
.gi-homepage p { margin-top: 0; }
.gi-home-icon { display: inline-block; flex: 0 0 auto; height: calc(var(--gi-home-icon-size, 32) * 1px); object-fit: contain; vertical-align: middle; width: calc(var(--gi-home-icon-size, 32) * 1px); }
.gi-home-link { align-items: center; color: var(--gi-moss-800); display: inline-flex; font-size: .875rem; font-weight: 750; gap: .75rem; min-height: 2.75rem; }
.gi-home-link:hover { text-decoration: underline; }
.gi-homepage__hero { background: var(--gi-moss-900); color: var(--gi-ivory-50); overflow: hidden; position: relative; }
.gi-homepage__hero-inner { align-items: stretch; display: grid; grid-template-columns: 1fr 1.05fr; margin-inline: auto; max-width: 100rem; }
.gi-homepage__hero-copy { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.gi-homepage__hero .gi-eyebrow { color: var(--gi-lime); font-size: .75rem; font-weight: 750; letter-spacing: .15em; margin-bottom: 1.6rem; text-transform: uppercase; }
.gi-homepage__hero h1 { color: var(--gi-ivory-50); font-size: clamp(2.7rem, 4.5vw, 4.65rem); font-weight: 650; letter-spacing: -.055em; line-height: 1.06; margin: 0 0 1.7rem; }
.gi-homepage__hero-copy > p:not(.gi-eyebrow) { color: var(--gi-brand-line); font-size: 1.0625rem; line-height: 1.75; max-width: 45ch; }
.gi-home-search { align-items: center; background: var(--gi-ivory-50); border: 1px solid var(--gi-border); border-radius: .5rem; display: flex; margin-top: 1.8rem; min-height: 3.5rem; }
.gi-home-search:focus-within { outline: 3px solid var(--gi-lime); outline-offset: 4px; }
.gi-home-search button { align-items: center; background: transparent; border: 0; display: flex; flex: 0 0 3.25rem; justify-content: center; min-height: 3.25rem; padding: 0; }
.gi-home-search input[type=search] { background: transparent; border: 0; box-shadow: none; color: var(--gi-ink); font-size: 1rem; height: 3.25rem; min-width: 0; padding: .6rem .8rem .6rem 0; width: 100%; }
.gi-home-search input::placeholder { color: var(--gi-muted); opacity: 1; }
.gi-homepage__hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .85rem 1.25rem; margin-top: 1rem; }
.gi-homepage__primary-action { background: var(--gi-lime); border-color: var(--gi-lime); color: var(--gi-moss-900); }
.gi-homepage__primary-action:hover { background: var(--gi-sage-100); border-color: var(--gi-sage-100); color: var(--gi-moss-900); }
.gi-homepage__hero .gi-button--secondary { background: transparent; border: 0; color: var(--gi-ivory-50); padding-inline: 0; text-decoration: underline; }
.gi-homepage__hero .gi-button--secondary:hover { color: var(--gi-lime); }
.gi-home-actions { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; margin-top: 2rem; }
.gi-home-actions a { align-items: center; color: var(--gi-ivory-50); display: inline-flex; font-size: .8rem; gap: .55rem; min-height: 2.75rem; }
.gi-home-actions a:hover { color: var(--gi-lime); text-decoration: underline; }
.gi-home-actions .gi-home-icon { height: 2rem; width: 2rem; }
/* Every media layer carries the same fade, so the lead dissolves into the hero
   field as one image instead of meeting it at a panel edge. */
.gi-home-lead { --gi-lead-fade: linear-gradient(90deg, transparent 0, rgb(0 0 0 / 20%) 13%, rgb(0 0 0 / 74%) 32%, #000 56%); background: transparent; color: var(--gi-ivory-50); display: flex; flex-direction: column; isolation: isolate; justify-content: end; min-height: 38rem; overflow: hidden; position: relative; }
.gi-home-lead--text { background: var(--gi-moss-800); }
.gi-home-lead > img { height: 100%; inset: 0; -webkit-mask-image: var(--gi-lead-fade); mask-image: var(--gi-lead-fade); object-fit: cover; position: absolute; transition: transform 600ms var(--gi-ease); width: 100%; z-index: -2; }
/* The botanical artwork veils the transition; capping its height keeps it from
   curtaining the photograph on a tall hero. */
.gi-home-lead::before { background: url('../artwork/botanical-corner.webp') no-repeat right bottom / auto min(100%, 34rem); content: ''; inset: 0; opacity: .42; pointer-events: none; position: absolute; -webkit-mask-image: var(--gi-lead-fade); mask-image: var(--gi-lead-fade); z-index: -1; }
/* The scrim has to reach full strength before the copy band, or the lime label
   lands on the brightest part of a photograph. */
.gi-home-lead::after { background: linear-gradient(180deg, transparent 22%, color-mix(in oklch, var(--gi-brand-forest) 55%, transparent) 52%, color-mix(in oklch, var(--gi-brand-forest) 94%, transparent) 82%); content: ''; inset: 0; position: absolute; z-index: -1; }
/* Past the container width the lead reaches the viewport edge rather than
   leaving a second hard edge in the gutter. */
@media (min-width: 100rem) {
    .gi-home-lead { margin-inline-end: calc(50rem - 50vw); }
}
.gi-home-lead:hover > img { transform: scale(1.025); }
.gi-home-lead:focus-visible { outline-offset: -6px; }
.gi-home-lead__copy { padding: clamp(1.5rem, 3.5vw, 3.5rem); position: relative; }
/* The copy carries its own scrim, so legibility never depends on how bright the
   photograph happens to be behind it or on how tall the lead grows. */
.gi-home-lead__copy::before { background: linear-gradient(180deg, transparent 0, color-mix(in oklch, var(--gi-brand-forest) 70%, transparent) 26%, color-mix(in oklch, var(--gi-brand-forest) 92%, transparent) 52%, color-mix(in oklch, var(--gi-brand-forest) 97%, transparent) 100%); content: ''; inset: -6rem 0 0; pointer-events: none; position: absolute; z-index: -1; }
.gi-home-lead__copy > span:first-child { color: var(--gi-lime); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.gi-home-lead h2 { color: var(--gi-ivory-50); font-size: clamp(1.75rem, 2.6vw, 2.75rem); letter-spacing: -.035em; line-height: 1.15; margin: 1rem 0 1.5rem; max-width: 24ch; }
.gi-home-lead__action { align-items: center; border-top: 1px solid color-mix(in oklch, var(--gi-brand-sage) 35%, transparent); color: var(--gi-ivory-50); display: flex; font-size: .9rem; font-weight: 750; justify-content: space-between; padding-top: 1rem; }
.gi-home-lead__action > span { font-size: 1.75rem; }
.gi-homepage__hero--without-media .gi-homepage__hero-inner:not(:has(.gi-home-lead)) { grid-template-columns: 1fr; }
.gi-homepage__content { margin-inline: auto; width: var(--gi-shell); }
.gi-homepage__section { margin-top: clamp(3rem, 6vw, 6rem); scroll-margin-top: 2rem; }
.gi-homepage__section > h2 { font-size: clamp(1.65rem, 2.7vw, 2.7rem); letter-spacing: -.045em; margin: 0 0 1.75rem; }
.gi-homepage__section > p { color: var(--gi-muted); max-width: 65ch; }
.gi-homepage__task-rail { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gi-homepage__task-rail > div { min-width: 0; }
.gi-home-task { border-top: 1px solid var(--gi-sage-300); height: 100%; padding-block: 1.25rem; }
.gi-home-card__body { display: flex; flex-direction: column; height: 100%; }
.gi-home-card__meta { align-items: center; display: grid; gap: .35rem .75rem; grid-template-columns: auto minmax(0, 1fr) auto; margin-bottom: 1.2rem; }
.gi-home-card__illustration { align-items: center; display: inline-flex; grid-row: 1 / 3; height: 4.5rem; justify-content: center; width: 4.5rem; }
.gi-home-card__illustration .gi-home-icon { height: 100%; width: 100%; }
.gi-home-card__category { color: var(--gi-moss-700); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.gi-home-card__time { color: var(--gi-muted); font-size: .75rem; grid-column: 3; white-space: nowrap; }
.gi-home-card__time .gi-home-icon { height: .8rem; margin-right: .25rem; width: .8rem; }
.gi-home-task h3 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 .65rem; }
.gi-home-task h3 a, .gi-home-guide h3 a { color: var(--gi-moss-900); }
.gi-home-task h3 a:hover, .gi-home-guide h3 a:hover { text-decoration: underline; }
.gi-home-task p { color: var(--gi-muted); font-size: .9rem; line-height: 1.7; }
.gi-home-card__body > .gi-home-link { margin-top: auto; }
.gi-home-guides { display: grid; gap: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gi-home-guide { display: flex; flex-direction: column; min-width: 0; }
.gi-home-guide__image { aspect-ratio: 4 / 3; background: var(--gi-sage-100); border-radius: .75rem; display: block; overflow: hidden; }
.gi-home-guide__image img { height: 100%; object-fit: cover; transition: transform 400ms var(--gi-ease); width: 100%; }
.gi-home-guide__image:hover img { transform: scale(1.03); }
.gi-home-guide .gi-home-card__body { flex: 1; height: auto; padding-top: 0; }
.gi-home-guide .gi-home-card__meta { margin-top: -2.4rem; padding-inline: 1rem; position: relative; z-index: 1; }
.gi-home-guide .gi-home-card__illustration { background: var(--gi-ivory-50); border: .4rem solid var(--gi-ivory-50); border-radius: 50%; box-sizing: content-box; height: 4.2rem; width: 4.2rem; }
.gi-home-guide h3 { font-size: clamp(1.3rem, 1.5vw, 1.65rem); line-height: 1.3; margin: 0 0 .85rem; }
.gi-home-guide p { color: var(--gi-muted); font-size: .95rem; line-height: 1.7; }
.gi-homepage__topics { background: var(--gi-brand-wash); border-radius: 1rem; padding: clamp(1.5rem, 3.5vw, 3rem); }
.gi-home-topics { display: grid; gap: 0 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gi-home-topic { align-items: center; border-top: 1px solid var(--gi-border); color: var(--gi-moss-900); display: flex; gap: 1rem; padding: 1.15rem 0; }
.gi-home-topic > .gi-home-icon { height: 4.25rem; width: 4.25rem; }
.gi-home-topic h3 { font-size: 1.1rem; letter-spacing: -.02em; margin: 0 0 .25rem; }
.gi-home-topic p { color: var(--gi-muted); font-size: .85rem; line-height: 1.5; margin-bottom: 0; }
.gi-home-topic:hover h3 { text-decoration: underline; }
.gi-home-house { border-top: 1px solid var(--gi-border); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.25rem; padding-top: 1.25rem; }
.gi-home-house a { align-items: center; color: var(--gi-ink); display: inline-flex; font-size: .8rem; gap: .45rem; min-height: 2.75rem; }
.gi-home-house a:hover { text-decoration: underline; }
.gi-home-house .gi-home-icon { height: 2.5rem; width: 2.5rem; }
.gi-home-problems { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gi-home-problem { border: 1px solid var(--gi-border); border-radius: .75rem; color: var(--gi-ink); display: flex; flex-direction: column; overflow: hidden; }
.gi-home-problem > img { aspect-ratio: 2 / 1; height: auto; object-fit: cover; width: 100%; }
.gi-home-problem > div { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.gi-home-problem__illustration { align-items: center; background: var(--gi-ivory-50); border: .35rem solid var(--gi-ivory-50); border-radius: 50%; display: inline-flex; height: 4.5rem; justify-content: center; position: relative; width: 4.5rem; }
.gi-home-problem:has(> img) .gi-home-problem__illustration { margin-top: -3.75rem; }
.gi-home-problem__illustration .gi-home-icon { height: 100%; width: 100%; }
.gi-home-problem h3 { font-size: 1.25rem; line-height: 1.35; margin: 0 0 .7rem; }
.gi-home-problem p { color: var(--gi-muted); font-size: .9rem; line-height: 1.7; }
.gi-home-problem .gi-home-link { margin-top: auto; }
.gi-home-problem:hover { background: var(--gi-sage-100); }
/* Community and the subscription block share the row, so neither leaves a void. */
.gi-home-connect { align-items: start; display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.gi-homepage__community { min-width: 0; }
.gi-homepage__community > header { border-bottom: 1px solid var(--gi-border); padding-bottom: 1rem; }
.gi-homepage__community h2 { font-size: 1.6rem; margin: 0 0 .5rem; }
.gi-homepage__community header > a { color: var(--gi-moss-700); font-size: .875rem; font-weight: 750; }
.gi-home-comment { border-bottom: 1px solid var(--gi-border); display: flex; gap: 1rem; padding-block: 1.25rem; }
.gi-home-comment h3 { font-size: 1rem; margin: 0 0 .5rem; }
.gi-home-comment p { color: var(--gi-muted); font-size: .9rem; }
.gi-home-comment__avatar { flex: 0 0 auto; }
.gi-home-community-empty { padding-top: 1.5rem; }
.gi-home-community-empty > img { height: 3.5rem; margin-bottom: 1rem; width: 3.5rem; }
.gi-home-community-empty h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.gi-home-community-empty p { color: var(--gi-muted); font-size: .95rem; max-width: 50ch; }
.gi-homepage__newsletter { min-width: 0; }
@media (max-width: 1100px) {
    .gi-homepage__hero-copy { padding: 2rem; }
    .gi-homepage__hero h1 { font-size: 3rem; }
    .gi-homepage__task-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gi-home-guides { gap: 1.25rem; }
}
@media (max-width: 760px) {
    .gi-homepage__hero-inner { grid-template-columns: 1fr; }
    .gi-homepage__hero-copy { padding: 2.5rem 1.25rem; }
    .gi-homepage__hero h1 { font-size: clamp(2.5rem, 9vw, 3.5rem); }
    /* Stacked, the lead meets the copy on its top edge, so the fade turns with it. */
    .gi-home-lead { --gi-lead-fade: linear-gradient(180deg, transparent 0, rgb(0 0 0 / 55%) 13%, #000 32%); min-height: 26rem; }
    .gi-home-lead::before { background-size: auto 60%; opacity: .32; }
    .gi-home-lead::after { background: linear-gradient(180deg, transparent 26%, color-mix(in oklch, var(--gi-brand-forest) 96%, transparent) 86%); }
    /* Stacked, the copy sits over the brightest part of the frame, so its scrim
       reaches full strength sooner. */
    .gi-home-lead__copy::before { background: linear-gradient(180deg, transparent 0, color-mix(in oklch, var(--gi-brand-forest) 88%, transparent) 18%, color-mix(in oklch, var(--gi-brand-forest) 96%, transparent) 50%, color-mix(in oklch, var(--gi-brand-forest) 99%, transparent) 100%); inset: -4rem 0 0; }
    .gi-homepage__content { width: calc(100% - 2.5rem); }
    .gi-home-guides, .gi-home-problems, .gi-home-connect { grid-template-columns: 1fr; }
    .gi-home-guide__image { aspect-ratio: 16 / 10; }
    .gi-home-topics { grid-template-columns: 1fr; }
    .gi-homepage__topics { margin-inline: -.5rem; padding: 1.25rem; }
}
@media (max-width: 420px) {
    .gi-homepage__task-rail { grid-template-columns: 1fr; gap: .25rem; }
    .gi-homepage__hero-actions { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .gi-home-lead > img, .gi-home-guide__image img { transition: none; }
    .gi-home-lead:hover > img, .gi-home-guide__image:hover img { transform: none; }
}
