html {
    scrollbar-gutter: stable;
}

/* Ralph Hosking — minimalist editorial blog */
:root {
    --background2: #fbfaf7; /*251, 250, 247*/
    --background: #eef9fb;
    --foreground: #2a2520;
    --muted-foreground: #6b645c;
    --border: #ece8e0;
    --primary: #9a4a2b;
    --accent: #f3efe6;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Fraunces", Georgia, serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    /*    background: var(--background);*/
    background: var(--background2);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv11";
}

.sans { font-family: var(--font-sans); font-feature-settings: "ss01"; letter-spacing: -0.02em; } /*rh*/
.serif { font-family: var(--font-serif); font-feature-settings: "ss01"; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); }

.wrap {
    width: 100%;
    /*the industry standard relies on an inner content container max-width of 
        1140px / 16 = 71.25
        to 
        1440px/16=90
        960/16=60
    */
    max-width: 70rem; /*960/16 = 60, it was 42*/
    margin-inline: auto;
    /*    padding-inline: clamp(1rem, 4vw, 1.75rem); causing heading not to left & right justify
*/
}

a { color: inherit; }
a.link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(154, 74, 43, 0.3);
    transition: border-color .15s ease;
}
a.link:hover { border-bottom-color: var(--primary); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    /*    background: rgba(251, 250, 247, 0.85);
*/
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: 3.5rem;
}
.brand {
    font-size: 1.25rem;
/*    font-weight: 600;
*/    text-decoration: none;
    color: var(--foreground);
}
.status {
    font-size: 11px;
    color: var(--muted-foreground);
    flex-shrink: 0;
}
.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    color: var(--muted-foreground);
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
}
.menu-toggle:hover { background: var(--accent); color: var(--foreground); }

.primary-nav { border-top: 1px solid var(--border); }
.nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    padding: 0.625rem 0;
    font-size: 14px;
}
.nav-row a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color .15s ease;
}
.nav-row a:hover { color: var(--foreground); }

/********** temp on default before hamburger css */
.temptagsfull {
    display: inline-block;
}
.temptagsmobile {
    display: none;
}


/* Mobile - changes header to hamburger menu */
@media (max-width: 640px) 
{
    .status { display: none; }
    .menu-toggle { display: inline-flex; }
    .primary-nav { display: none; }
    body.menu-open .primary-nav { display: block; }
    body.menu-open .nav-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem 1rem;
        padding: 0.75rem 0;
    }

    /********** temp on default */
    .temptagsmobile {
        display: inline-block;
    }
    .temptagsfull {
        display: none;
    }
}

/* Main 2.5rem equals 40px assing font 16px*/
.site-main 
{
    padding: 1rem 0; /* 2.5rem 0; top/bottom  lef/right*/
} 

.intro { /*margin-bottom: 3.5rem;*/ }
    .intro h1 {
        /*This CSS line uses fluid typography to dynamically scale text 
            between a minimum size of 30px (1.875rem) 
            and a maximum size of 48px (3rem) based on the viewport width
            30/16 = 1.875
            58/16 = 3
         min value, prefered, max 4vw=4%
        font-size: clamp(1.875rem, 4vw, 3rem);
        */
        font-size: clamp(1.5rem, 2rem, 3rem);

        font-weight: 500;
        line-height: 1.1;
        margin: 0;
        text-wrap: balance;
    }
.prose {
    max-width: 70rem; /*was 65ch = 65 x wdth of '0' char*/
    margin-top: 1.5rem;
    color: var(--muted-foreground);
    text-align:justify;/*rh*/
}
.prose p { margin: 0 0 1rem 0; }

p {text-align: justify;} /*rh*/

/* Headlines */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}
.section-head h2 { font-size: 1.25rem; font-weight: 500; margin: 0; }
.section-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}

.headline-list { list-style: none; margin: 0; padding: 0; }
.headline-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.headline-item time {
    font-size: 11px;
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
}
.headline-item p { margin: 0; color: rgba(42, 37, 32, 0.92); }



