:root { color-scheme: light; --ink: #23312e; --muted: #65726d; --line: #e4e9e5; --accent: #b54b24; --paper: #fff; --soft: #f6f8f5; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 10; padding: 8px 16px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 88px; padding: 16px 40px; background: #fffffffa; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 14px; align-items: center; color: var(--ink); text-decoration: none; line-height: 1.3; }
.brand strong { display: block; font-size: 20px; letter-spacing: -.6px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--ink); color: white; font-size: 15px; font-weight: 750; letter-spacing: -1px; }
.brand-caption { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.shopify-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lock-guide button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: white; font-size: 12px; cursor: pointer; }
.password-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--soft); }
.password-card { width: min(100%, 440px); padding: 40px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 12px 40px #23312e08; }
.password-card .brand-mark { margin-bottom: 24px; }
.password-card h1 { font-size: 30px; letter-spacing: -1px; line-height: 1.2; margin: 12px 0 18px; }
.password-card p { color: var(--muted); font-size: 14px; }
.password-card label { display: block; font-size: 13px; font-weight: 600; margin: 24px 0 8px; }
.password-card input[type=password] { width: 100%; padding: 10px 12px; border: 1px solid #cfd7d1; border-radius: 6px; }
.password-submit { width: 100%; padding: 11px 16px; margin-top: 16px; border: 0; border-radius: 6px; background: var(--ink); color: white; font-size: 14px; font-weight: 600; cursor: pointer; }
.password-card .password-error { padding: 12px; background: #fcf5ef; border-left: 3px solid var(--accent); color: #983b1a; }
.password-card .password-footer { font-size: 11px; margin-top: 30px; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 780px) 200px; justify-content: center; max-width: 1500px; margin: auto; }
.sidebar { position: sticky; top: 88px; align-self: start; height: calc(100vh - 88px); padding: 38px 24px; border-right: 1px solid var(--line); overflow: auto; }
.topic-menu summary { font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); cursor: pointer; }
.topic-menu-content { padding-top: 22px; }
.search-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
#topic-search { width: 100%; min-width: 0; padding: 8px 10px; margin-bottom: 20px; border: 1px solid #cfd7d1; border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 13px; }
.topic-link { display: flex; align-items: baseline; gap: 10px; padding: 11px 10px; margin: 3px -10px; border-radius: 6px; font-size: 14px; color: #485650; text-decoration: none; line-height: 1.45; }
.topic-link:hover { background: var(--soft); }
.topic-link.is-current { background: #faeee7; color: #983b1a; font-weight: 650; }
.topic-number { flex-shrink: 0; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.search-status { font-size: 12px; color: var(--muted); }
.sidebar-note { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 20px; }
.sidebar-note p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.eyebrow { font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 650; color: var(--muted); }
.guide-main { min-width: 0; padding: 38px 48px 24px; }
.page-context { display: flex; gap: 10px; color: var(--muted); font-size: 11px; margin-bottom: 30px; }
.guide-article h1 { font-size: clamp(30px, 3.2vw, 43px); line-height: 1.16; letter-spacing: -1.6px; font-weight: 650; margin: 0 0 24px; }
.guide-article h2 { margin: 42px 0 16px; font-size: 24px; line-height: 1.3; letter-spacing: -.6px; font-weight: 650; }
.guide-article h3 { margin: 28px 0 12px; font-size: 18px; line-height: 1.4; }
.guide-article p { margin: 0 0 20px; }
.guide-article > p:first-of-type { font-size: 17px; color: #526159; }
.guide-article ul, .guide-article ol { padding-left: 24px; margin-bottom: 24px; }
.guide-article li { padding-left: 5px; margin-bottom: 8px; }
.guide-article li::marker { color: var(--accent); font-weight: 600; }
.guide-article strong { font-weight: 650; }
.guide-article blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: #fcf5ef; border-radius: 0 6px 6px 0; }
.guide-article blockquote p:last-child { margin-bottom: 0; }
.guide-article img { max-width: 100%; height: auto; border-radius: 8px; }
.guide-article table { border-collapse: collapse; width: 100%; font-size: 14px; }
.guide-article th, .guide-article td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.topics-section { margin-top: 36px; }
.topic-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.topic-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.topic-card:hover { border-color: #c69a83; background: #fdfbf8; }
.topic-card h3 { margin: 12px 0; font-size: 19px; }
.topic-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.card-action { margin-top: auto; font-size: 12px; font-weight: 650; color: var(--accent); }
.page-outline { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 88px); overflow: auto; padding: 43px 20px 20px 8px; }
.page-outline nav { margin-top: 16px; border-left: 1px solid var(--line); }
.page-outline a { display: block; padding: 7px 14px; color: var(--muted); text-decoration: none; font-size: 12px; line-height: 1.5; }
.page-outline a:hover { color: var(--accent); }
.page-pagination { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 48px; }
.page-pagination a { color: var(--ink); text-decoration: none; max-width: 48%; }
.page-pagination span { display: block; font-size: 11px; color: var(--muted); }
.page-pagination strong { font-size: 13px; font-weight: 600; }
.next-topic { text-align: right; margin-left: auto; }
.guide-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; font-size: 10px; color: var(--muted); }
@media (max-width: 1200px) { .guide-layout { grid-template-columns: 235px minmax(0, 780px); } .page-outline { display: none; } }
@media (max-width: 760px) {
    .site-header { padding: 14px 20px; min-height: 76px; }
    .brand strong { font-size: 18px; }
    .shopify-link { font-size: 11px; max-width: 100px; text-align: right; }
    .header-actions { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
    .guide-layout { display: block; }
    .sidebar { position: static; height: auto; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); background: var(--soft); }
    .sidebar-note { display: none; }
    .guide-main { padding: 28px 22px 22px; }
    .page-context { margin-bottom: 24px; }
    .topic-cards { grid-template-columns: 1fr; }
    .guide-article h1 { letter-spacing: -1px; }
    html { scroll-padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .sidebar, .page-outline, .page-pagination { display: none; } .guide-layout { display: block; } .guide-main { padding: 0; } .topic-card, blockquote { break-inside: avoid; } }
