:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17233b;
    background: #f4f1e8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% 0%, rgb(30 70 140 / 14%), transparent 34rem),
        #f4f1e8;
}

a {
    color: inherit;
}

.site-header {
    display: flex;
    width: min(72rem, calc(100% - 2rem));
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
    padding: 1.2rem 0;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-form {
    margin: 0;
}

.site-header nav > a:not(.button),
.text-link,
.back-link {
    color: #163f78;
    font-weight: 700;
    text-decoration-thickness: .08em;
    text-underline-offset: .2em;
}

.brand {
    font-family: Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -.04em;
    text-decoration: none;
}

.brand span {
    color: #b23a32;
}

.shell {
    width: min(68rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 8rem) 0;
}

.shell-narrow {
    width: min(44rem, calc(100% - 2rem));
}

.eyebrow {
    margin: 0 0 1rem;
    color: #b23a32;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1 {
    max-width: 13ch;
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(3rem, 8vw, 6.8rem);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -.055em;
}

h1.page-title {
    max-width: 18ch;
    font-size: clamp(2.5rem, 7vw, 5rem);
}

h2 {
    font-family: Georgia, serif;
    font-weight: 500;
}

.lede {
    max-width: 47rem;
    margin: 2rem 0 0;
    color: #516078;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.25rem;
    border: 0;
    border-radius: .65rem;
    background: #b23a32;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button-small {
    min-height: 2.45rem;
    padding: .55rem .9rem;
}

.button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.panel {
    padding: clamp(1.4rem, 4vw, 2.2rem);
    border: 1px solid #d8d2c3;
    border-radius: 1rem;
    background: rgb(255 255 255 / 66%);
    box-shadow: 0 1rem 3rem rgb(22 43 80 / 7%);
}

.form-stack {
    display: grid;
    gap: 1.1rem;
    margin-top: 2rem;
}

.form-stack label {
    display: grid;
    gap: .45rem;
    color: #263957;
    font-weight: 750;
}

.form-stack input:not([type="checkbox"]),
.form-stack textarea {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid #bbb5a7;
    border-radius: .55rem;
    background: #fff;
    color: #17233b;
    font: inherit;
}

.form-stack input:focus,
.form-stack textarea:focus {
    border-color: #163f78;
    outline: 3px solid rgb(22 63 120 / 15%);
}

.form-stack small,
.ticket-row small {
    color: #667085;
    font-weight: 500;
}

.form-grid,
.dashboard-grid,
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.check-row {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    font-weight: 500 !important;
}

.form-errors,
.flash {
    width: min(68rem, calc(100% - 2rem));
    margin: 1rem auto;
    padding: 1rem 1.2rem;
    border-radius: .7rem;
    background: #fce8e6;
    color: #84291f;
}

.flash-success {
    background: #e5f5eb;
    color: #175c35;
}

.form-foot {
    text-align: center;
}

.dashboard-grid,
.support-grid {
    margin-top: 3rem;
}

.feature-card,
.ticket-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-kicker {
    color: #b23a32;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ticket-list {
    gap: .8rem;
}

.ticket-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #d8d2c3;
    text-decoration: none;
}

.ticket-row span {
    display: grid;
    gap: .25rem;
}

.ticket-row em {
    color: #516078;
    font-size: .85rem;
    font-style: normal;
}

.conversation {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.message {
    max-width: 88%;
    padding: 1.15rem;
    border-radius: .85rem;
    background: #fff;
}

.message-user {
    justify-self: end;
    background: #e7edf7;
}

.message header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #516078;
    font-size: .8rem;
}

.message p {
    margin-bottom: 0;
    line-height: 1.55;
}

.inline-form {
    margin-top: 1rem;
    text-align: right;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #84291f;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 3.5rem 0;
    overflow: hidden;
    border: 1px solid #d8d2c3;
    border-radius: 1rem;
    background: #d8d2c3;
}

.metrics article {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.5rem;
    background: rgb(255 255 255 / 58%);
}

.metrics strong {
    color: #163f78;
    font-family: Georgia, serif;
    font-size: 2rem;
}

.metrics span {
    color: #667085;
}

.themes {
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 1rem;
    background: #162b50;
    color: white;
}

.themes h2 {
    margin: 0 0 1.25rem;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
}

.themes ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.themes li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgb(255 255 255 / 18%);
}

.themes li strong {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    background: #f3d36a;
    color: #162b50;
}

@media (max-width: 40rem) {
    .metrics,
    .form-grid,
    .dashboard-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: flex-start;
    }

    .site-header nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        font-size: .9rem;
    }
}
