/*
 * rhondaaltontracy.com — Direction A, "Warm Earth". See docs/brand-brief.md.
 * Fonts are self-hosted: the site makes no requests to any other server.
 */

@font-face {
    font-family: "Fraunces";
    src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Karla";
    src: url("/assets/fonts/karla-var.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Karla";
    src: url("/assets/fonts/karla-var-italic.woff2") format("woff2");
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Palette. Contrast on --oat: ink 13.1, muted 6.3, clay 5.4 (WCAG AA). */
    --ink: #2B2723;
    --muted: #5E574F;
    --clay: #7A5C42;
    --clay-deep: #5E4634;
    --oat: #F6F0E6;
    --sand: #EDE4D6;
    --rule: #E2D6C2;
    /* On the dark portrait band: 12.8, 7.2 and 7.0 against --ink. */
    --on-dark: #F6F0E6;
    --on-dark-label: #C4B39A;
    --on-dark-muted: #BDB0A0;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

    --gutter: clamp(20px, 6vw, 80px);
    --section: clamp(56px, 9vw, 96px);
    --measure: 40rem;
    --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 96px;   /* keep in-page anchors clear of the sticky header */
}

body {
    margin: 0;
    background: var(--oat);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.25rem;      /* 20px */
    line-height: 1.75;
}

@media (max-width: 600px) {
    body { font-size: 1.1875rem; }   /* 19px */
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

p { margin: 0; }

a { color: var(--clay); text-underline-offset: 0.2em; }
a:hover { color: var(--clay-deep); }

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px; top: -100px;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--on-dark);
    z-index: 10;
}
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */

/* Sticky, solid and still: it never shrinks, fades or animates. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--oat);
    border-bottom: 1px solid var(--rule);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 12px 32px;
    min-height: 76px;
    padding-block: 12px;
}

.site-header__inner .wordmark { margin-right: auto; }

.wordmark {
    font-family: var(--serif);
    font-size: 1.3125rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark__rcc { color: var(--muted); font-weight: 400; }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    font-size: 1rem;
}

.site-nav--row { display: none; }

/* Phones and narrow tablets: the sticky bar keeps just the name and the
   button; the nav sits in an ordinary row underneath and scrolls away. */
@media (max-width: 899px) {
    .site-nav--bar { display: none; }
    .site-nav--row {
        display: flex;
        gap: 4px 24px;
        border-bottom: 1px solid var(--rule);
    }
    .site-header__inner { min-height: 64px; padding-block: 10px; }
    .wordmark { font-size: 1.125rem; line-height: 1.2; }
}

@media (max-width: 599px) {
    .wordmark__rcc { display: none; }
}

.site-nav a {
    display: inline-block;
    padding-block: 10px;      /* 44px touch target */
    color: var(--muted);
    text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
}

/* ---------- Buttons and links ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 34px;
    background: var(--clay);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    border-radius: var(--radius);
    text-decoration: none;
}
.button:hover { background: var(--clay-deep); color: #fff; }
.button--block { width: 100%; }

.button--small {
    min-height: 44px;
    padding: 0 18px;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 599px) {
    .button--small { padding: 0 14px; font-size: 0.9375rem; }
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 14px;
}

.cta-note { font-size: 1rem; color: var(--muted); }

.text-link {
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: underline;
}

.eyebrow {
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ---------- Hero ---------- */

/* Text on the left, lined up with the header; the Jane booking-page image
   on the right, running to the edge of the window. Never text over it. */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
}

.hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    /* Kept short so the portrait below starts above the fold on a laptop. */
    padding-block: clamp(32px, 4vw, 48px);
    padding-left: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
    padding-right: clamp(24px, 4vw, 64px);
}

/* The text sets the hero's height; the image fills whatever that is. */
.hero__image { position: relative; }

.hero__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 60%;    /* the hills and the waterline */
}

@media (max-width: 959px) {
    .hero { grid-template-columns: 1fr; }
    .hero__text { padding-right: var(--gutter); }
    .hero__image img {
        position: static;
        height: clamp(120px, 25vw, 200px);
        min-height: 0;
        object-position: 30% 62%;
    }
}

.hero h1 {
    font-size: clamp(2.25rem, 4.4vw, 3.5rem);    /* 36 → 56px */
    line-height: 1.12;
    letter-spacing: -0.01em;
    max-width: 50rem;
}

