/* Shared reading layout for the consulting page and personal pages.
   Ivory throughout. The soft red band is only .page-lower, used on the buying page. */

* {
    box-sizing: border-box;
}

html {
    background-color: var(--cc-ivory);
    font-size: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--cc-ivory);
    color: #222222;
    font-family: var(--cc-font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.buy-nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    min-height: 80px;
    margin: 0;
    padding: 12px calc(40px + env(safe-area-inset-right, 0px)) 12px 24px;
    gap: 2px;
}

.buy-nav a {
    font-family: var(--cc-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: #052a47;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.buy-nav a:hover {
    background: rgba(13, 59, 102, 0.08);
}

.buy-nav a:focus-visible {
    outline: 2px solid #052a47;
    outline-offset: 2px;
}

.buy-nav .buy-mark {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 14px;
    line-height: 0;
}

.page-buying .buy-nav {
    justify-content: flex-start;
    padding-left: calc(40px + env(safe-area-inset-left, 0px));
}

.buy-nav .buy-nav__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    padding: 8px 10px;
    line-height: 0;
}

.buy-nav .buy-nav__back svg {
    width: 20px;
    height: 20px;
    display: block;
}

.page-buying .buy-nav .buy-mark {
    margin-left: 0;
    padding: 0;
    gap: 8px;
    align-items: flex-end;
    border: 0;
    background: none;
    box-shadow: none;
}

