/* shared.css — Base styles used across all pages */

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

/* Base */
body {
    font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
    background: #F9FAFB;
    color: #111827;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
}

.container--content {
    max-width: 600px;
    padding: 24px 16px;
}

.container--wide {
    max-width: 800px;
    padding: 40px 20px;
}

/* FOUC prevention — reserve space before components render */
site-header {
    display: block;
    min-height: 72px;
}

site-footer {
    display: block;
    min-height: 56px;
}

/* Header */
header {
    text-align: center;
    padding: 24px 0 20px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.02em;
    text-decoration: none;
    display: inline-block;
}

.site-title .tld {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4B5563;
    letter-spacing: 0;
}

.site-title img {
    vertical-align: middle;
    margin-right: 2px;
}

h1.site-title {
    margin-bottom: 4px;
}

.site-subtitle {
    font-size: 0.875rem;
    color: #4B5563;
    font-weight: 500;
    margin-top: 4px;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #4B5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.back-link:hover {
    color: #111827;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px 16px;
    font-size: 0.75rem;
    color: #4B5563;
}

.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-links a {
    color: #4B5563;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #111827;
}

/* Content Card */
.content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Sub-page Typography */
.content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 20px 0 8px;
}

.content p {
    margin-bottom: 12px;
    color: #374151;
    font-size: 0.9375rem;
}

.content ul {
    margin: 0 0 12px 20px;
    color: #374151;
    font-size: 0.9375rem;
}

.content ul li {
    margin-bottom: 6px;
}