.lede {
    font-size: clamp(1.25rem, 2vw, 1.4375rem);   /* 20 → 23px */
    line-height: 1.6;
    color: var(--muted);
    max-width: 42rem;
}

.hero .lede { font-size: 1.25rem; }
.hero .cta-row { margin-top: 6px; }

/* ---------- Portrait band ---------- */

.portrait {
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
    background: var(--ink);
    color: var(--on-dark);
}

.portrait__image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.portrait__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: clamp(40px, 6vw, 64px) clamp(24px, 6vw, 72px);
}

.portrait__text .eyebrow { color: var(--on-dark-label); }

.portrait__quote { margin: 0; }
.portrait__quote p {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);   /* 24 → 30px */
    line-height: 1.5;
}

.portrait__meta {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--on-dark-muted);
}

@media (max-width: 959px) {
    .portrait { grid-template-columns: 1fr; }
    .portrait__image img { max-height: 90vh; }
}

/* ---------- Two-column reading section ---------- */

.split {
    display: grid;
    grid-template-columns: 300px minmax(0, var(--measure));
    gap: 24px 72px;
    padding-block: var(--section);
}

.split h2 { font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.25; }

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

.prose { display: flex; flex-direction: column; gap: 22px; color: var(--muted); }
.strong-ink { color: var(--ink); }
.prose strong { font-weight: 600; }

/* ---------- Offerings and "where we meet" ---------- */

.offerings,
.where {
    padding-bottom: var(--section);
}

.offerings h2,
.where h2 {
    font-size: clamp(1.75rem, 3vw, 2.125rem);
    margin-bottom: 32px;
}

.offerings__grid,
.where__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 32px 48px;
    margin-bottom: 28px;
}

.offering {
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

.offering h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.offering p,
.where__grid p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted);
}

.where__grid p {
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

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

/* ---------- Fees panel ---------- */

.panel {
    background: var(--sand);
    border-radius: 6px;
    padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 60px);
}

.fees {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px 72px;
    align-items: start;
    margin-bottom: var(--section);
}

.fees h2 { font-size: 1.875rem; margin-bottom: 18px; }
.fees__text { display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.fees__text strong { font-weight: 600; }
.fees__cta { display: flex; flex-direction: column; gap: 14px; }
.fees__cta .cta-note { font-size: 0.9375rem; line-height: 1.6; }

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

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); }

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px 48px;
    padding-block: 40px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--muted);
}

.site-footer__notes { max-width: 36rem; display: flex; flex-direction: column; gap: 6px; }
.site-footer__notes strong { color: var(--ink); font-weight: 600; }

.site-footer__meta { display: flex; gap: 24px; font-size: 0.875rem; }

/* ---------- Plain document pages (privacy) ---------- */

.doc {
    padding-block: var(--section);
}

.doc h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); margin-bottom: 12px; }
.doc .doc__date { font-size: 1rem; color: var(--muted); margin-bottom: 40px; }

.doc__body {
    max-width: var(--measure);
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: var(--muted);
}

.doc__body h2 {
    font-size: 1.625rem;
    color: var(--ink);
    margin-top: 24px;
}

.doc__body ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.doc__body strong { color: var(--ink); font-weight: 600; }

/* ---------- Content pages ---------- */

.page-head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: var(--section);
    padding-bottom: clamp(32px, 5vw, 56px);
}

.page-head h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.page-head--flush { padding-top: 0; }

.split--tight {
    padding-block: 0 clamp(48px, 7vw, 80px);
}

.plain-list {
    margin: 0;
    padding-left: 1.2em;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.article { padding-bottom: var(--section); }

.article__body {
    max-width: var(--measure);
}

.article__body h2 {
    font-size: clamp(1.625rem, 2.6vw, 1.875rem);
    color: var(--ink);
    margin-top: 20px;
}

.article__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 44px;
}

.article__close {
    max-width: var(--measure);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 56px;
}

.small { font-size: 1rem; color: var(--muted); }

/* About */

.about {
    display: grid;
    grid-template-columns: 400px minmax(0, var(--measure));
    gap: 40px 72px;
    align-items: start;
    padding-block: var(--section);
}

.about__image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.about__creds { color: var(--muted); }

.about__opening {
    font-family: var(--serif);
    font-size: clamp(1.375rem, 2.2vw, 1.625rem);
    line-height: 1.5;
}

@media (max-width: 859px) {
    .about { grid-template-columns: 1fr; }
    .about__image { max-width: 400px; }
}

.offering p + p { margin-top: 12px; }