.earlier { margin-top: 2rem; }
.earlier a { font-size: 14px; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    /*    margin-top: 2rem;
*/
    margin-top:1rem;
}
.site-footer > .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-heading, .topic-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
    margin: 0 0 0.75rem 0; /*Top, Right, Bottom, Left*/
}
.topic-heading {
    margin: 0.75rem 0 0.75rem 0; /*Top, Right, Bottom, Left*/
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 14px;
    margin-bottom: 2rem;
}
.copyright {
    font-size: 11px;
    color: var(--muted-foreground);
    margin: 0;
}
.copyright a {    text-decoration: none; }

/* ---------- Contact ---------- */
.contact-block {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}
.contact-block:last-of-type { border-bottom: 0; }
.block-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
}
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}
.contact-aside {
    color: var(--muted-foreground);
    margin: 0 0 1rem 0;
    max-width: 60ch;
}
.form-grid { display: grid; gap: 0.875rem; max-width: 32rem; }
.field { display: grid; gap: 0.375rem; }
.field label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}
.input {
    width: 100%;
    font: inherit;
    color: var(--foreground);
    /*    background: #fff;
*/ background-color: var(--background2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.625rem 0.75rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(154, 74, 43, 0.12);
}
textarea.input { resize: vertical; min-height: 4.5rem; }
.btn {
    justify-self: start;
    font: inherit;
    font-size: 14px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 4px;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: #823c22; }
.btn:active { transform: translateY(1px); }
.form-success {
    margin-bottom: 1rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    background: var(--accent);
    border-radius: 4px;
}
.form-success p { margin: 0; font-size: 12px; color: var(--foreground); }

/* ---------- Article (DR-one) ---------- */
.article { max-width: 70rem; } /*was 42*/
.article-head { margin-bottom: 2rem; }
    .article-head h1 {
/*        font-size: clamp(2rem, 4.5vw, 3rem);
*/        font-size: clamp(1.5rem, 4.5vw, 2.2em);
        font-weight: 500;
        line-height: 1.1;
        margin: 0.25rem 0 0.5rem 0;
        text-wrap: balance;
    }
.article-sub {
    font-size: 12px;
    color: var(--muted-foreground);
    margin: 0;
}
.article-section { margin-top: 2.75rem; }
.article-section > h2 {
    font-size: 1.375rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.subhead {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
    margin: 1.75rem 0 0.5rem 0;
}

.module-list {
    margin: 1rem 0 0 0;
    padding: 0;
    display: grid;
    gap: 0;
}
.module {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.125rem;
    padding: 0.625rem 0;
    border-bottom: 1px dashed var(--border);
}
.module dt { font-size: 12px; color: var(--primary); margin: 0; }
.module dd { margin: 0; color: var(--foreground); font-size: 14px; }
/*DR-one modules*/
@media (min-width: 640px) {
    .module {
        grid-template-columns: 5.5rem minmax(0, 1fr);
        gap: 1rem;
        align-items: baseline;
    }
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;/*15*/
    margin: 0.5rem 0 1rem 0;
    font-variant-numeric: tabular-nums;
}
.data-table th, .data-table td {
    text-align: left;
    padding: 0.45rem 0.75rem 0.45rem 0;
    border-bottom: 1px solid var(--border);
}
.data-table th {
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-foreground);
}
.data-table .num { text-align: right; padding-right: 0; }

.pull-quote {
    margin: 1rem 0 0 0;
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--primary);
    background: var(--accent);
    font-family: var(--font-sans); /*rh was serif*/
    font-style: italic;
    color: var(--foreground);
    line-height: 1.55;
    border-radius: 0 4px 4px 0;
}
.article-foot {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted-foreground);
}
.article-foot p { margin: 0; }



