/* Uncommon Parenting — minimal serif aesthetic, system-only fonts (no Google
   Fonts so visitors aren't pinged by a third party for typography). */

:root {
    --bg:        #f7f2e8;
    --ink:       #2a2622;
    --muted:    #6f655a;
    --accent:    #8a4a55;
    --accent-2: #c4a47a;
    --card:      #fffaf1;
    --line:      #e6dcc7;
    --maxw:     720px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Georgia, "EB Garamond", "Iowan Old Style", "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

.site-header {
    max-width: var(--maxw);
    margin: 4rem auto 2rem;
    padding: 0 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.75rem;
}

.site-name {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-2);
    padding-bottom: 2px;
}
.site-tagline {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-style: italic;
    font-size: 0.95rem;
}

.prose {
    max-width: var(--maxw);
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.hero {
    margin: 2rem 0 2.5rem;
    text-align: center;
}
.hero h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0 0 1rem;
    font-weight: 600;
}
.hero .lede {
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0 auto;
    max-width: 36rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.75rem 1.75rem 1.5rem;
    margin: 1.5rem 0;
}

.card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: var(--accent);
}

.card p { margin: 0 0 0.9rem; }
.card p:last-child { margin-bottom: 0; }

.card ul {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
}
.card ul li { margin-bottom: 0.4rem; }

.newsletter {
    background: linear-gradient(180deg, var(--card), #fff7e9);
}

.newsletter form {
    margin-top: 1rem;
}

.form-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

input[type="email"] {
    flex: 1 1 auto;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font: inherit;
    color: var(--ink);
    min-width: 0;
}
input[type="email"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

button[type="submit"] {
    padding: 0.65rem 1.2rem;
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
}
button[type="submit"]:hover { background: var(--ink); }

.consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}
.consent input { margin-top: 0.25rem; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.site-footer {
    max-width: var(--maxw);
    margin: 3rem auto 2.5rem;
    padding: 1.5rem 1.5rem 0;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}
.site-footer nav a {
    margin: 0 0.6rem;
}
.muted { color: var(--muted); margin-top: 0.6rem; }

@media (max-width: 540px) {
    body { font-size: 17px; }
    .hero h1 { font-size: 1.9rem; }
    .form-row { flex-direction: column; }
}
