/* Local, deterministic styles for the server-rendered EchoReply templates. */

/* Tailwind-compatible reset for the utility classes below. */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }

button,
input,
optgroup,
select,
textarea {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}

button, select { text-transform: none; }
button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--charcoal-soft); opacity: 1; }
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; }
summary { display: list-item; }

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre { margin: 0; }

fieldset { margin: 0; padding: 0; }
legend { padding: 0; }
ol, ul, menu { margin: 0; padding: 0; list-style: none; }
img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
}
img, video { max-width: 100%; height: auto; }
[hidden] { display: none; }

/* Utilities used across frontend/templates. */
.block { display: block; }
.inline { display: inline; }
.flex { display: flex; }
.grid { display: grid; }
.h-7 { height: 1.75rem; }
.w-7 { width: 1.75rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.flex-1 { flex: 1 1 0%; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.self-start { align-self: flex-start; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: .5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-9 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-7 { margin-bottom: 1.75rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-9 { padding: 2.25rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-3 { padding-bottom: .75rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-semibold { font-weight: 600; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-widest { letter-spacing: .1em; }
.text-white { color: rgb(255 255 255); }
.underline { text-decoration-line: underline; }
.underline-offset-4 { text-underline-offset: 4px; }
.rounded-full { border-radius: 9999px; }
.resize-y { resize: vertical; }
.cursor-pointer { cursor: pointer; }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-start { align-items: flex-start; }
    .sm\:items-center { align-items: center; }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:items-start { align-items: flex-start; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
}

/* EchoReply design system. */
:root {
    --bone: #f5eee6;
    --bone-warm: #eee3d8;
    --cream: #fffaf5;
    --blush: #e8c5bc;
    --rose: #9a493f;
    --rose-dark: #83453b;
    --terracotta: #6e3a30;
    --charcoal: #2a1f1e;
    --charcoal-mid: #5c4a45;
    --charcoal-soft: #6e5a55;
    --hairline: rgba(110, 58, 48, .17);
    --control-border: #9f7d74;
}

body {
    min-height: 100vh;
    background: var(--bone);
    color: var(--charcoal);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, .font-brand { font-family: Georgia, "Times New Roman", serif; }

main,
.card,
.field,
p,
dd,
strong,
span,
h1,
h2,
h3 { min-width: 0; overflow-wrap: anywhere; }

.card {
    background: var(--cream);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(69, 42, 37, .04);
}

.btn-pink,
.btn-dark,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    white-space: normal;
    text-align: center;
    font: 600 .75rem ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}

.btn-pink { color: white; background: var(--rose); border: 1px solid var(--rose); }
.btn-dark { color: white; background: var(--charcoal); border: 1px solid var(--charcoal); }
.btn-outline { color: var(--charcoal); background: transparent; border: 1px solid var(--control-border); }
.btn-pink:hover, .btn-dark:hover, .btn-outline:hover { transform: translateY(-1px); }
.btn-pink:hover { background: var(--rose-dark); }
.btn-outline:hover { color: var(--rose-dark); border-color: var(--rose); }
.btn-pink:disabled, .btn-dark:disabled { cursor: not-allowed; opacity: .45; transform: none; }

.field {
    width: 100%;
    border: 1px solid var(--control-border);
    border-radius: 3px;
    background: white;
    color: var(--charcoal);
    padding: .8rem .9rem;
}

.field:focus { outline: 3px solid var(--rose); outline-offset: 2px; }
.skip-link {
    position: fixed;
    z-index: 1000;
    top: .75rem;
    left: .75rem;
    transform: translateY(-200%);
    padding: .65rem .85rem;
    color: white;
    background: var(--charcoal);
    border-radius: 3px;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--rose); }
.notice {
    border-left: 3px solid var(--rose);
    background: var(--cream);
    color: var(--charcoal-mid);
    padding: .85rem 1rem;
}
.notice-error { border-left-color: var(--terracotta); color: var(--terracotta); }

@media (max-width: 639px) {
    .site-nav-inner { flex-wrap: wrap; row-gap: .75rem; }
    .site-nav-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}
