/**
 * garden.css
 *
 * Cafe-warm styling for Garden pages (column / reviews).
 * English comments only (server charset safety).
 *
 * @since 2026-06-24
 */

@import url('https://fonts.googleapis.com/css2?family=Monoton&family=Pinyon+Script&family=Zen+Kaku+Gothic+New:wght@400;500&family=Zen+Old+Mincho:wght@400;500;700&display=swap');

/* =====================================================================
   Tokens
   ===================================================================== */
body.sog-garden-page {
    --sgd-paper:      #f6f1e7;
    --sgd-paper-card: #fdfbf6;
    --sgd-ink:        #2c2620;
    --sgd-ink-soft:   #5b5147;
    --sgd-ink-faint:  #8a7f70;
    --sgd-line:       #e7dcc8;
    --sgd-accent:     #d5167a;
    --sgd-serif:      "Zen Old Mincho", serif;
    --sgd-sans:       "Zen Kaku Gothic New", system-ui, sans-serif;
    background-color: var(--sgd-paper);
    color: var(--sgd-ink);
    font-family: var(--sgd-sans);
}

/* =====================================================================
   Header nav override
   ===================================================================== */
body.sog-garden-page .site-header { --text-color: #2c2620; }
body.sog-garden-page .site-logo a,
body.sog-garden-page .site-menu a,
body.sog-garden-page .site-menu li a,
body.sog-garden-page .site-social a { color: #2c2620 !important; }
body.sog-garden-page .site-header svg { fill: #2c2620 !important; }
body.sog-garden-page .menu-toggle span { background-color: #2c2620 !important; }

/* =====================================================================
   WP wrapper
   ===================================================================== */
body.sog-garden-page .site-hero { display: none; }
body.sog-garden-page .site-main { max-width: none; padding: 0; margin: 0; }
body.sog-garden-page .site-main-inner { width: 100%; }

/* =====================================================================
   ARCHIVE — garden-page section (template-garden.php)
   ===================================================================== */
.garden-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem clamp(1.25rem, 5vw, 4rem) 5rem;
}

/* -- Page header -- */
.garden-header {
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #2c2620;
}
/* Tag page header: text left / cat logo right, more breathing room */
.garden-header--tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 2rem;
}
.garden-header-tag-text {
    display: flex;
    flex-direction: column;
}
.garden-header--tag .sg-work__cat {
    width: 90px;
    flex: none;
    opacity: 0.5;
}
.garden-header--tag .sg-work__cat svg {
    fill: #2c2620;
}
.garden-title {
    font-family: 'Monoton', cursive;
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1;
    color: #2c2620;
    margin: 0 0 0.5rem;
}
/* Tag pages: serif, smaller, with keyword label above */
.garden-title--tag {
    font-family: "Zen Old Mincho", serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: #2c2620;
}
.garden-title-kicker {
    font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8a7f70;
    margin: 0 0 0.4rem;
    display: block;
}
.garden-subtitle {
    font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
    font-size: 0.8rem;
    color: #8a7f70;
    letter-spacing: 0.05em;
    margin: 0;
}

/* -- Filters -- */
.garden-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.garden-filter {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none;
    padding: 0.1rem 0.9rem 0.2rem;
    border: 1px solid #e7dcc8;
    color: #8a7f70;
    background: transparent;
    line-height: 1.4;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.garden-filter:hover,
.garden-filter.is-active {
    border-color: #2c2620;
    color: #fdfbf6;
    background: #2c2620;
}

/* -- Featured article -- */
.garden-featured { margin-bottom: 3rem; border-radius: 12px; overflow: hidden; }
.garden-featured-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.garden-featured-thumbnail { aspect-ratio: 16 / 6; overflow: hidden; }
.garden-featured-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.garden-featured-link:hover .garden-featured-thumbnail img { transform: scale(1.03); }
.garden-featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(44,38,32,0.78) 0%, transparent 55%);
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.2rem, 3vw, 2rem);
}
.garden-featured-cat {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.1rem; letter-spacing: 0.02em; text-transform: none;
    color: rgba(253,251,246,0.85); margin-bottom: 0.4rem; display: block;
}
.garden-featured-title {
    font-family: "Zen Old Mincho", serif; font-weight: 500;
    font-size: clamp(1.2rem, 3vw, 1.9rem); line-height: 1.45;
    color: #fdfbf6; margin: 0 0 0.4rem;
}
.garden-featured-date {
    font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
    font-size: 0.68rem; letter-spacing: 0.06em; color: rgba(253,251,246,0.6);
}

