/* Deck My Home: "Paper & Ink" site styles, matching the iOS app. */
:root {
    --paper: #FBF7F0;
    --paper-deep: #F3EDE3;
    --card: #FFFDF9;
    --ink: #1B1A17;
    --ink-muted: rgba(27, 26, 23, 0.64);
    --rule: rgba(27, 26, 23, 0.12);
    --cherry: #A9121F;
    --pine: #2E5A3F;
    --serif: "Newsreader", "New York", "Iowan Old Style", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--cherry); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.wordmark { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.wordmark:hover { text-decoration: none; }
.site-nav { display: flex; gap: 22px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav a { color: var(--ink-muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }

.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 12px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cherry); color: #fff; }
.btn-primary:hover { background: #8f0f1a; }
.btn-outline { background: var(--card); color: var(--ink); border: 1px solid rgba(27, 26, 23, 0.55); }
.btn-outline:hover { background: var(--paper-deep); }

/* Landing */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--cherry); }
.hero p.lede { font-size: 20px; color: var(--ink-muted); max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero figure { border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: var(--card); }
.hero figure img { width: 100%; height: auto; }

.ruled { display: flex; align-items: center; gap: 16px; margin: 8px 0 32px; }
.ruled::before, .ruled::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 8px 0 64px; }
.step .num { font-size: 38px; font-weight: 700; color: var(--cherry); line-height: 1; }
.step h3 { font-size: 22px; margin: 10px 0 6px; }
.step p { color: var(--ink-muted); font-size: 17px; }

.styles-strip { border-top: 1px solid var(--rule); padding: 48px 0 64px; }
.styles-strip h2 { font-size: 32px; font-weight: 600; margin-bottom: 20px; }
.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.style-grid figure { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.style-grid img { aspect-ratio: 1.25; object-fit: cover; width: 100%; }
.style-grid figcaption { padding: 8px 10px; font-size: 15px; text-align: center; }

/* Content pages */
.page { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.page h1 { font-size: 46px; line-height: 1.1; font-weight: 600; margin-bottom: 8px; }
.page .updated { color: var(--ink-muted); font-size: 16px; margin-bottom: 36px; }
.page h2 { font-size: 24px; font-weight: 600; margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--rule); }
.page h3 { font-size: 20px; font-weight: 600; margin: 24px 0 6px; }
.page p, .page li { color: rgba(27, 26, 23, 0.82); margin-bottom: 12px; }
.page ul { padding-left: 22px; }
.page strong { color: var(--ink); }

/* Referral landing */
.invite { max-width: 520px; margin: 0 auto; padding: 56px 20px 72px; text-align: center; }
.invite h1 { font-size: 44px; line-height: 1.1; font-weight: 600; margin: 10px 0 12px; }
.invite p { color: var(--ink-muted); }
.code-card { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 28px 20px; margin: 30px 0; }
.code-card .code { font-size: 46px; font-weight: 700; letter-spacing: 0.18em; color: var(--cherry); margin-top: 6px; }
.invite .actions { display: flex; flex-direction: column; gap: 12px; }
.invite figure { margin-top: 36px; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-family: var(--sans); font-size: 13px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--ink-muted); }
.disclosure { font-style: italic; }

@media (max-width: 820px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
    .hero { padding-top: 32px; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .style-grid { grid-template-columns: repeat(2, 1fr); }
    .site-nav { gap: 14px; }
    .site-nav .hide-sm { display: none; }
    .page h1, .invite h1 { font-size: 36px; }
}
