/* ==========================================================================
   Fawnoos — blog skin
   Loads after bootstrap, clean-blog, assets/blog.css and css/site.css, and
   carries the lantern theme across the blog index, posts, topics, /posts and
   the standing pages. Nothing here changes markup the JavaScript depends on:
   .blogpost, .d-none, .masthead, .title, .meta, .tagcloud06, .card, .filter,
   .highlight and the ad containers all keep their contracts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Retune the tokens assets/blog.css already reads from
   -------------------------------------------------------------------------- */
:root {
    --theme-color-bg: #e8890c;
    --theme-color-border: rgba(232, 137, 12, .45);
    --theme-color-bg-hover: #ff5f2e;
    --theme-color-code: #ffc46b;
    --tagcloud-bg-color: rgba(232, 137, 12, .14);
    --fms-badge-color: #e8890c;
    --fms-badge-text-color: #180f04;
}

/* --------------------------------------------------------------------------
   2. Page ground
   -------------------------------------------------------------------------- */
body {
    background: var(--ink-900);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.78;
    font-weight: 350;
    text-align: left;
}

.page {
    position: relative;
    z-index: 1;
}

main {
    display: block;
}

a {
    color: var(--ember-300);
}

a:hover {
    color: var(--ember-200);
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 137, 12, .34), rgba(255, 255, 255, .1), transparent);
    margin: clamp(30px, 4vw, 48px) 0;
}

/* Bootstrap's containers are narrower than the design's; keep one measure. */
.post-shell {
    padding-top: clamp(34px, 4.5vw, 62px);
    padding-bottom: clamp(48px, 6vw, 90px);
}

.post-shell>.mx-auto,
.blogcontainer {
    width: 100%;
}

/* --------------------------------------------------------------------------
   3. Masthead
   -------------------------------------------------------------------------- */
header.masthead {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(58vh, 460px);
    max-height: none;
    margin-bottom: 0;
    padding: calc(var(--header-h) + 48px) 0 clamp(38px, 5vw, 64px);
    background-position: 60% center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--ink-850);
    overflow: hidden;
    isolation: isolate;
    /* assets/js/scripts.js lifts this to 0 after 900ms; the starting value stays
       mild so the photograph still reads if that script never runs. */
    filter: grayscale(.35);
    transition: filter 1.6s var(--ease);
}

header.masthead--post {
    min-height: min(52vh, 400px);
}

.masthead__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1100px 620px at 22% 62%, rgba(5, 6, 10, .90) 0%, rgba(5, 6, 10, .70) 34%, rgba(5, 6, 10, .30) 62%, transparent 80%),
        linear-gradient(180deg, rgba(5, 6, 10, .82) 0%, rgba(5, 6, 10, .34) 32%, rgba(5, 6, 10, .72) 76%, var(--ink-900) 100%);
}

header.masthead .container {
    position: relative;
}

.masthead__rule {
    display: block;
    width: 56px;
    height: 1px;
    margin-bottom: 22px;
    background: linear-gradient(90deg, var(--ember), transparent);
    box-shadow: 0 0 12px rgba(232, 137, 12, .8);
}

.post-heading {
    max-width: 62ch;
}

header.masthead .title,
.title {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144;
    font-weight: 400;
    font-size: clamp(1.85rem, 3.9vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -.022em;
    color: var(--paper);
    max-width: none;
    text-align: left;
    text-wrap: balance;
    text-shadow: 0 16px 50px rgba(0, 0, 0, .6);
    margin: 0;
}

.title__mark {
    height: 1em;
    width: auto;
    display: inline;
    vertical-align: baseline;
    opacity: .9;
}

.title .fa-rss,
.meta .fa-rss {
    color: var(--ember);
    font-size: .5em;
    vertical-align: super;
}

.post-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-variation-settings: "opsz" 40;
    font-size: clamp(1rem, 1.5vw, 1.24rem);
    line-height: 1.5;
    font-weight: 400;
    color: rgba(236, 232, 225, .74);
    margin: 18px 0 0;
}

header.masthead .post-heading .meta,
.meta {
    display: block;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--faint);
}

.meta a {
    color: var(--muted);
}

.meta .reading-time {
    color: var(--ember);
}

