@font-face {
    font-family: "Caveat";
    src: url("../fonts/Caveat.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --desk: #552b36;
    --paper: #faf7ef;
    --ink: #352c29;
    --muted: #70655f;
    --wine: #723344;
    --blue: #36546c;
    --rule: #dcd5c8;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; padding: 22px; background: var(--desk); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.landing { max-width: 1440px; margin: auto; padding: 0 6.1%; background: var(--paper); box-shadow: 0 12px 45px #24121c24; }
.skip-link { position: absolute; left: 30px; top: -100px; z-index: 10; background: var(--paper); padding: 10px 18px; }
.skip-link:focus { top: 30px; }
.site-messages { margin: 24px 0 0; padding: 14px 18px; border-left: 3px solid var(--wine); background: #eeece2; font-size: 14px; }
.site-messages p { margin: 0; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: 24px; letter-spacing: -.6px; }
.brand svg { width: 36px; height: 32px; color: var(--wine); flex-shrink: 0; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.nav-entry { display: inline-flex; gap: 20px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--wine); color: var(--wine); font-weight: 600; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 5%; padding: 80px 0 78px; }
.eyebrow { margin: 0 0 21px; color: var(--wine); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.8px; }
.eyebrow > span { margin-right: 6px; font-size: 17px; vertical-align: -1px; }
h1, h2, h3, p, figure { margin-top: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 4.7vw, 72px); font-weight: 400; line-height: 1.12; letter-spacing: -2.7px; margin-bottom: 24px; }
h1 em { color: var(--wine); font-weight: 400; }
.hero-description { max-width: 430px; margin-bottom: 29px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; min-height: 54px; padding: 13px 23px; background: var(--wine); color: #fffaf3; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s; }
.primary-link:hover { background: #552334; }
.primary-link > span { font-size: 22px; line-height: 1; }
.cta-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.letter-scene { position: relative; width: 100%; max-width: 445px; margin: 0 auto; padding: 8px 18px 62px 8px; }
.letter-underlay { position: absolute; inset: 10px 18px 75px 8px; background: #e7decf; border: 1px solid #d7cbb9; transform: rotate(4deg); }
.sample-letter { position: relative; padding: 23px 29px 20px 35px; color: var(--blue); background-color: #fffdf6; background-image: repeating-linear-gradient(transparent 0, transparent 35px, #718a9d24 35px, #718a9d24 36px); background-position: 0 8px; box-shadow: 0 14px 28px #42312617; transform: rotate(-4deg); }
.paper-clip { position: absolute; width: 17px; height: 49px; top: -15px; left: 44%; border: 2px solid #988476; border-radius: 10px 10px 8px 8px; transform: rotate(8deg); }
.paper-clip::after { content: ""; position: absolute; inset: 5px 3px 9px; border: 1px solid #988476; border-bottom: 0; border-radius: 6px 6px 0 0; }
.letter-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; font-family: sans-serif; font-size: 8px; letter-spacing: 1.4px; color: #7c7268; }
.stamp { display: grid; place-items: center; width: 42px; height: 48px; border: 1px dashed #95626a; outline: 1px solid #95626a; outline-offset: -4px; font-size: 28px; color: var(--wine); }
.letter-greeting, .letter-intro, .letter-wishes, .letter-signature { font-family: "Caveat", "Segoe Print", cursive; font-weight: 400; }
.letter-greeting { font-size: 43px; line-height: 1; margin-bottom: 18px; }
.letter-intro { margin-bottom: 14px; font-size: 24px; line-height: 1.5; }
.letter-wishes { list-style: none; padding: 0; margin: 0; font-size: 24px; line-height: 36px; }
.letter-wishes li { white-space: nowrap; }
.letter-wishes span { display: inline-block; margin-right: 10px; font-size: 22px; }
.letter-signature { margin: 20px 9px 0 0; text-align: right; font-size: 25px; line-height: 1.15; }
.letter-signature span { display: block; padding-top: 2px; font-size: 32px; }
.gift-note { position: absolute; bottom: 30px; left: -10px; display: flex; align-items: center; gap: 12px; padding: 12px 21px; background: #ece6d5; color: #635442; box-shadow: 2px 5px 9px #3a27121a; transform: rotate(-7deg); }
.gift-note p { margin: 0; font-family: "Caveat", "Segoe Print", cursive; font-size: 23px; line-height: 1.05; }
.note-star { font-size: 35px; }
.letter-scene figcaption { position: absolute; bottom: -7px; right: 8px; color: var(--muted); font-size: 10px; letter-spacing: .2px; }
.how-it-works { padding: 36px 0 42px; border-top: 1px solid var(--rule); }
.section-heading { display: flex; align-items: baseline; gap: 28px; justify-content: space-between; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 0; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: 29px; line-height: 1.25; font-weight: 400; letter-spacing: -.6px; }
.section-heading h2 { margin-bottom: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; gap: 35px; padding: 0; margin: 0; }
.steps li + li { border-left: 1px solid var(--rule); padding-left: 30px; }
.step-number { color: var(--wine); font-family: "Caveat", "Segoe Print", cursive; font-size: 25px; }
h3 { margin: 7px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.3; font-weight: 400; letter-spacing: -.3px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.privacy-note { display: flex; align-items: center; gap: 27px; padding: 27px 30px; margin-bottom: 38px; background: #eeece2; }
.privacy-envelope { flex-shrink: 0; width: 56px; height: 56px; color: #69715d; }
.privacy-note h2 { margin: 0 0 8px; font-size: 25px; }
.privacy-note p { max-width: 750px; margin: 0; font-size: 12px; line-height: 1.8; color: #605f52; }
.privacy-flourish { margin-left: auto; padding-left: 14px; color: #657058; font-family: "Caveat", "Segoe Print", cursive; font-size: 35px; transform: rotate(-10deg); }
.site-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 25px; padding: 21px 0 27px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 10px; }
.site-footer p { margin: 0; }
.site-footer p span { padding: 0 7px; }
.site-footer a { white-space: nowrap; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (min-width: 1600px) { .landing { padding-left: 88px; padding-right: 88px; } }
@media (max-width: 1050px) {
    .landing { padding: 0 5%; }
    .hero { gap: 4%; padding: 68px 0; }
    h1 { font-size: 52px; }
    .sample-letter { padding-left: 23px; padding-right: 23px; }
    .letter-wishes { font-size: 21px; }
    .letter-intro { font-size: 22px; }
    .letter-wishes span { margin-right: 5px; }
    .steps { gap: 22px; }
    .steps li + li { padding-left: 22px; }
    .section-heading h2 { font-size: 25px; }
    .privacy-flourish { display: none; }
}
@media (max-width: 760px) {
    body { padding: 12px; }
    .landing { padding: 0 7%; }
    .site-header { padding: 20px 0; gap: 12px; }
    .brand { gap: 9px; font-size: 21px; }
    .brand svg { width: 29px; }
    .site-header nav { font-size: 12px; }
    .nav-entry { gap: 10px; }
    .hero { grid-template-columns: 1fr; gap: 52px; padding: 45px 0 42px; }
    h1 { font-size: clamp(43px, 8vw, 58px); letter-spacing: -1.9px; }
    .hero-description { max-width: 500px; font-size: 15px; }
    .eyebrow { font-size: 10px; letter-spacing: 1.3px; margin-bottom: 20px; }
    .letter-scene { max-width: 390px; }
    .sample-letter { padding-left: 28px; padding-right: 28px; }
    .letter-wishes { font-size: 23px; }
    .letter-intro { font-size: 24px; }
    .gift-note { left: 0; }
    .section-heading { display: block; margin-bottom: 24px; }
    .section-heading .eyebrow { margin-bottom: 12px; }
    .section-heading h2 { font-size: 28px; }
    .steps { grid-template-columns: 1fr; gap: 23px; }
    .steps li { position: relative; padding-left: 45px; }
    .steps li + li { padding-left: 45px; border-left: 0; border-top: 1px solid var(--rule); padding-top: 23px; }
    .step-number { position: absolute; left: 0; top: -1px; }
    .steps li + li .step-number { top: 22px; }
    h3 { margin-top: 0; }
    .steps p { font-size: 14px; }
    .privacy-note { align-items: flex-start; gap: 15px; padding: 24px 20px; margin-bottom: 28px; }
    .privacy-envelope { width: 32px; height: 38px; }
    .privacy-note h2 { font-size: 23px; }
    .privacy-note p { font-size: 13px; }
    .site-footer { display: block; font-size: 10px; }
    .site-footer a { display: inline-block; padding: 13px 0 0; }
}
@media (max-width: 390px) {
    body { padding: 8px; }
    .landing { padding: 0 6%; }
    .brand { font-size: 18px; gap: 7px; }
    .brand svg { width: 25px; }
    .nav-entry { gap: 6px; font-size: 11px; }
    .hero { padding-top: 35px; }
    .eyebrow { font-size: 9px; letter-spacing: 1px; }
    .cta-note { font-size: 10px; }
    .letter-scene { padding-left: 3px; padding-right: 10px; }
    .sample-letter { padding-left: 20px; padding-right: 20px; }
    .letter-greeting { font-size: 39px; }
    .letter-intro { font-size: 21px; }
    .letter-wishes { font-size: 20px; }
    .letter-wishes span { margin-right: 4px; }
    .privacy-note { display: block; }
    .privacy-envelope { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .primary-link { transition: none; }
}
