/* Garden Fetch
   A calm, earthy look for a gardening blog: warm parchment, forest and sage
   greens, a terracotta accent, and serif headings. System fonts only (no
   web font requests). Responsive, with dark mode and reduced-motion support.
   Every color is a token below, so a redesign starts here. */

:root {
    --paper: #f7f3ea;          /* page background */
    --panel: #fffdf8;          /* cards */
    --panel-alt: #eef0e4;      /* tinted sections */
    --ink: #22281f;
    --muted: #5f6858;
    --rule: #d9d3c3;
    --soft-rule: #e8e3d6;
    --brand: #2f4a35;          /* forest green */
    --brand-ink: #ffffff;
    --brand-soft: #dfe8d6;     /* sage wash */
    --sage: #7f9a73;
    --accent: #b85c38;         /* terracotta */
    --accent-soft: #f4e1d6;
    --link: #2f6b3f;
    --link-hover: #b85c38;
    --highlight: #f6e7a8;
    --success: #e1efd9;
    --info: #e4ecef;
    --danger: #f6dcd6;
    --danger-ink: #a2321c;
    --shadow: 0 1px 2px rgba(34, 40, 31, 0.06), 0 6px 20px rgba(34, 40, 31, 0.06);

    /* hero illustration */
    --sun: #f2c45a;
    --hill-back: #b9cba6;
    --hill-front: #8fab7f;
    --stem: #4f6e45;
    --leaf: #5d8a52;
    --bloom: #e08a64;
    --bloom-center: #f6d27a;
    --leaf-vein: #f7f3ea;

    --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius: 12px;
    --radius-small: 8px;
    --measure: 46rem;
    --wide: 72rem;
    --gutter: 16px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #161b15;
        --panel: #1f261d;
        --panel-alt: #232c21;
        --ink: #e9ecdf;
        --muted: #a9b29f;
        --rule: #36412f;
        --soft-rule: #2b3427;
        --brand: #8fb98a;
        --brand-ink: #10160f;
        --brand-soft: #2a3826;
        --sage: #8fa884;
        --accent: #e0916c;
        --accent-soft: #3a2a22;
        --link: #a4d39c;
        --link-hover: #f0a882;
        --highlight: #5a4d1c;
        --success: #233a22;
        --info: #1f2c31;
        --danger: #45231c;
        --danger-ink: #ffab98;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
        --sun: #d9a945;
        --hill-back: #3c5236;
        --hill-front: #2f4529;
        --stem: #6f9563;
        --leaf: #7fae72;
        --bloom: #d97f5a;
        --bloom-center: #e8c56a;
        --leaf-vein: #161b15;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --paper: #161b15;
    --panel: #1f261d;
    --ink: #e9ecdf;
    --muted: #a9b29f;
    --rule: #36412f;
    --brand: #8fb98a;
    --brand-ink: #10160f;
    --link: #a4d39c;
    color-scheme: dark;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
}

::selection {
    background: var(--highlight);
}

img {
    max-width: 100%;
    height: auto;
}

.wrapper {
    width: 100%;
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: var(--gutter);
    top: 8px;
    z-index: 10;
    background: var(--panel);
    color: var(--ink);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-small);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Type */

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    margin: 2rem 0 0.75rem;
    color: var(--ink);
}

h1 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.25rem;
}

p, ul, ol {
    margin: 0 0 1rem;
}

a {
    color: var(--link);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--link-hover);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 2rem 0;
}

code, pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