/* -- Grid -- */
.garden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}
.garden-item {
    background: #fdfbf6; border-radius: 10px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(44,38,32,.05), 0 6px 18px rgba(44,38,32,.06);
    transition: transform 0.4s cubic-bezier(0.22,0.61,0.36,1),
                box-shadow 0.4s cubic-bezier(0.22,0.61,0.36,1);
    display: flex; flex-direction: column;
}
.garden-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 6px rgba(44,38,32,.09), 0 16px 36px rgba(44,38,32,.12);
}
.garden-item-link { display: block; text-decoration: none; }
.garden-item-thumbnail { aspect-ratio: 16 / 9; overflow: hidden; background: #e7dcc8; }
.garden-item-thumbnail--empty { display: flex; align-items: center; justify-content: center; }
.garden-item-thumbnail img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.7s cubic-bezier(0.22,0.61,0.36,1);
}
.garden-item:hover .garden-item-thumbnail img { transform: scale(1.04); }
.garden-item-info { padding: 0.9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.garden-item-cat {
    font-family: 'Pinyon Script', cursive;
    font-size: 1rem; letter-spacing: 0.02em; text-transform: none;
    color: #8a7f70; margin-bottom: 0.2rem; display: block;
}
.garden-item-title {
    font-family: "Zen Old Mincho", serif; font-weight: 500;
    font-size: 0.92rem; line-height: 1.55; margin: 0 0 auto; padding-bottom: 0.5rem;
}
.garden-item-title a { color: #2c2620; text-decoration: none; }
.garden-item-title a:hover { color: #d5167a; }
.garden-item-date {
    font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
    font-size: 0.68rem; color: #8a7f70; letter-spacing: 0.03em;
    display: block; margin-top: 0.5rem;
}
.garden-empty { text-align: center; color: #8a7f70; padding: 4rem 0; }

/* Load more */
.garden-page .load-more { margin-top: 2.5rem; text-align: center; }
.garden-page .load-more span {
    font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: #5b5147; cursor: pointer; padding: 0.5rem 1.8rem;
    border: 1px solid #e7dcc8; background: #fdfbf6; display: inline-block;
    transition: border-color 0.25s, color 0.25s;
}
.garden-page .load-more span:hover { border-color: #d5167a; color: #d5167a; }

/* =====================================================================
   SINGLE — hero with title overlay
   ===================================================================== */

/* Hero: fixed height, image fills, dark gradient at bottom, title on top */
.sog-garden-single__hero {
    position: relative;
    width: 100%;
    height: clamp(320px, 55vh, 520px);
    overflow: hidden;
    background: #2c2620;
}
.sog-garden-single__hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    opacity: 0.82;
}
/* No image fallback: cafe-warm paper with subtle grain feel */
.sog-garden-single__hero--no-img {
    background: linear-gradient(135deg, #e7dcc8 0%, #f6f1e7 100%);
    height: clamp(200px, 35vh, 320px);
}
.sog-garden-single__hero--no-img .sog-garden-single__hero-title {
    color: #2c2620;
}
.sog-garden-single__hero--no-img .sog-garden-single__hero-cat,
.sog-garden-single__hero--no-img .sog-garden-single__hero-date {
    color: #8a7f70;
}

/* Gradient overlay — title lives here */
.sog-garden-single__hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(28,22,16,0.82) 0%, rgba(28,22,16,0.1) 55%, transparent 100%);
    display: flex; align-items: flex-end;
}
.sog-garden-single__hero-inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem clamp(1.1rem, 4vw, 1.6rem);
}
.sog-garden-single__hero-cats {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.sog-garden-single__hero-cat {
    font-family: 'Pinyon Script', cursive;
    font-size: 1rem; letter-spacing: 0.02em; text-transform: none;
    color: rgba(253,251,246,0.85);
    border: 1px solid rgba(253,251,246,0.35);
    padding: 0.1rem 0.65rem 0.2rem;
    line-height: 1.4;
}
.sog-garden-single__hero-title {
    font-family: "Zen Old Mincho", serif; font-weight: 500;
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    line-height: 1.5; letter-spacing: 0.01em;
    color: #fdfbf6; margin: 0 0 0.5rem;
}
.sog-garden-single__hero-date {
    font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
    font-size: 0.7rem; letter-spacing: 0.06em;
    color: rgba(253,251,246,0.55);
}

/* =====================================================================
   SINGLE — body area
   ===================================================================== */
.sog-garden-single__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 clamp(1.1rem, 4vw, 1.6rem) 5rem;
}

/* Sub-head: back link (left) / cat logo (right) — mirrors work-detail */
.sog-garden-single__sub-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: 1.2rem 0 1rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid #e7dcc8;
}
.sog-garden-single__back {
    display: inline-flex; align-items: center; gap: 0.4em;
    font-family: 'Pinyon Script', cursive;
    font-size: 1.2rem; letter-spacing: 0.02em;
    color: #8a7f70; text-decoration: none; transition: color 0.2s;
    line-height: 1.4;
}
.sog-garden-single__back svg { width: 13px; height: 13px; flex: none; }
.sog-garden-single__back:hover { color: #2c2620; }

/* Cat mark sizing — same as work-detail */
.sog-garden-single__sub-head .sg-work__cat { width: 72px; opacity: 0.5; }
.sog-garden-single__sub-head .sg-work__cat svg { fill: #2c2620; }

/* Body copy */
.sog-garden-single__body {
    font-family: "Zen Old Mincho", serif;
    font-size: 1rem; line-height: 2.05; color: #3a342e;
}
.sog-garden-single__body > :first-child { margin-top: 0; }
.sog-garden-single__body p { margin: 0 0 1.4em; }
.sog-garden-single__body h2 {
    font-family: "Zen Old Mincho", serif; font-weight: 500;
    font-size: 1.15rem; letter-spacing: 0.01em; color: #2c2620;
    margin: 2.2em 0 0.7em;
    padding-bottom: 0.4rem; border-bottom: 1px solid #e7dcc8;
}
.sog-garden-single__body h3 {
    font-family: "Zen Old Mincho", serif; font-weight: 500;
    font-size: 1rem; color: #2c2620; margin: 1.8em 0 0.5em;
}
.sog-garden-single__body img {
    display: block; max-width: 100%; height: auto;
    margin: 2rem auto; border-radius: 6px;
}
.sog-garden-single__body figure { margin: 2rem 0; }
.sog-garden-single__body figcaption {
    font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
    font-size: 0.72rem; color: #8a7f70;
    text-align: center; margin-top: 0.5rem; letter-spacing: 0.04em;
}
.sog-garden-single__body a { color: #d5167a; text-underline-offset: 0.18em; }
.sog-garden-single__body blockquote {
    border-left: 3px solid #e7dcc8; margin: 1.8rem 0;
    padding: 0.5rem 0 0.5rem 1.4rem; color: #5b5147; font-style: italic;
}

/* Tags */
.sog-garden-single__tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 2.5rem; padding-top: 1.4rem;
    border-top: 1px solid #e7dcc8;
}
.sog-garden-single__tag {
    font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
    font-size: 0.66rem; letter-spacing: 0.08em; color: #5b5147;
    border: 1px solid #d8ccb6; padding: 0.3em 0.75em;
    text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.sog-garden-single__tag:hover { border-color: #5b5147; color: #2c2620; }

/* entry-navigation */
body.sog-garden-page .entry-navigation {
    max-width: 720px; margin: 2rem auto 0;
    padding: 1.5rem clamp(1.1rem, 4vw, 1.6rem) 3rem;
    border-top: 1px solid #e7dcc8;
}
body.sog-garden-page .entry-navigation p {
    font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
    font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: #8a7f70; margin: 0 0 0.4rem;
}
body.sog-garden-page .entry-navigation a {
    font-family: "Zen Old Mincho", serif; font-weight: 500;
    font-size: clamp(1rem, 2.4vw, 1.35rem); line-height: 1.55;
    color: #2c2620; text-decoration: none; transition: color 0.2s;
}
body.sog-garden-page .entry-navigation a:hover { color: #d5167a; }

/* =====================================================================
   Mobile
   ===================================================================== */
@media (max-width: 600px) {
    .garden-grid { grid-template-columns: 1fr; }
    .sog-garden-single__hero { height: clamp(260px, 45vw, 360px); }
    .garden-featured-thumbnail { aspect-ratio: 4 / 3; }
}