.masthead__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.post-heading .tagcloud06 {
    display: block;
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn,
.btn-warning {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 13px 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .4s var(--ease), color .3s;
}

.btn-warning {
    color: #180f04;
    background: linear-gradient(120deg, var(--ember-300), var(--ember) 52%, var(--flame));
    background-size: 200% 100%;
    border: 0;
    box-shadow: 0 14px 38px -16px rgba(232, 137, 12, .85);
}

.btn-warning:hover,
.btn-warning:focus {
    color: #180f04;
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 20px 48px -16px rgba(232, 137, 12, 1);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 10px;
}

#tagsbutton {
    color: var(--ember-200);
    background: rgba(232, 137, 12, .08);
    border: 1px solid rgba(232, 137, 12, .4);
    box-shadow: none;
}

#tagsbutton:hover {
    color: var(--ember-200);
    background: rgba(232, 137, 12, .16);
    box-shadow: none;
}

.post-pager {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: clamp(34px, 4vw, 54px);
}

.post-pager .float-left,
.post-pager .float-right {
    float: none !important;
}

.post-pager .float-right {
    margin-left: auto;
}

/* --------------------------------------------------------------------------
   5. Post cards (blog index and the topics page build the same markup)
   -------------------------------------------------------------------------- */
.card-deck {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 26px);
    margin: 0 0 clamp(18px, 2.2vw, 26px);
    padding-top: 0 !important;
}

.card,
.card-deck .card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: clamp(24px, 2.6vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    overflow: hidden;
    transition: transform .55s var(--ease-out), border-color .45s var(--ease), background .45s var(--ease), box-shadow .55s var(--ease-out);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 137, 12, .34);
    background: var(--glass-hover);
    box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .95), 0 0 44px -22px rgba(232, 137, 12, .55);
    border-width: 1px;
}

.card>span {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    text-align: left !important;
}

/* The topics page injects an inline min-height on the title; neutralise it so
   both card sources line up. */
.card .card-title {
    min-height: 0 !important;
    order: 2;
    margin: 0;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 40;
    font-size: 1.24rem;
    line-height: 1.26;
    letter-spacing: -.012em;
    font-weight: 400;
}

.card .post-meta {
    order: 1;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ember);
}

.card .post-meta .reading-time {
    color: var(--faint);
}

.card .tagcloud06 {
    order: 4;
    margin-top: auto;
    padding-top: 6px;
}

.card .card-text {
    order: 3;
    margin: 0;
}

.card .card-text:empty {
    display: none;
}

/* The summary heading is hoisted out of <p class="card-text"> by the parser,
   so it needs its own place in the order. */
.card>span>.card-body>.post-subtitle,
.card .post-subtitle {
    order: 3;
}

.card .card-text .post-subtitle,
.card .post-subtitle {
    margin: 0;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: .93rem;
    line-height: 1.72;
    color: var(--muted);
}

a.post-preview-link {
    color: var(--text);
    background-image: linear-gradient(var(--ember), var(--ember));
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .5s var(--ease-out), color .35s;
}

.card:hover a.post-preview-link {
    background-size: 100% 1px;
    color: var(--ember-200);
}