code {
    background: var(--panel-alt);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

pre {
    background: var(--panel-alt);
    padding: 1rem;
    border-radius: var(--radius-small);
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

blockquote {
    margin: 1.5rem 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 4px solid var(--sage);
    color: var(--muted);
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

th, td {
    text-align: left;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

th {
    font-weight: 600;
    background: var(--panel-alt);
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage);
}

.eyebrow a {
    color: inherit;
}

.lede {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 40rem;
}

.post-meta, .meta {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
}

.hint {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Buttons */

.btn, button, .button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid var(--brand);
    background: transparent;
    color: var(--brand);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn:visited {
    color: var(--brand);
}

.btn:hover, button:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.btn-primary, button.primary, button.btn-primary, .btn-primary:visited {
    background: var(--brand);
    color: var(--brand-ink);
}

.btn-primary:hover, button.primary:hover, button.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-small {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.btn.is-disabled, button:disabled {
    opacity: 0.45;
    cursor: default;
}

/* Header */

.site-header {
    background: var(--panel);
    border-bottom: 1px solid var(--rule);
}

.header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1.5rem;
    padding-top: 1.1rem;
    padding-bottom: 0.6rem;
}

.site-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--brand);
}

.site-title:hover {
    color: var(--brand);
}

.logo-mark {
    flex: none;
    color: var(--sage);
}

.site-title .logo-mark {
    width: 38px;
    height: 38px;
}

.site-title-text {
    font-family: var(--font-head);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--brand);
}

.site-title-text span {
    color: var(--accent);
}

.site-tagline {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.site-nav {
    border-top: 1px solid var(--soft-rule);
}

.nav-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
}

.site-nav a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.nav-search {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex: 1 1 14rem;
    max-width: 20rem;
}

.nav-search input[type="search"] {
    margin: 0;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

/* Main */

main {
    padding: 1.5rem 0 3rem;
}

main > .wrapper:not(.wrapper-wide) {
    max-width: var(--wide);
}

.intro {
    margin: 1rem 0 2rem;
    max-width: var(--measure);
}

.intro h1 {
    margin-top: 0.25rem;
}

.prose, .legal {
    max-width: var(--measure);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2.5rem 0 1.25rem;
}

.section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.empty-state {
    padding: 1.25rem 1.5rem;
    background: var(--panel-alt);
    border-radius: var(--radius);
    color: var(--muted);
}

/* Home hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    margin: 0.5rem 0 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(135deg, var(--brand-soft), var(--panel-alt));
    border-radius: calc(var(--radius) * 1.5);
}

.hero h1 {
    margin-top: 0.4rem;
    color: var(--brand);
}

.hero .lede {
    color: var(--ink);
    opacity: 0.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 0;
}

.hero-art svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

@media (max-width: 720px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-art {
        order: -1;
        max-width: 260px;
    }
}

.topic-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin: 0 0 1rem;
}

.topic-tile {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1.1rem 1.25rem;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.topic-tile:hover {
    color: var(--ink);
    border-color: var(--sage);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.topic-tile strong {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--brand);
}

.topic-tile span:last-child {
    font-size: 0.9rem;
    color: var(--muted);
}

.topic-icon {
    color: var(--accent);
    margin-bottom: 0.35rem;
}

/* Post lists */

.post-grid, .post-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    gap: 1.25rem;
}

.post-list {
    display: grid;
    gap: 1rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
}

.post-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.post-card-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--panel-alt);
    overflow: hidden;
}

.post-card-thumb .cover-thumb {
    width: 100%;
    height: 100%;
}

.post-card-noimg {
    display: grid;
    place-items: center;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-soft), var(--panel-alt));
}

.post-card-noimg .logo-mark {
    width: 52px;
    height: 52px;
    opacity: 0.7;
}

.post-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.15rem 1.15rem;
}

.post-card h3 {
    margin: 0.2rem 0 0.5rem;
    font-size: 1.2rem;
}

.post-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.post-card p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.post-card .post-meta {
    margin-top: auto;
}

.post-card .tag-list {
    margin-top: 0.6rem;
}

/* Search and other single-column lists put the thumbnail beside the text. */
.post-list .post-card {
    flex-direction: row;
}

.post-list .post-card-thumb {
    flex: none;
    width: 9.5rem;
    aspect-ratio: auto;
    min-height: 100%;
}

@media (max-width: 560px) {
    .post-list .post-card-thumb {
        width: 6rem;
    }
}

.cover-thumb {
    display: block;
    object-fit: cover;
    object-position: calc(50% + var(--thumb-x, 0%)) calc(50% + var(--thumb-y, 0%));
}

.pick-badge, .new-badge {
    color: var(--accent);
}

.search-snippet mark {
    background: var(--highlight);
    color: inherit;
    padding: 0 0.1em;
    border-radius: 3px;
}

/* Tags */

.tag-list, .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.tag {
    display: inline-block;
    padding: 0.15rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    text-decoration: none;
}

.tag:hover {
    background: var(--brand);
    color: var(--brand-ink);
}

.tag-cloud .tag {
    font-size: 0.92rem;
    padding: 0.3rem 0.8rem;
}

.tag-count {
    opacity: 0.65;
    font-weight: 400;
}

/* Pagination */

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 2.5rem;
}