/**************minimal list style 1 */
/* Container styling */
ul.minimal-list {
    list-style: none; /* Removes the default bullet */
    padding-left: 1.5rem; /* Creates a clean, breathing indent */
    margin: 1.5rem 0; /* Separates the list from surrounding paragraphs */
}

    /* Individual list items */
    ul.minimal-list li {
        font-size: 1.1rem;
        line-height: 1.6;
        color: #333333;
        margin-bottom: 0.75rem; /* Space between items */
        position: relative;
    }

    /* Optional: A very faint, elegant fade on successive items */
    ul.minimal-list li {
        transition: color 0.2s ease;
    }

        ul.minimal-list li:hover {
            color: #000000;
        }





        /************minimal 2*/

ul.dash-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

    ul.dash-list li {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
        padding-left: 1.5rem;
        position: relative;
        color: #4a4a4a;
    }

        /* Creates a precise, elegant dash bullet */
        ul.dash-list li::before {
            content: "—"; /* em-dash or en-dash */
            position: absolute;
            left: 0;
            color: #999999; /* Muted accent color */
            font-weight: 300;
        }

        /***************minimal 3 microdot, larget text*/

ul.dot-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

    ul.dot-list li {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
        padding-left: 1.5rem;
        position: relative;
    }

        /* Creates a custom, sharp micro-bullet */
        ul.dot-list li::before {
            content: "";
            position: absolute;
            left: 0.2rem;
            top: 0.65rem; /* Centers the dot with the first line of text */
            width: 4px;
            height: 4px;
            background-color: #777777; /* Soft gray instead of harsh black */
            border-radius: 50%;
        }


        /*********orig nce list*/


/* nice ul list */
ul.niceList, ul.niceListCompact {
    font-size: 13px;
    margin-bottom: 0pt;
    padding-left: 5px;
    line-height: 1.6em;
}

ul.niceList li, ul.niceListCompact li {
    margin-bottom: 7pt;
    margin-left: 10px;
}


/* nice ul list with indent */
ul.niceListindent {
    font-size: 13px;
/*    margin-bottom: 0pt;
    padding-left: 5px;
*/    line-height: 1.6em;
}

ul.niceListindent li {
    margin-bottom: 7pt;
    margin-left: 10px;
}


/* nce list 2*/


/* nice ul list */
ul.niceList2, ul.quote {
    font-size: 12px;
    /*list-style-type: none;
    padding: 0; *//* Optional: Removes default left indentation */
    margin: 0; /* Optional: Removes default browser spacing */
}

    ul.niceList2 li, ul.quote li {
        margin-bottom: 7pt;
        /*        margin-bottom: 7pt;
        margin-left: 10px;
*/
    }

ul.quote {
    font-size: 15px;
    margin-bottom: 12pt;
}

/**************2cols*/
.twocol-flex-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.twocol-flex-child {
    flex: 1; /* Forces both columns to take up equal space */
}

/********** contact right optons */
.contact-options {
    background-color: white;
    padding: 0 20px 0 20px;
    border-radius: 15px;
}

/* Mobile First: Stacked by default */
.responsive-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
.responsive-container-no-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
}

/* Desktop: Side-by-side on screens wider than 768px */
/*cpmtact form 2 cols*/
@media (min-width: 768px) {
    .responsive-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 300px) {
    .responsive-container-no-wrap {
        grid-template-columns: 1fr 4fr;
    }
}

/*******************responsive */
/* Targets screens 768px wide or smaller */
/*@media (width <= 768px) {
    body 
    {
        background-color: lightgray;
    }
}
*/
/* Targets screens between 769px and 1200px */
@media (769px <= width <= 1200px) {
    body {
/*        background-color: blue;
*/    }
    .site-header {
        /*width: 90%;*/ /* Takes up 90% of the screen on mobile */
        /*max-width: 1200px;*/ /* Stops growing once it hits 1200px on desktop */
        /*margin: 0 auto;*/ /* Centers the container horizontally */
    }
}
@media (width <= 1200px) 
{
    .site-header, .site-main, .site-footer {
        padding: 0px 30px 0px 30px; /*trbl*/
    }



}

@media (width <= 600px) {

    ul.niceList, ul.niceListCompact {
        font-size: 16px;
    }

    body {
        font-size: 16px;
    }
}


/********************* scroll to top */
.back-to-top {
/*    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;*/
}