@media (max-width: 1024px) {
    .card-deck {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .card-deck {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   6. Tag chips
   -------------------------------------------------------------------------- */
.tagcloud06 ul li {
    margin: 0 .35em .4em 0;
}

.tagcloud06 ul li a {
    height: auto;
    line-height: 1;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(232, 137, 12, .28);
    background-color: var(--tagcloud-bg-color);
    color: var(--ember-300);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: all .35s var(--ease-out);
}

.tagcloud06 ul li a:hover {
    color: #180f04;
    background: linear-gradient(135deg, var(--ember-300), var(--ember));
    border-color: transparent;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. Post body
   -------------------------------------------------------------------------- */
.blogcontainer {
    display: block;
    max-width: 78ch;
    margin-inline: auto;
}

.blogpost {
    font-size: 1.02rem;
    line-height: 1.82;
    color: rgba(236, 232, 225, .82);
}

.blogpost h1,
.blogpost h2,
.blogpost h3,
.blogpost h4 {
    color: var(--paper);
    margin: 1.9em 0 .55em;
    letter-spacing: -.016em;
}

.blogpost h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.blogpost h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

.blogpost h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
}

.blogpost h4 {
    font-size: 1.12rem;
}

.blogpost p {
    margin: 0 0 1.3em;
}

.blogpost ul,
.blogpost ol {
    margin: 0 0 1.4em;
    padding-left: 1.4em;
}

.blogpost li {
    margin-bottom: .5em;
}

.blogpost li::marker {
    color: var(--ember);
}

.blogpost strong {
    color: var(--text);
    font-weight: 600;
}

.blogpost img,
.blogcontainer .blogpost p img {
    opacity: .86;
    border-style: none;
    border-radius: 16px;
    box-shadow: 0 0 0 1px var(--line), 0 26px 60px -34px rgba(0, 0, 0, .95);
}

.blogpost img:hover {
    opacity: 1;
}

.image-wrapper {
    margin: 1.8em 0;
}

/* Anchor links added by anchor.min.js */
.blogpost .anchorjs-link {
    color: var(--ember) !important;
    text-decoration: none !important;
    opacity: .55;
}

.blogpost h1:hover .anchorjs-link,
.blogpost h2:hover .anchorjs-link,
.blogpost h3:hover .anchorjs-link,
.blogpost h4:hover .anchorjs-link {
    opacity: 1;
}

blockquote {
    color: var(--ember-200);
    font-family: var(--font-display);
    font-style: italic;
    font-variation-settings: "opsz" 48;
    font-size: clamp(1.1rem, 1.8vw, 1.34rem);
    line-height: 1.5;
    width: auto;
    margin: 1.8em 0;
    padding: 4px 0 4px 24px;
    border-left: 2px solid var(--ember);
    background: linear-gradient(90deg, rgba(232, 137, 12, .07), transparent 60%);
}

blockquote>p {
    margin: 0;
}

table {
    width: 100%;
    margin: 1.6em 0;
    border-collapse: collapse;
    font-size: .93rem;
}

.blogpost table th,
.blogpost table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.blogpost table th {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ember);
}

/* --------------------------------------------------------------------------
   8. Code
   -------------------------------------------------------------------------- */
code {
    color: var(--ember-200);
    font-family: var(--font-mono);
    font-size: .88em;
}

code.highlighter-rouge {
    color: var(--theme-color-code);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(232, 137, 12, .2);
    background: rgba(232, 137, 12, .08);
}

div.highlight,
.xml-code-block {
    position: relative;
    margin: 1.5em 0;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #0a0f16;
    box-shadow: 0 24px 60px -38px rgba(0, 0, 0, .95);
}

.highlight {
    background-color: transparent;
}

pre,
pre.highlight {
    font-family: var(--font-mono);
    font-size: .86rem;
    line-height: 1.68;
    padding: 22px 20px;
    margin: 0;
    overflow-x: auto;
}

.div-code-button {
    position: relative;
}

.btn-copy-code {
    position: absolute;
    right: 12px;
    top: 12px;
    margin-top: 0;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(232, 137, 12, .32);
    background: rgba(232, 137, 12, .12);
    color: var(--ember-200);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    transition: all .3s var(--ease);
}

.btn-copy-code:hover {
    color: #180f04;
    background: linear-gradient(135deg, var(--ember-300), var(--ember));
    border-color: transparent;
}

.xml-code-block {
    padding-left: 0;
}

/* --------------------------------------------------------------------------
   9. Alerts (blog.js prepends the emoji)
   -------------------------------------------------------------------------- */
.alert {
    margin: 1.6em 0;
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--glass);
    color: var(--text);
    font-size: .96rem;
}

.alert strong {
    color: var(--paper);
}

.alert-info {
    border-color: rgba(90, 160, 230, .32);
    background: rgba(90, 160, 230, .08);
}

.alert-warning {
    border-color: rgba(232, 137, 12, .38);
    background: rgba(232, 137, 12, .09);
}

.alert-success {
    border-color: rgba(90, 200, 130, .32);
    background: rgba(90, 200, 130, .08);
}

.emoji {
    margin-right: 6px;
}

/* --------------------------------------------------------------------------
   10. /posts listing
   -------------------------------------------------------------------------- */
.page-prose {
    max-width: 78ch;
    margin-inline: auto;
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(236, 232, 225, .82);
}

.page-prose h1,
.page-prose h2,
.page-prose h3 {
    color: var(--paper);
    margin: 1.7em 0 .5em;
}

.page-prose a {
    color: var(--ember-300);
}

article.post-preview {
    padding: clamp(22px, 2.6vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
    margin-bottom: 18px;
    transition: transform .5s var(--ease-out), border-color .4s var(--ease), background .4s var(--ease);
}

article.post-preview:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 137, 12, .32);
    background: var(--glass-hover);
}

