/* Sendit. Navy #062B5C, sky #38A9E8, white #FFFFFF. */

:root {
    --navy: #062B5C;
    --sky: #38A9E8;
    --white: #FFFFFF;
    --paper: #E8F4FC;
    --line: #C5D8EA;
    --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
    --sans: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
    color-scheme: light;
    scroll-padding-top: 5.25rem;
}

[id] {
    scroll-margin-top: 5.25rem;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--navy);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
}

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

h1,
h2,
h3,
.letter-body,
.reading-body,
.composer-body,
.plate-bar p {
    font-family: var(--serif);
    font-weight: 500;
}

h1,
h2 {
    text-wrap: balance;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.05rem, 3vw, 2.85rem);
    max-width: 13em;
}

h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

h3 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    line-height: 1.25;
}

p {
    margin: 0 0 1rem;
}

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

a {
    color: var(--navy);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
}

.skip {
    position: absolute;
    left: 0.5rem;
    top: -4rem;
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    z-index: 30;
    text-decoration: none;
}

.skip:focus {
    top: 0.5rem;
}

.wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.kicker {
    margin: 0 0 0.75rem;
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    display: block;
    width: 2.25rem;
    height: 3px;
    margin-bottom: 0.65rem;
    background: var(--sky);
}

.lede {
    max-width: 38rem;
    font-size: 1.125rem;
}

.fine {
    margin-top: 1.25rem;
    max-width: 38rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    border: 1px solid var(--navy);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s linear, color 0.15s linear, border-color 0.15s linear;
}

.actions .btn {
    flex: 1 1 12rem;
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--sky);
    border-color: var(--sky);
    color: var(--navy);
}

.btn-line {
    background: var(--white);
    color: var(--navy);
}

.btn-line:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-sky {
    background: var(--sky);
    border-color: var(--sky);
    color: var(--navy);
}

.btn-sky:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--navy);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--white);
    border-bottom: 3px solid var(--sky);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 4rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-right: auto;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    text-decoration: none;
}

.logo-mark {
    width: 0.7rem;
    height: 0.7rem;
    background: var(--sky);
}

.logo img {
    height: 2.8rem;
    width: auto;
    max-width: 12rem;
    object-fit: contain;
}

.nav-toggle {
    border: 1px solid var(--navy);
    border-radius: 2px;
    background: var(--white);
    color: var(--navy);
    min-height: 40px;
    padding: 0.4rem 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.35rem 0 1rem;
}

.site-header.is-open .nav {
    display: flex;
}

.nav-link,
.nav-signin {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.nav .btn {
    margin-top: 0.85rem;
}

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

.dateline-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dateline p {
    margin: 0;
}

.hero {
    display: grid;
    gap: 1.75rem;
    padding: 1.75rem 0 2.5rem;
}

.hero-figure {
    margin: 0;
}

.hero-figure img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center 62%;
    border-bottom: 3px solid var(--sky);
    background: var(--paper);
}

.hero-figure figcaption {
    margin-top: 0.65rem;
}

.block {
    padding: 3.25rem 0;
}

.block-tight {
    padding-top: 0.5rem;
}

.section-head {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.desk {
    border: 1px solid var(--navy);
    background: var(--white);
}

.desk-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.7rem 0.9rem;
    background: var(--navy);
    color: var(--white);
}

