/* Kree Consulting — site styles */

:root {
    --spruce: #17362f;
    --pine: #24503f;
    --sage: #edf1eb;
    --white: #ffffff;
    --brass: #a87a28;
    --brass-light: #d9ad5b;
    --brass-tint: #f4ead3;
    --brass-ink: #6b4e12;
    --ink: #1f2a26;
    --muted: #4a5752;
    --line: #d5ddd6;
    --field-line: #7c8b83;
    --error: #a3322b;

    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-space: clamp(2.75rem, 5vw, 4.25rem);
}

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

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 400 1.125rem/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--spruce);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 1.7rem + 3vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
}

h2 {
    font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.25rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.3125rem;
}

p {
    margin: 0;
}

a {
    color: var(--pine);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--spruce);
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--brass);
    outline-offset: 3px;
    border-radius: 2px;
}

.wrap {
    width: min(72rem, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 10;
    padding: 0.5rem 1rem;
    background: var(--spruce);
    color: var(--white);
}

.skip-link:focus {
    top: 1rem;
}

/* Brand: logo mark + two-tone wordmark */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.brand__mark {
    flex: none;
    transition: transform 0.2s ease;
}

.brand:hover .brand__mark {
    transform: rotate(-8deg) scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .brand__mark {
        transition: none;
    }

    .brand:hover .brand__mark {
        transform: none;
    }
}

.brand__name {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--spruce);
}

.brand__accent {
    font-style: italic;
    font-weight: 600;
    color: var(--brass);
}

.brand--light {
    --mark-tile: var(--white);
    --mark-k: var(--spruce);
}

.brand--light .brand__name {
    color: var(--white);
}

.brand--light .brand__accent {
    color: var(--brass-light);
}

/* Header */

.site-header {
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

@media (max-width: 30rem) {
    .site-header .brand__name {
        font-size: 1.2rem;
    }

    .site-header .brand__mark {
        width: 30px;
        height: 30px;
    }

    .site-header .button--outline {
        padding: 0.5rem 0.75rem;
        font-size: 0.9375rem;
    }
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.375rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font: 600 1rem/1.2 var(--sans);
    text-decoration: none;
    cursor: pointer;
}

.button--primary {
    background: var(--spruce);
    color: var(--white);
}

.button--primary:hover {
    background: var(--pine);
    color: var(--white);
}

.button--outline {
    padding: 0.5625rem 1rem;
    border-color: var(--spruce);
    background: transparent;
    color: var(--spruce);
    white-space: nowrap;
}

.button--outline:hover {
    background: var(--spruce);
    color: var(--white);
}

.button:disabled {
    background: #c9d1cb;
    color: var(--muted);
    cursor: not-allowed;
}

/* Arrow bullets, echoing the arrow in the logo */

.arrow-list {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.arrow-list > li {
    position: relative;
    padding-left: 1.375rem;
}

.arrow-list > li::before {
    content: "";
    position: absolute;
    top: 0.4em;
    left: 0;
    width: 0.7em;
    height: 0.7em;
    background: var(--brass);
    clip-path: polygon(100% 0, 100% 72%, 28% 0);
}

/* Hero */

.hero {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    background: var(--sage);
}

.hero__copy {
    max-width: 46rem;
}

.lede {
    max-width: 36rem;
    margin-top: 1.125rem;
    font-size: 1.1875rem;
    color: var(--muted);
}

.hero__points {
    margin-top: 1.125rem;
    font-weight: 600;
    color: var(--spruce);
}

.hero__aside {
    margin-top: 1.125rem;
    color: var(--muted);
}

/* What we do */

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

.section-intro {
    max-width: 40rem;
    margin-top: 0.5rem;
    color: var(--muted);
}

.services__list {
    display: grid;
    gap: 1.75rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 48rem) {
    .services__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

.services__list > li {
    padding-top: 1rem;
    border-top: 3px solid var(--brass);
}

.services__list > li > p {
    margin-top: 0.5rem;
    color: var(--muted);
}

.services__includes {
    margin-top: 0.75rem;
    font-size: 1rem;
}

/* How we work */

.process {
    padding-block: var(--section-space);
    background: var(--sage);
}

.process__steps {
    display: grid;
    gap: 1.5rem 2rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

@media (min-width: 40rem) {
    .process__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .process__steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.process__steps > li {
    counter-increment: step;
}

.process__steps > li::before {
    content: counter(step);
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brass);
}

.process__steps p {
    margin-top: 0.375rem;
    color: var(--muted);
}

/* About */

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

.about__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 56rem) {
    .about__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        gap: 3rem;
    }
}

.about__text {
    display: grid;
    gap: 1rem;
    max-width: 40rem;
    font-size: 1.125rem;
}

.about__subhead {
    margin-top: 2.25rem;
}

.reasons {
    display: grid;
    gap: 1.125rem 2rem;
    margin: 1.125rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 48rem) {
    .reasons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.reasons > li {
    padding-left: 1rem;
    border-left: 3px solid var(--brass);
    color: var(--muted);
}

.reasons strong {
    display: block;
    margin-bottom: 0.125rem;
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--spruce);
}

/* Contact */

.contact {
    padding-block: var(--section-space);
    background: var(--sage);
}

.contact__grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 56rem) {
    .contact__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
        gap: 3rem;
        align-items: start;
    }
}

