.blog-site { background: var(--cream); }
.editor-content-field { display: grid; gap: 10px; }
.content-field-heading { display: grid; gap: 5px; }
.editor-form .content-field-heading label { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.content-mode { display: inline-flex; width: max-content; max-width: 100%; padding: 3px; border: 1px solid var(--line); background: var(--paper); }
.content-mode-button { min-height: 36px; padding: 7px 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; }
.content-mode-button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.editor-form textarea.html-code-editor { min-height: 360px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; line-height: 1.6; tab-size: 2; }
.html-preview { display: grid; justify-items: start; gap: 12px; }
.html-preview[hidden], .html-preview-frame[hidden] { display: none; }
.html-preview-frame { width: 100%; min-height: 420px; border: 1px solid var(--line); background: #fff; }
.blog-site .site-header { position: relative; top: auto; background: var(--cream); }
.blog-site .brand-logo { filter: none; }
.blog-site .nav a[aria-current='page'] { border-color: var(--terracotta); }
.blog-site .header-actions .nav-cta { color: var(--ink); border-color: var(--ink); }
.blog-site .header-actions .nav-cta:hover { color: #fff; background: var(--ink); }
.blog-hero { position: relative; overflow: hidden; padding: 120px 0 115px; color: #fffdf8; background: var(--ink); }
.blog-hero::before { position: absolute; top: -280px; right: -90px; width: 650px; height: 650px; border-radius: 50%; background: #647568; opacity: .58; content: ''; }
.blog-hero::after { position: absolute; bottom: -230px; left: 38%; width: 460px; height: 460px; border-radius: 50%; background: #d9aaa5; opacity: .22; content: ''; }
.blog-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 8vw; }
.blog-hero .eyebrow { color: #d7e1d4; }
.blog-hero h1 { max-width: 760px; font-size: clamp(3.3rem, 7.5vw, 6.8rem); }
.blog-hero .lede { color: #d3dbd4; }
.blog-hero-mark { display: grid; align-content: end; justify-items: end; min-height: 220px; padding: 25px; border: 1px solid rgba(255,255,255,.35); border-radius: 50% 50% 24px 24px; text-align: right; }
.blog-hero-mark span { align-self: start; color: #f0c4bb; font-size: .8rem; font-weight: 700; letter-spacing: .15em; }
.blog-hero-mark strong { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.blog-shell { padding-top: 95px; }
.blog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.blog-toolbar .eyebrow { margin-bottom: 8px; }
.blog-count { margin: 0; color: var(--muted); font-size: .9rem; }
.blog-search { display: flex; gap: 8px; width: min(100%, 380px); }
.blog-search input { min-width: 0; flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; }
.blog-search .button { min-height: 44px; padding-inline: 18px; background: transparent; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0 42px; }
.blog-filters a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.blog-filters a:hover, .blog-filters a.is-active { color: #fff; border-color: var(--ink); background: var(--ink); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 22px; }
.post-card { min-width: 0; }
.post-card-media { display: grid; min-height: 260px; overflow: hidden; border-radius: 27px; background: var(--sage); }
.post-card-media img { height: 100%; min-height: 260px; object-fit: cover; transition: transform .55s ease; }
.post-card:hover .post-card-media img { transform: scale(1.035); }
.post-card-media--placeholder { place-items: center; padding: 20px; color: #fffdf8; background: var(--terracotta); font-size: 1.2rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; text-align: center; }
.post-card-copy { padding: 20px 5px 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.post-meta span { color: var(--terracotta); }
.post-card h2 { margin-top: 14px; font-size: clamp(1.75rem, 2.4vw, 2.55rem); }
.post-card h2 a:hover { color: var(--terracotta); }
.post-card-copy > p { margin: 15px 0 20px; color: var(--muted); }
.post-card-copy .small-link { display: inline-block; }
.blog-empty { max-width: 650px; padding: 85px 0 120px; }
.blog-empty h2 { margin-top: 12px; }
.blog-empty p:not(.eyebrow) { color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 65px; }
.pagination a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; font-size: .82rem; font-weight: 700; }
.pagination a:hover, .pagination a[aria-current='page'] { color: #fff; border-color: var(--ink); background: var(--ink); }
.post-article-head { padding: 92px 0 55px; background: #ebe4da; }
.narrow { width: min(760px, 90vw); margin-inline: auto; }
.back-link { display: inline-block; margin-bottom: 45px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.back-link:hover { color: var(--terracotta); }
.post-article-head h1 { max-width: 760px; margin-top: 18px; font-size: clamp(3rem, 7vw, 6.2rem); }
.post-dek { max-width: 650px; margin: 27px 0 0; color: var(--muted); font-size: 1.15rem; }
.post-cover { width: min(1100px, 90vw); margin: 0 auto; padding-top: 55px; }
.post-cover img { max-height: 600px; border-radius: 30px; object-fit: cover; }
.post-content { padding-top: 65px; padding-bottom: 115px; font-size: 1.08rem; }
.post-content p { margin: 0 0 1.45em; color: #48564f; }
.post-content h1, .post-content h2, .post-content h3 { margin: 1.8em 0 .65em; }
.post-content h2 { font-size: 2.4rem; }.post-content h3 { font-size: 1.8rem; }
.post-content ul { margin: 0 0 1.45em; padding-left: 1.25em; color: #48564f; }
.post-content li { margin: .4em 0; padding-left: .3em; }
.post-content blockquote { margin: 1.8em 0; padding: 18px 24px; border-left: 3px solid var(--terracotta); color: var(--muted); background: #eee7de; font-size: 1em; line-height: 1.65; }
.post-content code { padding: .12em .35em; border-radius: 4px; background: #e9e4dc; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }
.post-content pre { overflow-x: auto; margin: 1.8em 0; padding: 20px; border-radius: 12px; color: #f8f3eb; background: var(--ink); }
.post-content pre code { padding: 0; color: inherit; background: transparent; }
.blog-footer { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Admin */
.admin-site { min-height: 100vh; background: var(--cream); color: var(--ink); }
.admin-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; min-height: 78px; padding: 18px 5vw; border-bottom: 1px solid var(--line); background: var(--paper); }
.admin-brand { display: inline-flex; align-items: center; gap: 16px; font-size: .8rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.admin-brand-wordmark { display: grid; gap: 2px; }
.admin-brand-wordmark strong { font-size: 1.15rem; line-height: 1.1; }
.admin-brand-wordmark small { font-size: .625rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.admin-brand-label { padding-left: 16px; border-left: 1px solid var(--line); font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; }
.admin-header nav { display: flex; flex: 1 1 630px; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 22px; min-width: 0; font-size: .84rem; font-weight: 700; }.admin-header nav a, .admin-header nav form { white-space: nowrap; }.admin-header nav a[aria-current='page'] { color: var(--terracotta); text-decoration: underline; text-underline-offset: 5px; }.admin-header nav a:hover, .admin-header nav .logout-link:hover { color: var(--terracotta); }.admin-header nav form { margin: 0; }.admin-header nav .logout-link { padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: inherit; font-weight: inherit; }
.admin-main { width: min(1180px, 90vw); margin: 0 auto; padding: 80px 0 110px; }
.admin-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 30px; margin-bottom: 32px; }.admin-heading > div { min-width: 0; }.admin-heading h1 { font-size: 2.6rem; line-height: 1.12; letter-spacing: 0; overflow-wrap: anywhere; }.admin-heading .eyebrow { margin-bottom: 12px; }.admin-heading .back-link { margin: 0; }.admin-heading .button { flex-shrink: 0; }
.notice, .form-error { margin: 0 0 24px; padding: 14px 17px; border: 1px solid #b8cab8; background: #e8f0e5; color: #31543a; }.form-error { border-color: #d2aaa0; background: #f6e8e3; color: #713f35; }.form-error ul { margin: 0; padding-left: 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 45px; background: var(--line); }.admin-stats div { display: grid; gap: 5px; padding: 24px; background: var(--paper); }.admin-stats strong { font-size: 2.4rem; font-weight: 600; }.admin-stats span { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-table-wrap { position: relative; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }.admin-table th, .admin-table td { padding: 17px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }.admin-table th { color: var(--muted); font-size: .72rem; letter-spacing: 0; text-transform: uppercase; }.admin-table tr:last-child td { border-bottom: 0; }.admin-table td strong, .admin-table td small { display: block; }.admin-table td small { margin-top: 4px; color: var(--muted); font-size: .75rem; }.admin-table .table-title-cell { width: 48%; min-width: 230px; max-width: 470px; }.admin-table .table-date-cell { white-space: nowrap; }.admin-table .table-actions-cell { width: 1%; text-align: right; white-space: nowrap; }.admin-table--posts { min-width: 880px; }.admin-table--categories { min-width: 560px; }.table-empty { padding: 45px 20px !important; color: var(--muted); text-align: center !important; }.status { display: inline-block; padding: 6px 9px; border-radius: 4px; font-size: .7rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }.status--published { color: #31543a; background: #dcebd8; }.status--draft { color: #6d5c3e; background: #eee5cf; }.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-height: 36px; }.table-actions form { display: flex; align-items: center; margin: 0; }.table-actions a, .table-actions button { display: inline-flex; align-items: center; min-height: 36px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; white-space: nowrap; }.table-actions a:hover, .table-actions button:hover { color: var(--terracotta); }.table-action-note { color: var(--muted); font-size: .75rem; }
.admin-table--posts { min-width: 1040px; }
.admin-table--posts :is(th, td):first-child { width: auto; min-width: 340px; }
.admin-table--posts :is(th, td):nth-child(2) { width: 160px; min-width: 160px; }
.admin-table--posts :is(th, td):nth-child(3) { width: 110px; min-width: 110px; }
.admin-table--posts :is(th, td):nth-child(4) { width: 135px; min-width: 135px; }
.admin-table--posts :is(th, td):nth-child(5) { width: 205px; min-width: 205px; }
.admin-table--posts th { white-space: nowrap; }
.category-add-card { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }.inline-form { display: flex; align-items: end; gap: 14px; }.inline-form label { display: grid; flex: 1; gap: 8px; min-width: 0; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }.inline-form input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.editor-form { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 45px; }.editor-main, .editor-side { display: grid; align-content: start; gap: 24px; }.editor-form label, .stack-form label { display: grid; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }.editor-form small { color: var(--muted); font-size: .75rem; font-weight: 400; letter-spacing: 0; text-transform: none; }.editor-form input, .editor-form textarea, .editor-form select, .stack-form input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; }.editor-form textarea { resize: vertical; line-height: 1.65; }.editor-form .button { justify-self: start; }.editor-cover { width: 100%; max-height: 180px; border-radius: 16px; object-fit: cover; }.current-cover { margin: -17px 0 0; color: var(--muted); font-size: .75rem; }
.auth-card { width: min(540px, 90vw); margin: 90px auto 130px; padding: clamp(28px, 6vw, 56px); border: 1px solid var(--line); background: var(--paper); }.auth-card h1 { margin-top: 12px; font-size: clamp(2.7rem, 6vw, 4.6rem); }.auth-intro { margin: 22px 0 30px; color: var(--muted); }.stack-form { display: grid; gap: 20px; }.stack-form .button { margin-top: 8px; }.auth-foot { margin: 28px 0 0; color: var(--muted); font-size: .82rem; }.auth-foot a:hover { color: var(--terracotta); }

/* Catalog and shared link management */
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.admin-toolbar p { margin: 0; color: var(--muted); font-size: .9rem; }
.admin-filter-form { display: flex; flex: 1; flex-wrap: wrap; align-items: end; gap: 12px; min-width: 0; margin: 0; }
.admin-filter-form label { display: grid; flex: 1 1 140px; gap: 8px; min-width: 0; color: var(--muted); font-size: .78rem; font-weight: 700; }
.admin-filter-form label:first-of-type { flex: 2 1 220px; }
.admin-filter-form .button { flex-shrink: 0; }
.admin-form { display: grid; gap: 28px; margin: 0; }
.form-section { min-width: 0; margin: 0; padding: 0 0 28px; border: 0; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h2, .form-section legend { margin: 0 0 20px; padding: 0; color: var(--ink); font-family: inherit; font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.form-section > p { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form-field { display: grid; align-content: start; gap: 8px; min-width: 0; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: 0; }
.form-field > label { color: var(--muted); font-size: .8rem; font-weight: 700; }
.form-field--wide { grid-column: 1 / -1; }
:is(.admin-form, .admin-filter-form, .settings-table) :is(input:not([type='checkbox']):not([type='hidden']), select, textarea), .order-input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); font: inherit; font-size: .95rem; line-height: 1.4; letter-spacing: 0; text-transform: none; }
:is(.admin-form, .admin-filter-form, .settings-table) :is(input, select, textarea):focus-visible, .order-input:focus-visible, .inline-form input:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.admin-form textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.form-actions .button { min-height: 44px; }
.form-actions .back-link, .admin-filter-form .back-link { margin: 0; }
.field-help { display: block; margin: 0; color: var(--muted); font-size: .8rem; font-weight: 400; line-height: 1.55; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.checkbox-field { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .88rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.checkbox-field input[type='checkbox'] { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.upload-field { display: grid; align-content: start; gap: 10px; min-width: 0; }
.upload-field input[type='file'] { max-width: 100%; padding: 9px; font-size: .85rem; }
.upload-field input[type='file']::file-selector-button { margin-right: 12px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; }
.product-preview { display: block; width: min(100%, 360px); height: 260px; margin: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; object-fit: contain; }
.product-preview--empty { display: grid; place-items: center; padding: 20px; color: var(--muted); font-size: .9rem; }
.product-thumb { display: block; flex: 0 0 64px; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 4px; background: #fff; object-fit: contain; }
.product-summary { display: flex; align-items: center; gap: 14px; min-width: 230px; }
.product-summary > div { min-width: 0; overflow-wrap: anywhere; }
.admin-table--products { min-width: 900px; }
.admin-table--products td:first-child { width: 43%; max-width: 430px; }
.admin-table--products .order-input, .settings-table .order-input { width: 76px; }
.settings-table { min-width: 840px; }
.settings-table input[type='url'] { min-width: 260px; }
.settings-table .checkbox-field { white-space: nowrap; }
.settings-table .field-help { margin-top: 6px; }
.admin-form > .admin-table-wrap + .form-actions { margin-top: 0; }
@media (max-width: 850px) { .blog-hero-grid, .editor-form { grid-template-columns: 1fr; }.blog-hero-mark { width: min(300px, 100%); min-height: 170px; justify-self: start; }.post-grid { grid-template-columns: repeat(2, 1fr); }.editor-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }.editor-side .button, .editor-side .editor-cover, .editor-side .current-cover { grid-column: 1 / -1; } }
@media (max-width: 650px) { .blog-hero { padding: 75px 0 80px; }.blog-hero-grid { gap: 40px; }.blog-toolbar { display: block; }.blog-search { margin-top: 22px; width: 100%; }.post-grid { grid-template-columns: 1fr; gap: 38px; }.post-card-media, .post-card-media img { min-height: 280px; }.post-article-head { padding: 65px 0 40px; }.post-cover { padding-top: 30px; }.post-content { padding-top: 42px; }.admin-header { align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px 5vw; }.admin-header nav { flex: 0 1 auto; justify-content: flex-start; width: 100%; gap: 12px 16px; }.admin-main { padding-top: 40px; }.admin-heading { align-items: flex-start; flex-direction: column; }.admin-heading h1 { font-size: 2rem; }.admin-stats { grid-template-columns: 1fr; }.editor-side { grid-template-columns: 1fr; }.editor-side .button, .editor-side .editor-cover, .editor-side .current-cover { grid-column: auto; }.inline-form { align-items: stretch; flex-direction: column; }.inline-form .button { align-self: start; }.form-grid { grid-template-columns: minmax(0, 1fr); }.form-field--wide { grid-column: auto; }.admin-toolbar { align-items: stretch; flex-direction: column; }.admin-filter-form { flex: 0 1 auto; width: 100%; }.admin-filter-form label { flex-basis: 135px; }.admin-filter-form label:first-of-type { flex-basis: 100%; }.admin-table th, .admin-table td { padding: 14px 16px; } }