.mini-btn {
    background: var(--sky);
    color: var(--navy);
    border-radius: 2px;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.desk-folders {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
}

.desk-folders li {
    display: flex;
    gap: 0.45rem;
    align-items: baseline;
    padding: 0.7rem 0.95rem;
    border-bottom: 2px solid transparent;
    font-weight: 700;
    white-space: nowrap;
}

.desk-folders li span {
    font-weight: 400;
}

.desk-folders li.is-current {
    background: var(--paper);
    border-bottom-color: var(--sky);
}

.desk-main {
    display: flex;
    flex-direction: column;
}

.col-label {
    margin: 0;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reading {
    order: 1;
    padding: 1.1rem 1rem 1.35rem;
    border-top: 1px solid var(--line);
}

.thread {
    order: 2;
}

.clients {
    order: 3;
    border-top: 1px solid var(--line);
}

.person,
.thread-item {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
}

.person {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.person span,
.thread-meta {
    font-size: 0.92rem;
}

.person.is-current,
.thread-item.is-current {
    background: var(--paper);
    border-left-color: var(--sky);
}

.thread-subject {
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.thread-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-mark {
    width: 8px;
    height: 8px;
    background: var(--navy);
}

.status-sent .status-mark {
    background: var(--sky);
}

.status-draft .status-mark {
    width: 6px;
    height: 6px;
    background: var(--white);
    border: 1px solid var(--navy);
}

.reading-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.8rem;
}

.reading h3 {
    font-size: 1.45rem;
}

.meta-list {
    margin: 0 0 1rem;
}

.meta-list div {
    display: grid;
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.22rem 0;
}

.meta-list dt {
    font-weight: 700;
    font-size: 0.92rem;
}

.meta-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.reading-body p,
.letter-body p,
.composer-body p {
    margin: 0 0 0.8rem;
}

.plate img {
    width: 100%;
    height: 46vw;
    min-height: 220px;
    max-height: 540px;
    object-fit: cover;
    background: var(--paper);
}

.plate-bar {
    background: var(--navy);
    color: var(--white);
}

.plate-bar p {
    max-width: 20em;
    margin: 0;
    padding: 1.1rem 0;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    line-height: 1.3;
}

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

.split-photo {
    margin: 0;
}

.split-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--paper);
}

.editorial {
    display: grid;
    background: var(--navy);
    color: var(--white);
}

.editorial-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: var(--navy);
}

.editorial-copy {
    padding: 2.4rem 1.25rem 2.8rem;
}

.editorial .kicker {
    color: var(--sky);
}

.editorial h2,
.editorial p {
    color: var(--white);
}

.editorial-copy p {
    max-width: 38rem;
}

.feature-list {
    margin-top: 0.5rem;
}

.feature {
    display: grid;
    gap: 0.35rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--line);
}

.feature:last-child {
    border-bottom: 1px solid var(--line);
}

.feature-num,
.step-num {
    font-family: var(--serif);
    font-size: 1.55rem;
    line-height: 1;
}

.feature p,
.steps p {
    margin: 0;
}

.block-rule {
    border-top: 1px solid var(--line);
}

.how-grid {
    display: grid;
    gap: 2rem;
    margin-top: 1.75rem;
}

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

.steps li {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1.05rem 0;
    border-top: 1px solid var(--line);
}

.steps li:last-child {
    border-bottom: 1px solid var(--line);
}

.composer {
    border: 1px solid var(--navy);
    background: var(--white);
}

.composer-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    background: var(--navy);
    color: var(--white);
}

.composer-row {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-top: 1px solid var(--line);
}

.composer-row span:first-child {
    font-weight: 700;
}

.composer-row span:last-child {
    overflow-wrap: anywhere;
}

.composer-body {
    padding: 1rem 0.9rem 0.4rem;
    font-size: 1.05rem;
}

.composer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.85rem 0.9rem;
    border-top: 1px solid var(--line);
}

.letters {
    background: var(--paper);
}

.letter-grid {
    display: grid;
    gap: 1.25rem;
}

.letter {
    background: var(--white);
    border-top: 4px solid var(--navy);
    padding: 1.35rem 1.2rem 1.5rem;
}

.letter-body {
    font-size: 1.08rem;
}

.rate {
    border-top: 1px solid var(--line);
    padding-top: 3rem;
}

.rate-inner {
    display: grid;
    gap: 1.25rem;
}

.rate-figure {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1;
}

.rate-figure span {
    display: block;
    margin-top: 0.45rem;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
}

.notes {
    border-top: 1px solid var(--line);
}

.notes-grid {
    display: grid;
    margin-top: 1.5rem;
}

.note {
    padding: 1.15rem 0 0.25rem;
    border-top: 1px solid var(--line);
}

.cta {
    background: var(--navy);
    color: var(--white);
}

.cta-inner {
    display: grid;
    gap: 1.25rem;
    padding: 3rem 0;
}

.cta h2,
.cta p {
    color: var(--white);
}

.cta .btn-line {
    background: var(--navy);
    color: var(--white);
    border-color: var(--white);
}

.cta .btn-line:hover {
    background: var(--white);
    color: var(--navy);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0 1.4rem;
    background: var(--white);
}

