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

body {
    font-family: 'Iowan Old Style', Charter, Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafaf7;
    padding: 3rem 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    margin-bottom: 3rem;
}

.site-name {
    font-size: 1rem;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}

.site-name a {
    color: #1a1a1a;
    text-decoration: none;
}

nav {
    font-family: system-ui, sans-serif;
    font-size: 0.875rem;
}

nav a {
    color: #1a1a1a;
    text-decoration: none;
    margin-right: 1.25rem;
}

nav a:hover {
    text-decoration: underline;
}

.intro {
    font-size: 1.15rem;
    line-height: 1.55;
    margin-bottom: 3rem;
    max-width: 640px;
}

.section-title {
    padding-left: max(24px, calc((100vw - 900px) / 2 + 24px));
}

h2 {
    font-family: system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
    margin-bottom: 1.5rem;
}

/* Category sections */
.category {
    margin-bottom: 2.5rem;
    padding-left: max(24px, calc((100vw - 900px) / 2 + 24px));
}

.category-heading {
    font-family: 'Iowan Old Style', Charter, Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* Horizontal scroll row */
.scroll-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    padding-right: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-row::-webkit-scrollbar {
    height: 4px;
}

.scroll-row::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-row::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* Cards */
a.card,
a.card:link,
a.card:visited {
    flex: 0 0 300px;
    min-height: 200px;
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: border-color 0.2s, box-shadow 0.2s;
}

a.card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: #1a1a1a;
}

.card-number {
    font-family: system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #bbb;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-family: system-ui, sans-serif;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-top: auto;
}

/* About page */
.about-content p {
    margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding: 2rem max(24px, calc((100vw - 900px) / 2 + 24px));
    border-top: 1px solid #e5e5e0;
    font-family: system-ui, sans-serif;
    font-size: 0.8rem;
    color: #777;
}

.site-footer a {
    color: #777;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer a:hover {
    color: #1a1a1a;
}

.about-footer {
    padding-left: 0;
    padding-right: 0;
    margin-top: 3rem;
}

@media (max-width: 480px) {
    .card {
        flex: 0 0 260px;
        min-height: 180px;
        padding: 1.25rem;
    }
}
