/* Hello Animals — public site.
   One stylesheet, no external requests: no CDN, no web fonts, no analytics.
   Palette and type scale follow the product design document (§5.1, §6). */

:root {
    --bg: #FFF9F2;
    --surface: #FFFFFF;
    --text: #2F342F;
    --text-secondary: #69716B;
    --accent: #F28B64;
    --divider: #E8E2DA;
    --confirm: #82B98B;

    --measure: 34rem;
    --radius: 14px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

.page {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

/* Header */

.masthead {
    padding: 1rem 0 1.5rem;
    border-bottom: 1px solid var(--divider);
    margin-bottom: 2rem;
}

.masthead a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

.masthead .mark {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
}

.masthead .wordmark {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Type */

h1 {
    font-size: 1.9rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

h2 {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 2.25rem 0 0.6rem;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.4rem;
}

p,
ul,
ol {
    margin: 0 0 1rem;
}

ul,
ol {
    padding-left: 1.35rem;
}

li {
    margin-bottom: 0.4rem;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

a:hover {
    color: var(--accent);
}

strong {
    font-weight: 600;
}

.lede {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 2rem;
}

.note {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin: 1.5rem 0;
}

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

/* Home cards */

.cards {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.cards li {
    margin-bottom: 0.75rem;
}

.cards a {
    display: block;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: var(--text);
}

.cards a:hover {
    border-color: var(--accent);
    color: var(--text);
}

.cards .card-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.cards .card-note {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Facts list on the home page */

.facts {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.facts li {
    padding-left: 1.6rem;
    position: relative;
    color: var(--text-secondary);
}

.facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--confirm);
}

/* Tables */

.table-scroll {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
    border: 1px solid var(--divider);
    border-radius: var(--radius);
    background: var(--surface);
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
}

th,
td {
    text-align: left;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--divider);
    vertical-align: top;
}

th {
    font-weight: 600;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Footer */

.site-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-bottom: 0.9rem;
}

.site-footer p {
    margin: 0;
}

/* Wider screens: the measure stays the same, the page just centres */

@media (min-width: 40rem) {
    .page {
        padding: 2rem 1.5rem 4rem;
    }

    h1 {
        font-size: 2.2rem;
    }
}