article.post-preview a {
    color: inherit;
}

article.post-preview .post-title {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 60;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    line-height: 1.24;
    letter-spacing: -.016em;
    color: var(--text);
    margin: 0 0 10px;
    transition: color .35s var(--ease);
}

article.post-preview:hover .post-title {
    color: var(--ember-200);
}

article.post-preview .post-subtitle {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: .96rem;
    color: var(--muted);
    margin: 0;
}

article.post-preview .post-meta {
    display: block;
    margin: 14px 0 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--faint);
}

.page-prose>hr {
    display: none;
}

/* --------------------------------------------------------------------------
   11. Topics page picker (filter-multi-select)
   -------------------------------------------------------------------------- */
.tagpicker {
    margin-top: 28px;
    max-width: 560px;
}

.filter-multi-select>.viewbar {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-family: var(--font-sans);
}

.filter-multi-select>.viewbar>.selected-items>.item {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding-left: .8em;
}

.filter-multi-select>.dropdown-menu {
    border-radius: 16px;
    border: 1px solid var(--line);
    background-color: var(--ink-700);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95);
    color: var(--text);
}

.filter-multi-select .dropdown-item {
    color: var(--muted);
}

.filter-multi-select .dropdown-item:hover,
.filter-multi-select .dropdown-item:focus {
    background-color: rgba(232, 137, 12, .1);
    color: var(--text);
}

.filter-multi-select .dropdown-item .custom-control-label::before {
    background-color: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .22);
}

.filter-multi-select>.dropdown-menu>.filter>input {
    width: calc(100% - 2rem);
    margin: 0 1rem .5rem;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
}

#clearButton {
    color: var(--ember);
}

/* --------------------------------------------------------------------------
   12. Search dialog (jQuery UI)
   -------------------------------------------------------------------------- */
.ui-widget-overlay {
    background: rgba(5, 6, 10, .7);
    opacity: 1;
}

.ui-dialog {
    font-family: var(--font-sans);
    font-size: 1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--ink-800);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95);
    overflow: hidden;
    padding: 0;
}

.ui-dialog .ui-dialog-titlebar {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--paper);
    font-family: var(--font-display);
    padding: 16px 20px;
}

.ui-dialog .ui-dialog-content,
.ui-dialog .ui-dialog-buttonpane {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.ui-dialog #tipue_search_input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-size: 1rem;
}

.ui-dialog #tipue_search_input:focus {
    outline: none;
    border-color: rgba(232, 137, 12, .55);
    box-shadow: 0 0 0 4px rgba(232, 137, 12, .1);
}

#searchForm span {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--faint);
}

.ui-dialog .ui-button {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    color: var(--text);
}

#tipue_search_content {
    color: var(--text);
}

.tipue_search_content_title a {
    color: var(--ember-300);
}

.tipue_search_content_url a {
    color: var(--faint);
}

/* --------------------------------------------------------------------------
   13. Subscription form
   -------------------------------------------------------------------------- */
.followit-subscribe-wrapper {
    margin: clamp(28px, 3.5vw, 44px) auto;
}

.followit--follow-form-container {
    max-width: 460px;
}

.followit-subscribe-toggle {
    border: 1px solid rgba(232, 137, 12, .42);
    border-radius: 999px;
    background: rgba(232, 137, 12, .08);
    color: var(--ember-300);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 12px 22px;
}

