/* ============================================================
   ARTIZY STUDIO
   Editorial monochrome. Cream ground, charcoal type.
   Asymmetric layouts. Restraint as luxury.
   ============================================================ */


/* ---------- Tokens ---------- */
:root {
    --cream:        #f5f2ec;
    --cream-soft:   #efeae1;
    --rule:         #c9c2b3;
    --rule-soft:    #d8d2c5;
    --ink:          #1a1a1a;
    --ink-soft:     #4a4642;
    --ink-mute:     #8a857d;
    --bark:         #6e4b3f;   /* redwood bark — the one accent, interactive only */

    --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --max:         980px;
}


/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

::selection {
    background: var(--ink);
    color: var(--cream);
}


/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2.5rem;
}


/* ---------- Section rhythm ---------- */
.section {
    padding: 11rem 0;
}

.section + .section {
    border-top: 1px solid var(--rule-soft);
}

.section--cta {
    padding: 13rem 0;
}


/* ---------- Wordmark ---------- */
.wordmark {
    font-family: var(--serif);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.45em;
    color: var(--ink);
}

.wordmark--sm  { font-size: 0.95rem; letter-spacing: 0.5em; }
.wordmark--xs  { font-size: 0.7rem;  letter-spacing: 0.4em; color: var(--ink-soft); }


/* ---------- Kicker (small Roman numeral + section label) ---------- */
.kicker {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--ink-mute);
    margin-bottom: 4.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Roman numeral set in serif, separated by a short rule */
.kicker span {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0;
    color: var(--ink);
    position: relative;
    padding-right: 2rem;
}

.kicker span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--ink);
}


/* ---------- Display headings ---------- */
.display {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.15rem, 4.7vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--ink);
}

/* Larger variant for the bookend sections (Problem, CTA).
   Hero remains the single largest typographic moment on the page. */
.display--lead {
    font-size: clamp(2.5rem, 5.5vw, 3.4rem);
    margin-bottom: 5rem;
}


/* ---------- Two-column editorial layouts ---------- */
.two-col {
    display: grid;
    gap: 4rem;
}

/* Heading 5fr, body 7fr. Body sits in the right column */
.two-col--split {
    grid-template-columns: 5fr 7fr;
    align-items: start;
}

/* Two equal body columns under a full-width heading */
.two-col--prose {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
}

.two-col--prose p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink-soft);
}


/* ---------- Prose block (used in right column of split layouts) ---------- */
.prose-block p {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 1.5rem;
    max-width: 30rem;
}

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

/* Verse variant (redwood): let the hand-placed lines sit one per line inside the column */
.prose-block--verse p { max-width: none; font-size: clamp(1.1rem, 1.5vw, 1.2rem); }

.prose-block__signature {
    color: var(--ink-mute) !important;
    margin-top: 2.5rem !important;
    padding-top: 2rem;
    border-top: 1px solid var(--rule-soft);
    max-width: 22rem !important;
}

.prose-block__signature em {
    font-style: italic;
}


/* ---------- Hairline rule (indented, used as section accent) ---------- */
.rule {
    height: 1px;
    background: var(--ink);
    opacity: 0.35;
    margin: 6rem 0;
}

.rule--indent {
    width: 80px;
    margin-left: 0;
}


/* ---------- Ledger list ---------- */
.ledger {
    list-style: none;
}

.ledger li {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.4;
    color: var(--ink);
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--rule-soft);
}

.ledger li:first-child { border-top: 1px solid var(--rule-soft); }


/* ---------- Pull quote (the single oversized typographic moment) ---------- */
.pull-quote {
    padding: 3.25rem 2.5rem 3.25rem;
    margin: 7rem 0 0;
    text-align: center;
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
    background: var(--cream-soft);
}

.pull-quote p {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    line-height: 1.6;
    color: var(--ink-soft);
}

.pull-quote em {
    font-style: italic;
    font-weight: 300;
}


/* ============================================================
   OFFERINGS (three editorial stacked entries)
   ============================================================ */
.offerings {
    margin-top: 9rem;
}

.offering {
    padding: 5rem 0;
    border-top: 1px solid var(--rule-soft);
}

.offering:last-child {
    border-bottom: 1px solid var(--rule-soft);
}

.offering__head {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 2.5rem;
    align-items: baseline;
    margin-bottom: 2.5rem;
}

.offering__num {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--ink-mute);
}

.offering__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-transform: lowercase;
}

.offering__body {
    font-family: var(--sans);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 40rem;
    /* Indent body to align beneath the title, past the number column */
    margin-left: calc(64px + 2.5rem);
}


/* ============================================================
   TRAITS (definition list, two-column rows)
   ============================================================ */
.traits {
    margin-top: 4rem;
}

.trait {
    display: grid;
    grid-template-columns: 4fr 8fr;   /* widened desc column so "Too many moving parts. Not enough systems holding them together" fits one line */
    gap: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--rule-soft);
}

.trait:last-child { border-bottom: 1px solid var(--rule-soft); }

.trait dt {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    line-height: 1.2;
    color: var(--ink);
}