.page-numbers {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-numbers .btn {
    min-width: 2.4rem;
    justify-content: center;
    padding: 0.5rem 0.7rem;
}

.btn.page-current {
    background: var(--brand);
    color: var(--brand-ink);
}

.page-gap {
    align-self: center;
    color: var(--muted);
}

/* Cards */

.card {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 0 0 2rem;
}

.card > h2:first-child, .card > div > h2:first-child {
    margin-top: 0;
    font-size: 1.35rem;
}

.card > :last-child {
    margin-bottom: 0;
}

.faq details {
    border-top: 1px solid var(--soft-rule);
    padding: 0.75rem 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
}

.faq details p {
    margin: 0.6rem 0 0;
    color: var(--muted);
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50% 0;
    background: var(--sage);
}

.not-found {
    max-width: var(--measure);
    margin: 2rem auto;
    text-align: center;
}

.not-found h1 {
    margin-top: 0.5rem;
}

/* Newsletter */

.subscribe-card {
    background: linear-gradient(135deg, var(--brand-soft), var(--panel));
    border-color: transparent;
}

.subscribe-compact {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--brand-soft);
    border-radius: var(--radius);
}

.subscribe-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.subscribe-icon {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-ink);
    flex: none;
}

.subscribe-name, .post-body .subscribe-name {
    margin: 0;
    font-size: 1.3rem;
}

.subscribe-pitch {
    color: var(--muted);
    max-width: 38rem;
}

.subscribe-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subscribe-row input[type="email"] {
    flex: 1 1 14rem;
    margin: 0;
    border-radius: 999px;
}

.subscribe-form .field {
    margin-bottom: 0;
}

/* Forms */

label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], input[type="file"], textarea, select {
    display: block;
    width: 100%;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    background: var(--panel);
    border: 1.5px solid var(--rule);
    border-radius: var(--radius-small);
    padding: 0.6rem 0.8rem;
    margin-top: 0.3rem;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--sage);
    outline: 3px solid color-mix(in srgb, var(--sage) 30%, transparent);
    outline-offset: 0;
}

textarea {
    min-height: 9rem;
    resize: vertical;
}

input.is-danger, textarea.is-danger, input[aria-invalid="true"] {
    border-color: var(--danger-ink);
}

.field {
    margin-bottom: 1rem;
}

.help.is-danger, .field-error, .form-error-text {
    color: var(--danger-ink);
    font-size: 0.88rem;
    margin: -0.6rem 0 1rem;
}

.subscribe-form .help.is-danger {
    margin: 0.4rem 0 0;
}

/* Honeypot field: hidden from people, visible to naive bots */
.bt {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.disclaimer-text {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    margin: 0.75rem 0 0;
}

.notification {
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-small);
}

.notification p:last-child {
    margin-bottom: 0;
}

.notification.is-success { background: var(--success); }
.notification.is-info { background: var(--info); }
.notification.is-danger { background: var(--danger); color: var(--danger-ink); }
.is-hidden, [hidden] { display: none !important; }

.flash {
    padding: 0.6rem 1rem;
    background: var(--success);
    border-radius: var(--radius-small);
}

/* Post page */