.followit-subscribe-toggle:hover {
    color: #180f04;
    background: linear-gradient(135deg, var(--ember-300), var(--ember));
    border-color: transparent;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview {
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;
    background: var(--glass) !important;
    box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .95) !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-heading h5 {
    font-family: var(--font-display) !important;
    font-variation-settings: "opsz" 40;
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    color: var(--paper) !important;
    text-align: center;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-input-field input {
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    background-color: rgba(255, 255, 255, .04) !important;
    color: var(--text) !important;
    font-family: var(--font-sans) !important;
    height: 46px !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-input-field input::placeholder {
    color: var(--faint) !important;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .form-preview .preview-submit-button button {
    height: 46px !important;
    border-radius: 999px !important;
    color: #180f04;
    background: linear-gradient(120deg, var(--ember-300), var(--ember) 52%, var(--flame));
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.followit--follow-form-container[attr-a][attr-b][attr-c][attr-d][attr-e][attr-f] .powered-by-line {
    color: var(--faint) !important;
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    letter-spacing: .1em;
}

/* --------------------------------------------------------------------------
   14. Contact block inside a post
   -------------------------------------------------------------------------- */
#contact-section-header {
    display: block;
}

.contact--inpost {
    padding-block: clamp(30px, 4vw, 48px);
    background: none;
}

.contact--inpost .container {
    padding-inline: 0;
}

#blogpost-contactus-section {
    display: block;
}

/* Floating "Contact Us" button */
#fabcontactus .contact100-form-btn {
    border-radius: 999px;
    padding: 14px 24px;
    color: #180f04;
    background: linear-gradient(120deg, var(--ember-300), var(--ember) 52%, var(--flame));
    border: 0;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    box-shadow: 0 16px 40px -14px rgba(232, 137, 12, .9);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   15. Ad slots — visible, contained, never fighting the surface
   -------------------------------------------------------------------------- */
.ad-slot,
#adscode {
    border-radius: var(--radius);
    overflow: hidden;
}

.ad-slot {
    margin-block: clamp(34px, 4vw, 56px);
    padding: 12px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, .02);
}

/* --------------------------------------------------------------------------
   16. 404
   -------------------------------------------------------------------------- */
.error-page {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: calc(var(--header-h) + 60px) 0 80px;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.error-page__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
}

.error-page__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(80% 70% at 50% 50%, rgba(5, 6, 10, .72), rgba(5, 6, 10, .92) 70%),
        linear-gradient(180deg, rgba(5, 6, 10, .7), var(--ink-900));
}

.error-page__body h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    color: var(--paper);
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.error-page__body div {
    color: var(--muted);
}

.error-page__body .btn {
    margin-top: 26px;
}

/* --------------------------------------------------------------------------
   17. Odds and ends
   -------------------------------------------------------------------------- */
.logo {
    width: auto;
}

.actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(34px, 4vw, 54px);
}

.row {
    display: flex;
}

@media (max-width: 1500px) {
    .row {
        display: flex;
    }
}

@media print {

    .masthead,
    .ad-slot,
    .followit-subscribe-wrapper,
    #fabcontactus {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   18. Clean Blog overrides
   assets/main.css (the Start Bootstrap "Clean Blog" build) ships a light
   theme, an id-level navbar rule and two !important background sizes. These
   are the only places it out-specifies the theme above, so they are undone
   here rather than by sprinkling !important through the file.
   -------------------------------------------------------------------------- */

/* The shared header carries id="mainNav" so the search dialog can anchor to
   it; neutralise Clean Blog's own navbar treatment and its scroll classes. */
#mainNav,
#mainNav.is-fixed,
#mainNav.is-visible {
    position: static !important;
    top: auto !important;
    transform: none !important;
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    transition: none !important;
    font-family: var(--font-sans);
}

/* Full-bleed masthead photography instead of the 49%-wide right-hand crop. */
header.masthead {
    background-size: cover !important;
    background-position-x: 60%;
}

@media only screen and (max-width: 1300px) {
    header.masthead {
        background-size: cover !important;
    }
}

header.masthead .post-heading,
header.masthead .page-heading,
header.masthead .site-heading {
    height: auto;
    top: 0;
    padding: 0;
    max-width: 62ch;
    color: var(--text);
    text-align: left;
}

header.masthead .post-heading h1,
header.masthead .post-heading h1.title,
header.masthead .page-heading h1 {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144;
    font-weight: 400;
    font-size: clamp(1.85rem, 3.9vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -.022em;
    color: var(--paper);
    margin: 0;
}

header.masthead .post-heading .meta {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--faint);
    line-height: 1.9;
}