.buy-mark__shape {
    display: block;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.buy-mark__shape--circle {
    border-radius: 50%;
    background: rgba(245, 183, 0, 0.84);
}

.buy-mark__shape--square {
    border-radius: 2px;
    background: rgba(37, 99, 235, 0.82);
}

.buy-mark__shape--tri {
    width: 24px;
    height: 21px;
    border: 0;
    background: rgba(239, 68, 68, 0.84);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.page-buying .buy-nav a:first-of-type {
    margin-left: auto;
}


.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 108px 24px 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.content > div {
    width: min(760px, 100%);
    min-width: 0;
}

.content h1 {
    margin: 0 0 0.85em;
    max-width: 22em;
    font-family: var(--cc-font-sans);
    font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.011em;
    color: #222222;
}

.content h2 {
    scroll-margin-top: 96px;
    margin: 1.6em 0 0.45em;
    max-width: 40em;
    font-family: var(--cc-font-sans);
    font-size: clamp(1.125rem, 1.05rem + 0.2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.006em;
    color: #222222;
}

.content p,
.content li,
.content dd {
    margin: 0 0 1.15em;
    max-width: min(65ch, 100%);
    font-family: var(--cc-font-sans);
    font-size: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: normal;
    text-align: left;
    color: #222222;
}

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

.content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content a:hover {
    text-decoration: none;
}

.content ul:not(.look-list) {
    margin: 0 0 1.15em;
    padding-left: 1.2em;
    max-width: min(65ch, 100%);
}

.content ul:not(.look-list) li {
    margin: 0 0 8px;
}

.look-list {
    list-style: none;
    margin: 0 0 1.5em;
    padding: 0;
    max-width: min(65ch, 100%);
}

.look-list li {
    margin: 0 0 1.05em;
}

.look-list li:last-child {
    margin-bottom: 0;
}

.route {
    list-style: none;
    margin: 0.4em 0 0;
    padding: 0;
    max-width: min(65ch, 100%);
    counter-reset: none;
}

.content .route li {
    position: relative;
    margin: 0;
    padding: 0 0 1.85rem 2.7rem;
    max-width: none;
}

.content .route li:last-child {
    padding-bottom: 0;
}

.content .route li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: calc(0.8125rem - 1px);
    top: 1.7rem;
    bottom: 0;
    width: 2px;
    background: #0d3b66;
}

.route__stop {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 1.625rem;
    height: 1.625rem;
    border: 2px solid #0d3b66;
    border-radius: 50%;
    background: var(--cc-ivory);
    color: #0d3b66;
    font-family: var(--cc-font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content .route h2 {
    margin: 0 0 0.2em;
    max-width: none;
    min-height: 1.625rem;
    display: flex;
    align-items: center;
    font-size: clamp(1.05rem, 1rem + 0.15vw, 1.15rem);
    font-weight: 500;
    line-height: 1.3;
}

.content .route p {
    margin: 0;
}

.buy-gallery {
    position: relative;
    width: min(760px, 100%);
    margin: 2.25rem 0 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e7e2da;
}

.buy-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buy-gallery__nav {
    position: absolute;
    bottom: 12px;
    top: auto;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(1px) saturate(170%) contrast(1.08) url(#gallery-liquid-glass);
    -webkit-backdrop-filter: blur(1px) saturate(170%) contrast(1.08) url(#gallery-liquid-glass);
    color: #1a3348;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.buy-gallery__nav svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    stroke-width: 2.5;
}

.buy-gallery__nav--prev { left: 12px; }
.buy-gallery__nav--next { left: 72px; }

.buy-gallery__nav:hover,
.buy-gallery__nav:focus-visible {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    outline: none;
}

.look-list span {
    display: block;
    margin-bottom: 0.15em;
    font-family: var(--cc-font-sans);
    font-size: 1em;
    font-weight: 500;
    letter-spacing: -0.006em;
    line-height: 1.4;
    text-transform: none;
    color: #222222;
}

.content dt {
    display: block;
    margin-bottom: 0.15em;
    font-family: var(--cc-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #0d3b66;
}

.content dl {
    margin: 0 0 1.15em;
    max-width: min(65ch, 100%);
}

.content dl div {
    margin: 0 0 20px;
}

.content dd {
    margin: 0;
}

/* Same soft red as xyz.html .page-lower. Only the buying page uses this band. */
.content > .page-lower {
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 2.25rem;
    background: #fff0f0;
    padding: 36px 24px max(64px, env(safe-area-inset-bottom, 0px));
    box-shadow: 0 0 0 100vmax #fff0f0;
    clip-path: inset(0 -100vmax -100vh -100vmax);
}

.page-lower > div {
    width: min(760px, 100%);
    margin: 0 auto;
}

.page-lower > div > h2:first-child {
    margin-top: 0;
}

#a-conversation,
#consulting {
    scroll-margin-top: 96px;
}

.consult {
    margin-top: 2.4rem;
    padding-top: 0.2rem;
}

.consult[hidden] {
    display: none !important;
}

.consult-reveal-btn {
    margin-top: 0.5rem;
    border: 1px solid #0d3b66;
    background: transparent;
    color: #0d3b66;
    border-radius: 8px;
    padding: 10px 18px;
    font-family: var(--cc-font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.consult-reveal-btn:hover,
.consult-reveal-btn:focus-visible {
    background: #0d3b66;
    color: #faf8f4;
    outline: none;
}

.consult-reveal-btn[hidden] {
    display: none !important;
}

.consult__lead {
    margin-top: 0;
}

.consult__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 1.35rem;
}

.consult__label {
    font-family: var(--cc-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #0d3b66;
}

.consult__optional,
.consult__hint {
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    color: #222222;
}

.consult__hint {
    margin: -0.4rem 0 1.2rem;
}

.consult__ends {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 1rem;
    color: #222222;
}

.consult__ends strong {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.consult-range {
    position: relative;
    display: block;
    width: 100%;
    height: 32px;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.consult-range__track,
.consult-range__fill {
    position: absolute;
    top: 14px;
    height: 4px;
    border-radius: 999px;
    pointer-events: none;
}

.consult-range__track {
    left: 0;
    right: 0;
    background: rgba(13, 59, 102, 0.22);
}

.consult-range__fill {
    background: #0d3b66;
}

.consult-range input[type="range"],
.consult-range input[type="range"]:focus,
.consult-range input[type="range"]:focus-visible {
    position: absolute;
    left: 0;
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    touch-action: none;
}

.consult-range input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.consult-range input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
}

.consult-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 22px;
    height: 22px;
    margin-top: -9px;
    border-radius: 50%;
    border: 2px solid #fff0f0;
    background: #0d3b66;
    cursor: grab;
}

.consult-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff0f0;
    background: #0d3b66;
    cursor: grab;
}

body:not(.page-buying) .consult-range input[type="range"]::-webkit-slider-thumb {
    border-color: var(--cc-ivory);
}

body:not(.page-buying) .consult-range input[type="range"]::-moz-range-thumb {
    border-color: var(--cc-ivory);
}

.consult__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.consult__pill {
    border: 1px solid #0d3b66;
    background: transparent;
    color: #0d3b66;
    border-radius: 999px;
    padding: 7px 13px;
    font-family: var(--cc-font-sans);
    font-size: 0.95rem;
    line-height: 1.3;
    cursor: pointer;
}

.consult__pill.is-selected {
    background: #0d3b66;
    color: #faf8f4;
}

.consult__contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.consult input:not([type="range"]),
.consult textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(13, 59, 102, 0.35);
    background: #faf8f4;
    color: #222222;
    border-radius: 8px;
    padding: 11px 12px;
    font-family: var(--cc-font-sans);
    font-size: 1rem;
    line-height: 1.4;
}

body:not(.page-buying) .consult input:not([type="range"]),
body:not(.page-buying) .consult textarea {
    background: #ffffff;
}

.consult textarea {
    min-height: 96px;
    resize: vertical;
}

.consult__error {
    margin: 0 0 12px;
    color: #8d1d1d;
}

.consult__send {
    border: 0;
    background: #0d3b66;
    color: #faf8f4;
    border-radius: 8px;
    padding: 11px 18px;
    font-family: var(--cc-font-sans);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.consult__send:disabled {
    opacity: 0.6;
    cursor: default;
}

.consult__thanks h2 {
    margin-top: 0;
}

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

@media (max-width: 600px) {
    .content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .content p,
    .content li,
    .content dd {
        overflow-wrap: break-word;
    }

    .buy-nav {
        min-height: 64px;
        padding-right: calc(12px + env(safe-area-inset-right, 0px));
    }

    .buy-nav a {
        padding: 8px;
    }

    .buy-nav .buy-mark {
        margin-left: 8px;
    }

    .page-buying .buy-nav .buy-mark {
        margin-left: 0;
        gap: 6px;
    }

    .buy-mark__shape {
        width: 18px;
        height: 18px;
    }

    .buy-mark__shape--tri {
        width: 20px;
        height: 17px;
    }

    .content > .page-lower {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 768px) {
    .content {
        padding-top: 88px;
    }

    body.page-person .content {
        padding-top: 120px;
    }

    .buy-nav {
        min-height: 64px;
        padding-right: calc(10px + env(safe-area-inset-right, 0px));
    }

    .page-buying .buy-nav {
        padding-left: calc(10px + env(safe-area-inset-left, 0px));
    }

    .buy-nav a {
        padding: 8px 7px;
    }
}

@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    .buy-nav,
    .buy-gallery__nav,
    .consult {
        display: none !important;
    }

    .content {
        padding-top: 24px;
    }

    .content > .page-lower {
        background: transparent;
        box-shadow: none;
        clip-path: none;
        padding-top: 16px;
    }
}