.wrapper-wide {
    max-width: var(--wide);
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 960px) {
    .post-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.post-main {
    max-width: var(--measure);
}

.post-header h1 {
    margin: 0.3rem 0 0.75rem;
}

.post-header .lede {
    margin-bottom: 0.75rem;
}

.byline a {
    color: inherit;
}

.post-body {
    font-size: 1.06rem;
}

.post-body h2 {
    margin-top: 2.5rem;
}

.post-body li {
    margin-bottom: 0.35rem;
}

.post-body img {
    border-radius: var(--radius-small);
}

.author-note {
    margin: 1.5rem 0 2rem;
    padding: 1rem 1.25rem;
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-style: italic;
}

.author-note p {
    margin: 0;
}

.author-note .author-note-sign {
    margin-top: 0.4rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.88rem;
    color: var(--muted);
}

.post-image {
    margin: 1.5rem 0 2rem;
}

.post-image img {
    display: block;
    width: 100%;
    border-radius: var(--radius);
}

.post-image.post-cover img {
    max-height: 34rem;
    object-fit: cover;
}

.post-image figcaption {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.post-image .image-caption {
    color: var(--ink);
}

.post-image figcaption a, .image-credit a {
    color: inherit;
}

.post-image-inline {
    display: inline;
    max-height: 1.5em;
    width: auto;
    vertical-align: middle;
}

.image-credit {
    color: var(--muted);
}

.preview-banner {
    padding: 0.6rem 1rem;
    background: var(--highlight);
    border-radius: var(--radius-small);
    font-weight: 600;
}

.post-back {
    margin-top: 2rem;
}

.share-bar {
    margin: 2.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

.share-bar h2 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.6rem;
}

.share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.share-btn {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid var(--rule);
    background: var(--panel);
    color: var(--brand);
}

.share-btn:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.share-btn svg {
    width: 1.15rem;
    height: 1.15rem;
}

.share-status {
    font-size: 0.85rem;
    color: var(--muted);
    min-height: 1.3em;
    margin: 0.4rem 0 0;
}

.more-posts h2 {
    font-size: 1.15rem;
}

.more-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.more-posts-list li + li {
    border-top: 1px solid var(--soft-rule);
}

.more-post {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0;
    text-decoration: none;
    color: var(--ink);
}

.more-post .cover-thumb, .more-post-noimg {
    flex: none;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: var(--radius-small);
}

.more-post-noimg {
    display: grid;
    place-items: center;
    background: var(--brand-soft);
}

.more-post-noimg .logo-mark {
    width: 26px;
    height: 26px;
}

.more-post-text {
    display: flex;
    flex-direction: column;
}

.more-post-type {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage);
}

.more-post-title {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.3;
}

.more-post:hover .more-post-title {
    color: var(--brand);
    text-decoration: underline;
}

/* Media embeds (embeds.go). Video players fill the post width at their own
   aspect ratio and wait for a click; audio players load at a fixed height. */

.embed {
    margin: 0 0 2rem;
}

.embed-vertical {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.embed-frame {
    position: relative;
    height: 0;
    overflow: hidden;
    background: #1d2a1b;
    border-radius: var(--radius);
}

.embed-frame > .embed-play,
.embed-frame > .embed-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-play,
.embed-play:visited {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: #eef3e6;
    background: radial-gradient(circle at 30% 20%, #3f5f3a, #1d2a1b 70%);
}

.embed-play:hover, .embed-play:focus-visible {
    color: #fff;
}

.embed-play-icon {
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    font-size: 1.6rem;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s;
}

.embed-play:hover .embed-play-icon {
    transform: scale(1.06);
}

.embed-play-label {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
}

.embed-play-note {
    font-size: 0.78rem;
    opacity: 0.8;
}

.embed-audio {
    display: block;
    width: 100%;
    border: 0;
    border-radius: var(--radius-small);
}

.embed figcaption {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.embed figcaption a {
    color: inherit;
}

/* Search */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 34rem;
}

.search-form input[type="search"] {
    margin: 0;
    border-radius: 999px;
}

.search-summary {
    margin-top: 1rem;
    color: var(--muted);
}

/* Topics index */

.tag-group h2 {
    font-size: 1.3rem;
}

/* About */

.who-runs-this {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.author-photo {
    flex: none;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer */

.site-footer {
    background: var(--brand);
    color: color-mix(in srgb, var(--brand-ink) 85%, transparent);
    padding: 2.5rem 0 1.5rem;
    font-size: 0.92rem;
}

.site-footer a {
    color: var(--brand-ink);
}

.site-footer a:hover {
    color: var(--highlight);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
}

@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-ink);
    margin-bottom: 0.5rem;
}

.footer-title .logo-mark {
    color: var(--brand-ink);
    --leaf-vein: var(--brand);
    width: 26px;
    height: 26px;
}

.footer-blurb {
    max-width: 26rem;
}

.footer-heading {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--brand-ink);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.3rem;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.last-updated {
    font-size: 0.85rem;
    opacity: 0.8;
}

.wander {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin: 2rem 0 0;
    padding: 1rem 0;
    border-top: 1px solid color-mix(in srgb, var(--brand-ink) 20%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-ink) 20%, transparent);
}

.wander a {
    font-weight: 600;
    text-decoration: none;
}

.wander .is-disabled {
    opacity: 0.45;
}

.copyright {
    margin: 1.25rem 0 0;
    font-size: 0.8rem;
    opacity: 0.75;
    text-align: center;
}

/* Admin (pages under /admin keep their own inline styles for layout) */

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
}

.admin-nav a {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.admin-nav a:hover {
    background: var(--brand-soft);
}

.admin-nav a.active {
    background: var(--brand);
    color: var(--brand-ink);
}

.admin-nav form {
    margin: 0 0 0 auto;
}

.status {
    display: inline-block;
    padding: 0.05rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--panel-alt);
}

.status-published { background: var(--success); }
.status-draft { background: var(--highlight); }
.status-rejected { background: var(--danger); color: var(--danger-ink); }

.login-form {
    max-width: 24rem;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }

    .post-card:hover, .topic-tile:hover {
        transform: none;
    }
}