.footer-inner {
    display: grid;
    gap: 1.25rem;
}

.footer-inner .logo {
    margin-bottom: 0.7rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.footer-links a:hover,
.nav-link:hover,
.nav-signin:hover {
    border-bottom-color: var(--sky);
}

.footer-base {
    margin-top: 1.4rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.auth {
    display: grid;
    gap: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.auth-photo {
    margin: 0;
}

.auth-photo img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--paper);
}

.auth h1 {
    max-width: 14em;
}

.field {
    margin: 0 0 1rem;
}

.field label,
.check {
    font-weight: 700;
}

.field label {
    display: block;
    margin-bottom: 0.35rem;
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--navy);
    border-radius: 2px;
    background: var(--white);
    color: var(--navy);
    font: inherit;
}

.field input:focus {
    outline: 2px solid var(--sky);
    outline-offset: 1px;
    border-color: var(--sky);
}

.field.has-error input {
    border-left: 4px solid var(--sky);
}

.field-error {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.form-error {
    margin: 0 0 1rem;
    padding: 0.7rem 0.85rem;
    background: var(--paper);
    border-left: 4px solid var(--sky);
}

.form-error a {
    font-weight: 700;
}

.check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0.25rem 0 1.1rem;
}

.check input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.28rem;
    accent-color: var(--navy);
}

.hp {
    position: absolute;
    left: -9999px;
}

@media (min-width: 800px) {
    .wrap {
        width: min(1120px, calc(100% - 4rem));
    }

    .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 3rem;
        align-items: end;
        padding-top: 2.5rem;
        padding-bottom: 3.25rem;
    }

    .hero-figure img {
        height: 430px;
    }

    .block {
        padding: 5.25rem 0;
    }

    .block-tight {
        padding-top: 0.75rem;
        padding-bottom: 4rem;
    }

    .section-head {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: end;
    }

    .split {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
        align-items: center;
    }

    .editorial {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .editorial-photo img {
        height: 100%;
        min-height: 560px;
    }

    .editorial-copy {
        padding: 4rem 3.5rem;
    }

    .feature {
        grid-template-columns: 4rem 13rem minmax(0, 1fr);
        gap: 1.25rem;
        align-items: baseline;
    }

    .how-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 3rem;
        align-items: start;
    }

    .letter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .rate-inner {
        grid-template-columns: 1.4fr auto;
        align-items: end;
        gap: 2rem;
    }

    .notes-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .note {
        border-top: 0;
        padding: 0 1.5rem;
        border-left: 1px solid var(--line);
    }

    .note:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .cta-inner {
        grid-template-columns: 1.4fr auto;
        align-items: center;
        padding: 4.25rem 0;
    }

    .cta .actions {
        margin-top: 0;
        justify-content: flex-end;
    }

    .footer-inner {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }

    .footer-links {
        justify-content: flex-end;
    }

    .auth {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 3rem;
        align-items: start;
        padding-top: 2.5rem;
        padding-bottom: 4rem;
    }

    .auth-copy {
        order: -1;
    }

    .auth-photo img {
        height: 100%;
        min-height: 560px;
    }
}

@media (min-width: 960px) {
    .header-inner {
        flex-wrap: nowrap;
        min-height: 4.25rem;
    }

    .logo {
        margin-right: 0;
    }

    .nav-toggle {
        display: none;
    }

    .nav {
        display: flex;
        flex-basis: auto;
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
        margin-left: auto;
        padding: 0;
    }

    .nav-link,
    .nav-signin {
        padding: 0.2rem 0;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
    }

    .nav .btn {
        margin-top: 0;
        margin-left: 0.35rem;
        flex: none;
        white-space: nowrap;
    }

    .desk-main {
        display: grid;
        grid-template-columns: 13.5rem 16rem minmax(0, 1fr);
        min-height: 32rem;
    }

    .reading,
    .thread,
    .clients {
        order: 0;
        border-top: 0;
    }

    .clients,
    .thread {
        border-right: 1px solid var(--line);
    }

    .reading {
        padding: 1.2rem 1.3rem 1.6rem;
    }
}

@media (max-width: 640px) {
    .cta .actions,
    .nav .btn {
        width: 100%;
    }

    .cta .btn,
    .nav .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .nav-toggle {
        transition: none;
    }
}