header.masthead .post-heading .meta a {
    color: var(--muted);
}

/* Clean Blog paints every card with a blue gradient. */
div.card:not(.presentation) {
    background-image: var(--glass);
}

div.card:not(.presentation):hover {
    background-image: var(--glass-hover);
}

/* /posts listing */
article.post-preview>a,
article.post-preview>a:hover,
article.post-preview>a:focus {
    color: inherit;
    text-decoration: none;
}

article.post-preview>a>.post-title {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 60;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    line-height: 1.24;
    letter-spacing: -.016em;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 10px;
}

article.post-preview>a>.post-subtitle {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: .96rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
}

article.post-preview>.post-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    font-style: normal;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--faint);
    margin-top: 14px;
}

article.post-preview>.post-meta>a {
    color: var(--ember);
}

/* Clean Blog's global paragraph rhythm is built for a 20px serif body. */
.blogpost p,
.page-prose p,
.card p {
    line-height: inherit;
    margin: 0 0 1.3em;
}

.blogpost p a,
.page-prose p a {
    text-decoration: none;
    box-shadow: inset 0 -1px 0 0 rgba(232, 137, 12, .38);
}

.blogpost p a:hover,
.page-prose p a:hover {
    box-shadow: inset 0 -2px 0 0 var(--ember);
}

/* --------------------------------------------------------------------------
   19. Standing pages: /terms, /rulebook, /privacy
   -------------------------------------------------------------------------- */
.page-shell {
    width: 100%;
    max-width: 1020px;
    margin-inline: auto;
}

/* Long-form standing pages keep a comfortable reading measure. */
#rulebook,
#privacy .container,
.page-prose-section .container {
    max-width: 78ch;
    margin-inline: auto;
    padding-inline: 0;
}

#rulebook,
#privacy {
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(236, 232, 225, .82);
}

#rulebook h1,
#rulebook h2,
#rulebook h3,
#privacy h2,
#privacy h3 {
    color: var(--paper);
    margin: 1.8em 0 .5em;
}

/* --------------------------------------------------------------------------
   20. /terms — engagement models and the clause list
   -------------------------------------------------------------------------- */
#terms {
    max-width: none;
}

.terms__lead {
    max-width: 70ch;
    margin: 0 0 clamp(34px, 4.5vw, 52px);
    font-size: clamp(1.04rem, 1.5vw, 1.18rem);
    line-height: 1.72;
    color: var(--muted);
}

.terms__lead a {
    color: var(--ember-300);
    box-shadow: inset 0 -1px 0 0 rgba(232, 137, 12, .38);
}

.terms__lead a:hover {
    box-shadow: inset 0 -2px 0 0 var(--ember);
}

/* --- the two engagement models (Bootstrap tabs, dressed as cards) --------- */
.terms__models {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
}

.terms__models .nav-item {
    display: flex;
    margin: 0;
}

.model-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: clamp(24px, 2.8vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--glass);
    color: var(--text);
    overflow: hidden;
    transition: transform .5s var(--ease-out), border-color .4s var(--ease), background .4s var(--ease), box-shadow .5s var(--ease-out);
}

.model-card:hover,
.model-card:focus {
    color: var(--text);
    transform: translateY(-4px);
    border-color: rgba(232, 137, 12, .34);
    background: var(--glass-hover);
    box-shadow: 0 28px 62px -34px rgba(0, 0, 0, .95);
}

.model-card.active {
    border-color: rgba(232, 137, 12, .55);
    background:
        radial-gradient(110% 90% at 10% 0%, rgba(232, 137, 12, .13), transparent 62%),
        var(--glass-hover);
    box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .95), 0 0 46px -24px rgba(232, 137, 12, .8);
}

/* A hairline that lights up on the selected model. */
.model-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--flame), var(--ember), var(--ember-300));
    opacity: 0;
    transition: opacity .4s var(--ease);
}

.model-card.active::before {
    opacity: 1;
}

.model-card__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--ember-300);
    border: 1px solid rgba(232, 137, 12, .28);
    background: radial-gradient(120% 120% at 30% 0%, rgba(232, 137, 12, .2), rgba(232, 137, 12, .04));
    transition: color .4s var(--ease), box-shadow .5s var(--ease-out);
}