.contact__intro p {
    margin-top: 0.5rem;
    color: var(--muted);
}

.contact-form {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

.contact-form .button {
    justify-self: start;
}

.field {
    display: grid;
    gap: 0.25rem;
}

.field label {
    font-size: 1rem;
    font-weight: 600;
}

.optional {
    font-weight: 400;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--field-line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}

.field textarea {
    min-height: 7rem;
    resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
    outline-offset: 1px;
    border-color: var(--spruce);
}

.field [aria-invalid="true"] {
    border: 2px solid var(--error);
}

.field__error {
    font-size: 0.9375rem;
    color: var(--error);
}

.field--trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 1rem;
}

.notice--ok {
    border-color: #9cc3a7;
    background: #e3efe6;
    color: #1d4b33;
}

.notice--error {
    border-color: #e2afa9;
    background: #f8e7e5;
    color: #7f2620;
}

.field--captcha altcha-widget {
    --altcha-color-base: var(--white);
    --altcha-color-base-content: var(--ink);
    --altcha-border-color: var(--field-line);
    --altcha-border-radius: 4px;
    --altcha-checkbox-border-color: var(--field-line);
    --altcha-color-primary: var(--spruce);
    --altcha-color-primary-content: var(--white);
    --altcha-color-success: var(--pine);
    --altcha-color-error: var(--error);
    --altcha-max-width: 100%;
}

.field__note {
    font-size: 0.9375rem;
    color: var(--muted);
}

/* Payment (coming soon) */

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

.payment__grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 56rem) {
    .payment__grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 3rem;
        align-items: start;
    }
}

.payment__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.875rem;
}

.payment__intro p {
    max-width: 34rem;
    margin-top: 0.5rem;
    color: var(--muted);
}

.badge {
    padding: 0.375rem 0.6875rem;
    border-radius: 999px;
    background: var(--brass-tint);
    color: var(--brass-ink);
    font: 600 0.875rem/1 var(--sans);
}

.pay-panel {
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    border: 1px solid var(--line);
    border-top: 6px solid var(--brass);
    border-radius: 6px;
    background: var(--white);
}

.pay-panel .button {
    width: 100%;
}

.pay-panel__note {
    font-size: 0.9375rem;
    color: var(--muted);
}

.invoice {
    margin: 0;
    padding: 0.875rem 1.125rem;
    border: 1px dashed var(--field-line);
    border-radius: 4px;
    background: #fafbf9;
}

.invoice figcaption {
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.invoice table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.invoice th,
.invoice td {
    padding: 0.3125rem 0;
}

.invoice th {
    font-weight: 400;
    text-align: left;
}

.invoice td {
    text-align: right;
}

.invoice tfoot th,
.invoice tfoot td {
    padding-top: 0.5rem;
    border-top: 1px solid var(--spruce);
    font-weight: 600;
}

/* Footer */

.site-footer {
    padding-block: 2rem;
    background: var(--spruce);
    color: #dce5df;
}

.site-footer__inner {
    display: grid;
    justify-items: start;
    gap: 0.5rem;
}

.site-footer a {
    color: var(--white);
}

.site-footer__contact {
    font-style: normal;
    line-height: 1.6;
}

.site-footer__legal {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #b9c8bf;
}