.trait dd {
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: none;   /* was 32rem; capped below the widened 8fr column and forced a wrap */
}


/* ---------- Aside ---------- */
.aside {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--ink-mute);
    margin-top: 5rem;
    max-width: 36rem;
    padding-left: 0;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 242, 236, 0.98);
    border-bottom: 1px solid var(--rule-soft);
}

/* Full viewport width: logo flush left, link flush right */
.nav__inner {
    width: 100%;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__mark { width: 26px; height: auto; }

.nav__link {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--ink);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ink);
    transition: border-bottom-color 0.25s ease;
}


/* ============================================================
   HERO (the only centered moment)
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2.5rem;
    text-align: center;
}

.hero__inner {
    max-width: 44rem;
    margin: 0 auto;
}

.hero__mark {
    width: 88px;
    height: auto;
    margin: 0 auto 2.25rem;
}

.hero__wordmark {
    font-family: var(--serif);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5em;
    color: var(--ink);
    margin-bottom: clamp(5rem, 15vh, 10rem);
}

.hero__headline {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.85rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: clamp(5rem, 15vh, 10rem);
}

.hero__sub {
    font-family: var(--sans);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: clamp(2.5rem, 5vh, 4rem);
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
}


/* ---------- Link-style CTA (just type, single hairline underline) ---------- */
.link-cta {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--ink);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bark);   /* §5 amended: resting bark on the primary CTA */
    transition: border-bottom-color 0.25s ease;
}

/* §5 — the one accent: redwood-bark underline, interactive only.
   At rest the underline is --ink (monochrome). On hover/focus it warms to
   --bark. The accent appears nowhere else — never in text, only the underline. */
.nav__link:hover,
.nav__link:focus-visible,
.link-cta:hover,
.link-cta:focus-visible {
    border-bottom-color: var(--bark);
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta__close {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: end;
    padding-top: 3rem;
    border-top: 1px solid var(--rule-soft);
}

.cta__close p {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 28rem;
    grid-column: 2;
}

.cta__close .link-cta {
    grid-column: 2;
    justify-self: start;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--rule-soft);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.footer__mark {
    width: 30px;
    height: auto;
    margin-bottom: 0.5rem;
}

.footer__tag {
    font-family: var(--serif);
    font-weight: 300;
    color: var(--ink-soft);
    font-size: 1rem;
}

.footer__tag em { font-style: italic; }

.footer__copy {
    color: var(--ink-mute);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 1rem;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
    .section { padding: 7rem 0; }
    .section--cta { padding: 8rem 0; }

    .container { padding: 0 1.75rem; }

    .display--lead { margin-bottom: 3.5rem; }
    .kicker { margin-bottom: 3rem; }

    /* Collapse every two-column grid into stacked rows */
    .two-col--split,
    .two-col--prose,
    .trait,
    .cta__close {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta__close p,
    .cta__close .link-cta {
        grid-column: 1;
    }

    .offering__head {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .offering__body {
        margin-left: 0;
    }

    .pull-quote { padding: 3rem 1.75rem; margin-top: 4rem; }

    .hero { padding: 5rem 1.75rem; }
    .hero__mark { width: 72px; margin-bottom: 1.75rem; }
    .hero__wordmark { margin-bottom: clamp(3.5rem, 11vh, 7rem); }
    .hero__sub { margin-bottom: 3rem; }
}

@media (max-width: 520px) {
    .hero__headline { font-size: 1.85rem; }
    .display { font-size: 2.25rem; }
    .ledger li { font-size: 1.15rem; }
    .nav__inner { padding: 1.25rem 1.5rem; }
    .kicker { gap: 1.25rem; }
}


/* ============================================================
   SCROLL REVEALS
   Initial state only applies when JS is enabled (.js class on <html>).
   Without JS, content is fully visible. With reduced motion, JS reveals
   everything immediately without transition.
   ============================================================ */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hairline rules draw in left-to-right rather than fading up */
.js .rule[data-reveal] {
    opacity: 1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .rule[data-reveal].is-visible {
    transform: scaleX(1);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal],
    .js .rule[data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* ============================================================
   TYPOGRAPHIC POLISH
   Prevent widows and orphans across headings and body copy.
   text-wrap: balance distributes lines evenly across short
   headings. text-wrap: pretty improves last-line wrapping
   in body paragraphs. widows/orphans cover paged media and
   any UA that respects them in continuous flow.
   ============================================================ */

h1, h2, h3,
.display,
.hero__headline,
.offering__title,
.pull-quote p,
.trait dt,
.ledger li {
    text-wrap: balance;
}

p, dd {
    text-wrap: pretty;
}

p, li, dd {
    widows: 2;
    orphans: 2;
}

/* ---- salary-anchor page additions (A-0080 site fix) ---- */
.coda {
    font-family: var(--serif);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 1.9vw, 1.55rem);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 34rem;
    margin-top: 2.75rem;
}
.cta__fineprint {
    font-size: clamp(0.9rem, 1.15vw, 1rem) !important;
    font-style: italic;
    color: var(--ink-soft);
    opacity: 0.85;
    margin-top: 0.75rem !important;
}