.model-card__icon svg {
    width: 21px;
    height: 21px;
}

.model-card.active .model-card__icon {
    color: var(--ember-200);
    box-shadow: 0 0 30px -6px rgba(232, 137, 12, .6);
}

.model-card__name {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 48;
    font-size: clamp(1.24rem, 1.9vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: -.014em;
    color: var(--paper);
}

.model-card__body {
    font-size: .95rem;
    line-height: 1.72;
    color: var(--muted);
}

.model-card__body strong {
    color: var(--text);
    font-weight: 600;
}

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

/* --- the clause list ------------------------------------------------------ */
.tab-content {
    margin-top: clamp(38px, 5vw, 62px);
}

.clauses {
    counter-reset: clause;
    list-style: none;
    margin: 0;
    padding: 0 0 0 clamp(38px, 5vw, 58px);
    border-left: 1px solid var(--line);
    max-width: 78ch;
}

.clause {
    counter-increment: clause;
    position: relative;
    padding-bottom: clamp(34px, 4vw, 46px);
}

.clause:last-child {
    padding-bottom: 0;
}

/* Numbered marker sitting on the spine. */
.clause::before {
    content: counter(clause, decimal-leading-zero);
    position: absolute;
    top: 1px;
    left: calc(-1 * clamp(38px, 5vw, 58px) - 1px);
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--ink-850);
    color: rgba(236, 232, 225, .5);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .04em;
    transition: color .4s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease-out);
}

.clause:hover::before {
    color: var(--ember);
    border-color: rgba(232, 137, 12, .45);
    box-shadow: 0 0 24px -8px rgba(232, 137, 12, .9);
}

.clause__q {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 40;
    font-size: clamp(1.12rem, 1.7vw, 1.32rem);
    line-height: 1.28;
    letter-spacing: -.014em;
    font-weight: 400;
    color: var(--paper);
}

.clause__a {
    color: rgba(236, 232, 225, .8);
    font-size: 1rem;
    line-height: 1.8;
}

.clause__a p {
    margin: 0 0 1.05em;
}

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

.clause__a strong {
    color: var(--text);
    font-weight: 600;
}

.clause__a u {
    text-decoration: none;
    color: var(--ember-200);
    box-shadow: inset 0 -1px 0 0 rgba(232, 137, 12, .45);
}

.clause__a i {
    color: var(--ember-200);
}

.clause__a a {
    color: var(--ember-300);
    box-shadow: inset 0 -1px 0 0 rgba(232, 137, 12, .38);
}

.clause__a a:hover {
    box-shadow: inset 0 -2px 0 0 var(--ember);
}

@media (max-width: 560px) {
    .clauses {
        padding-left: 26px;
    }

    .clause::before {
        width: 28px;
        height: 28px;
        left: -27px;
        font-size: 9px;
    }
}

/* The contact block sits below the clauses, full measure. */
#terms #contact-section-header {
    margin-top: clamp(20px, 3vw, 36px);
}

/* Printing a contract page should show both models, not just the open tab. */
@media print {
    #terms .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }

    .terms__models {
        display: none;
    }
}

/* Bootstrap's .nav-tabs .nav-link rules out-specify the card styling above
   (they paint the active tab white), so the model cards restate theirs at a
   matching weight. */
.terms__models .nav-item {
    margin-bottom: 0;
    align-items: stretch;
}

.terms__models .nav-link.model-card {
    height: 100%;
}

.terms__models .nav-link.model-card,
.terms__models .nav-link.model-card:hover,
.terms__models .nav-link.model-card:focus {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background-color: transparent;
    background-image: var(--glass);
    color: var(--text);
    isolation: isolate;
}

.terms__models .nav-link.model-card:hover,
.terms__models .nav-link.model-card:focus {
    border-color: rgba(232, 137, 12, .34);
    background-image: var(--glass-hover);
}

.terms__models .nav-link.model-card.active {
    border-color: rgba(232, 137, 12, .55);
    background-color: transparent;
    background-image:
        radial-gradient(110% 90% at 10% 0%, rgba(232, 137, 12, .13), transparent 62%),
        var(--glass-hover);
    color: var(--text);
}
