/* Externalized CSS from writings_index.shtml; site-specific style preserved. */
:root { --forest:#294a35; --olive:#a3a375; --paper:#faf8ee; --bronze:#986b47; }
* { box-sizing:border-box; }
body { margin:0; background:var(--olive); color:#26382c; font:16px/1.6 Georgia,serif; }
a { color:var(--forest); }
a:focus-visible { outline:3px solid var(--bronze); outline-offset:3px; }
.page { max-width:1400px; margin:auto; padding:22px 18px; display:grid; grid-template-columns:minmax(180px,24%) minmax(0,1fr); gap:25px; }
.sidebar { position:sticky; top:18px; align-self:start; background:#f5f2e2; border:1px solid #aeb69e; border-radius:15px; padding:17px; }
.sidebar img { display:block; width:100%; height:auto; border-radius:6px; }
nav h2 { font-size:1.1rem; margin:16px 0 5px; }
nav a { display:block; border-bottom:1px solid #cbd1bc; padding:7px 3px; text-decoration:none; font:600 .94rem Arial,sans-serif; }
nav a:hover { color:#8d4c2d; text-decoration:underline; }
main { min-width:0; }
.hero { padding:26px 22px; border:1px solid #b5bca9; border-radius:18px; text-align:center; background:var(--paper); box-shadow:0 6px 20px #23362318; }
.site-title { margin:0 0 12px; font-size:clamp(1.25rem,3vw,2rem); }
.hero img { display:block; width:70%; max-width:550px; height:auto; margin:0 auto; }
h1 { margin:12px 0 4px; font-size:clamp(1.5rem,3vw,2.3rem); line-height:1.25; }
.flourish { width:90px; height:3px; background:var(--bronze); border-radius:2px; margin:18px auto 0; }
.section-title { margin:24px 0 14px; font-size:1.2rem; }
.cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.card { background:var(--paper); border:1px solid #aeb69e; border-radius:14px; overflow:hidden; box-shadow:0 5px 15px #23362317; display:flex; flex-direction:column; }
.card-top { background:linear-gradient(100deg,#294a35,#68826a); padding:12px 20px; color:#fff2df; font-size:1.1rem; }
.card-image-link { display:block; background:#ebe9da; overflow:hidden; }
.card-image { display:block; width:100%; height:250px; object-fit:cover; }
.card-image--portrait { object-fit:contain; background:#e9e7dc; }
.card-image-link:hover .card-image { filter:brightness(1.04); }
.card-content { padding:21px; display:flex; flex-direction:column; flex:1; }
.card-type { text-transform:uppercase; letter-spacing:.14em; font:700 .72rem Arial,sans-serif; color:#8b6447; margin:0 0 10px; }
.card h3 { margin:0 0 24px; font-size:clamp(1.2rem,2vw,1.55rem); line-height:1.35; }
.read { align-self:flex-start; margin-top:auto; padding:10px 16px; border-radius:7px; background:var(--forest); color:#fff; text-decoration:none; font:600 .92rem Arial,sans-serif; }
.read:hover { background:#835537; color:#fff; }
.bottom { max-width:1400px; margin:0 auto; padding:0 18px; }
.bottom img { max-width:100%; height:auto; }
@media (max-width:760px) { .page { grid-template-columns:1fr; padding:14px; gap:16px; } .sidebar { position:static; text-align:center; } .sidebar img { max-width:230px; margin:auto; } nav a { display:inline-block; border:1px solid #cbd1bc; border-radius:6px; padding:8px; margin:3px; } .hero img { width:85%; } }
@media (max-width:560px) { .cards { grid-template-columns:1fr; } .card-image { height:270px; } .hero { padding:18px 12px; } }

/* Compatibility with site.css: preserve the original Writings navigation. */
.sidebar nav a { border-bottom:1px solid #cbd1bc; padding:7px 3px; text-decoration:none; font:600 .94rem Arial,sans-serif; }
.sidebar nav a:hover { color:#8d4c2d; text-decoration:underline; }
@media (max-width:760px) { .sidebar nav { display:block; } .sidebar nav a { display:inline-block; border:1px solid #cbd1bc; border-radius:6px; padding:8px; margin:3px; } }

/* Shared article and recipe styling for pages in /other_writings/.
   Scoped to body.writings-detail so the index cards stay unchanged. */
body.writings-detail { --writing-olive: #a3a375; --writing-cream: #f7efd9; --writing-text: #263428; --writing-border: #b7a77d; }
body.writings-detail { margin: 0; background: var(--writing-olive); color: var(--writing-text); font-family: Georgia, "Times New Roman", serif; line-height: 1.65; }
body.writings-detail .page { max-width: 1400px; margin: 0 auto; padding: 18px; display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 24px; align-items: start; }
body.writings-detail .page > .sidebar { min-width: 0; position: sticky; top: 18px; background: #e5e2c9; border: 2px solid #788361; border-radius: 14px; padding: 13px; box-shadow: 0 5px 18px #293e2520; }
body.writings-detail .page > .sidebar .sidebar-image { display: block; max-width: 100%; width: 100%; height: auto; border-radius: 7px; }
body.writings-detail .content-panel { min-width: 0; border-radius: 16px; padding: clamp(16px, 3vw, 35px); background: var(--writing-cream); border: 1px solid var(--writing-border); box-shadow: 0 6px 22px #48372524; overflow-wrap: anywhere; }
body.writings-detail .content-panel a { color: #6d3428; }
body.writings-detail .content-panel a:hover { color: #31563b; }
body.writings-detail .article-header { text-align: center; margin-bottom: 24px; }
body.writings-detail .article-header h1 { line-height: 1.2; color: #304b3b; margin: 8px auto 18px; }
body.writings-detail .content-panel img { max-width: 100%; height: auto; }
body.writings-detail .site-wordmark { display: block; width: min(40%, 440px); margin: 10px auto 22px; }
body.writings-detail .story-article { font-size: 1.08rem; line-height: 1.75; }
body.writings-detail .story-article > header { margin-bottom: 22px; }
body.writings-detail .story-article > header img { display: block; width: min(80%, 760px); height: auto; margin: 12px auto; }
body.writings-detail .story-article p { margin: 1em 0; }
body.writings-detail .site-footer { max-width: 1400px; margin: 0 auto; padding: 0 18px 25px; }
body.writings-detail .recipe-banner { width: 50%; height: auto; }
body.writings-detail .byline { text-align: center; margin-bottom: 1.5rem; }
body.writings-detail .recipe-article { line-height: 1.6; overflow-wrap: break-word; }
body.writings-detail .recipe-article p { margin: 1em 0; }
body.writings-detail .ingredients { display: flow-root; margin: 1.2rem 0; }
body.writings-detail .ingredients-photo { float: left; width: 28%; max-width: 230px; min-width: 130px; height: auto; margin: 0 25px 25px 0; border-radius: 12px; }
body.writings-detail ul.recipe { color: #174917; font-style: italic; padding-left: 1.5rem; }
body.writings-detail ul.recipe li { margin-bottom: 0.3rem; }
body.writings-detail .recipe-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 1.4rem auto; }
body.writings-detail .recipe-gallery figure { min-width: 0; margin: 0; text-align: center; }
body.writings-detail .recipe-gallery img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 12px; }
body.writings-detail .recipe-gallery figcaption { padding: 0.45rem 0.25rem 0; font-size: 0.94rem; line-height: 1.4; }
body.writings-detail .recipe-gallery.single { grid-template-columns: minmax(0, 340px); justify-content: center; }
@media (max-width: 850px) {
body.writings-detail .recipe-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
body.writings-detail .page { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 16px; }
body.writings-detail .page > .sidebar { position: static; }
body.writings-detail .page > .sidebar .sidebar-image { max-width: 210px; margin: auto; }
body.writings-detail .recipe-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.writings-detail .recipe-banner { width: min(100%, 420px); }
body.writings-detail .site-wordmark { width: min(75%, 340px); }
}
@media (max-width: 420px) {
body.writings-detail .recipe-gallery { grid-template-columns: minmax(0, 1fr); }
body.writings-detail .ingredients-photo { float: none; display: block; width: 100%; max-width: 270px; margin: 0 auto 12px; }
}
