/* argopraxis.com — stylesheet
   Design principles:
   - Single family: Inter (variable), loaded from rsms.me/inter
   - Brand colors: paper #F5F3F3, ink #1a1a1a, navy #002343
   - Generous whitespace; narrow measure for comfortable reading
   - Rendering consistency across macOS / Windows / iOS / Android
*/

:root {
    --bg: #F5F3F3;
    --ink: #1a1a1a;
    --navy: #002343;
    --muted: #5c5c5c;
    --rule: #d9d4ce;
    --measure: 38rem;
    --inter: "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    font-family: var(--inter);
    font-feature-settings: "cv11", "ss01", "ss03";
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    padding: 0;
}

main {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
}

/* Typography — Inter everywhere, weight + size carry the hierarchy */

h1 {
    font-weight: 700;
    font-size: 3.75rem;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--navy);
    margin: 0 0 1.5rem;
}

/* Site header — persistent home anchor, top-left of every page */

nav.site-header {
    margin-bottom: 4rem;
}

nav.site-header a {
    display: inline-block;
    text-decoration: none;
    border: none;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

nav.site-header a:hover {
    opacity: 1;
}

.site-mark {
    display: block;
    height: 32px;
    width: auto;
}

h2 {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--navy);
    margin: 4rem 0 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--navy);
}

p {
    margin: 0 0 1.25rem;
}

p.tagline {
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--navy);
    margin-bottom: 3.5rem;
    letter-spacing: -0.015em;
}

p.subhead {
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--navy);
    margin: 0;
    letter-spacing: -0.015em;
}

strong {
    font-weight: 600;
    color: var(--ink);
}

em {
    font-style: italic;
}

/* Lead paragraph — slightly larger, sets intro apart from body */

section.intro > p {
    font-size: 1.08rem;
    line-height: 1.6;
}

/* Links — navy underline */

a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    text-decoration-color: rgba(0, 35, 67, 0.35);
    transition: text-decoration-color 0.15s ease;
}

a:hover {
    text-decoration-color: var(--navy);
}

/* Lists */

ul {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.8rem;
}

ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 0.5rem;
    height: 1px;
    background: var(--navy);
}

/* Sections */

section {
    margin-bottom: 2.5rem;
}

section.intro {
    margin-bottom: 3rem;
}

section.practice {
    margin-top: 4rem;
}

/* Home-specific next link */

.next {
    margin: 4rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.next a {
    text-decoration: none;
    color: var(--navy);
    border-bottom: 1px solid var(--navy);
    padding-bottom: 3px;
}

.next a:hover {
    border-bottom-width: 2px;
    padding-bottom: 2px;
}

/* About page — typographic hero, photo + name side-by-side */

header.about-hero {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
}

header.about-hero img.portrait {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
    margin: 0;
    /* Deliberately square, not round — editorial not avatar */
}

header.about-hero .hero-text {
    flex: 1;
    min-width: 0;
}

header.about-hero h1 {
    margin: 0 0 0.75rem;
}

/* Footer */

footer {
    margin-top: 6rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--navy);
    font-size: 0.9rem;
}

footer .contact {
    color: var(--navy);
    margin-bottom: 1.75rem;
}

footer .contact a {
    color: var(--navy);
    text-decoration-color: rgba(0, 35, 67, 0.3);
}

footer .contact a:hover {
    text-decoration-color: var(--navy);
}

footer .contact span {
    padding: 0 0.6rem;
    color: var(--navy);
    opacity: 0.5;
}

footer .mark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: -0.005em;
}

footer .mark img.footer-mark {
    display: block;
    height: 28px;
    width: auto;
}

footer .copyright {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
    letter-spacing: 0.03em;
}

/* Responsive */

@media (max-width: 640px) {
    html {
        font-size: 16px;
    }
    main {
        padding: 3.5rem 1.25rem 3rem;
    }
    h1 {
        font-size: 2.5rem;
        letter-spacing: -0.03em;
    }
    p.tagline {
        font-size: 1.15rem;
    }
    p.subhead {
        font-size: 1.1rem;
    }
    section.intro > p {
        font-size: 1.02rem;
    }
    h2 {
        margin-top: 3rem;
    }
    header.about-hero {
        flex-direction: column;
        gap: 1.5rem;
    }
    header.about-hero img.portrait {
        width: 120px;
        height: 120px;
    }
    nav.site-header {
        margin-bottom: 3rem;
    }
    .site-mark {
        height: 28px;
    }
}

@media (min-width: 1100px) {
    main {
        padding-top: 8rem;
    }
    h1 {
        font-size: 4.5rem;
    }
    header.about-hero img.portrait {
        width: 210px;
        height: 210px;
    }
}
