/* ================================================
   FULL DESIGN STATE (Section 1)
   All conventions active
   ================================================ */

* {
    transition: none !important;
}

body {
    margin: 0;
    background-color: #f5f2ee;
    color: #2a2620;
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.75;
}

.section {
    min-height: 100vh;
    padding: 60px 40px;
}

.section-minimum {
    min-height: 40vh;
}

.grid {
    display: grid;
    grid-template-columns: 25% 70%;
    gap: 0 5%;
    max-width: 1100px;
    margin: 0 auto;
}

.sidebar {
    padding-top: 10px;
}

.toc {
    background-color: #e8e2d8;
    padding: 20px;
    border-radius: 2px;
}

.toc ol {
    list-style-position: inside;
    padding-left: 0;
}

.toc li {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    line-height: 2;
    color: #6a5a4a;
}

.toc s {
    opacity: 0.4;
}

.toc strong {
    color: #2a2620;
}

.content {
    max-width: 70ch;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: #2a2620;
    margin-bottom: 24px;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    color: #2a2620;
    margin-bottom: 20px;
}

p {
    margin-bottom: 16px;
}

code {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    background-color: #e0dcd4;
    padding: 2px 6px;
    border-radius: 2px;
}

em {
    font-style: italic;
}

.section-rule {
    border: none;
    height: 1px;
    background-color: #6a5a4a;
    opacity: 0.3;
    max-width: 1100px;
    margin: 0 auto;
}

/* ================================================
   REMOVE: COLOR (body.no-color)
   ================================================ */
body.no-color {
    background-color: #ffffff;
    color: #000000;
}

body.no-color .toc {
    background-color: transparent;
}

body.no-color .toc li {
    color: #000000;
}

body.no-color .toc strong {
    color: #000000;
}

body.no-color h1,
body.no-color h2 {
    color: #000000;
}

body.no-color code {
    background-color: transparent;
    color: #000000;
}

body.no-color .section-rule {
    background-color: #000000;
    opacity: 0.2;
}

/* ================================================
   REMOVE: LAYOUT (body.no-layout)
   ================================================ */
body.no-layout {
    margin: 8px;
}

body.no-layout .section {
    padding: 0;
    min-height: auto;
    margin-bottom: 40px;
}

body.no-layout .grid {
    display: block;
    max-width: none;
}

body.no-layout .sidebar {
    margin-bottom: 20px;
}

body.no-layout .content {
    max-width: none;
}

body.no-layout .section-rule {
    max-width: none;
    margin: 20px 0;
}

/* ================================================
   REMOVE: CUSTOM TYPOGRAPHY (body.no-typography)
   ================================================ */
body.no-typography {
    font-family: serif !important;
    font-size: initial !important;
    line-height: normal !important;
}

body.no-typography h1,
body.no-typography h2 {
    font-family: serif !important;
    font-weight: bold !important;
    font-size: revert !important;
    letter-spacing: normal !important;
}

body.no-typography p {
    font-family: serif !important;
    font-size: initial !important;
    line-height: normal !important;
}

body.no-typography code {
    font-family: monospace !important;
    font-size: initial !important;
}

body.no-typography .toc li {
    font-family: serif !important;
    font-size: initial !important;
    line-height: normal !important;
}

/* ================================================
   REMOVE: DECORATION (body.no-decoration)
   ================================================ */
body.no-decoration .sidebar {
    display: none !important;
}

body.no-decoration .toc {
    display: none !important;
}

body.no-decoration .section-rule {
    display: none !important;
}

body.no-decoration ol,
body.no-decoration ul {
    display: none !important;
}

/* ================================================
   REMOVE: SEMANTIC STRUCTURE (body.no-structure)
   ================================================ */
body.no-structure h1,
body.no-structure h2 {
    font-size: initial !important;
    font-weight: normal !important;
    display: none !important;
}

body.no-structure strong {
    font-weight: normal !important;
}

body.no-structure em {
    font-style: normal !important;
}
