/* Palette matches the WaterlooBae WordPress blog theme for visual consistency. */
:root {
    --brand: #cc3366;
    --text: #333333;
    --muted: #6b6b6b;
    --bg: #ffffff;
    --border: #e5e5e5;
}

* { box-sizing: border-box; }

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.site-header .wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-title {
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--brand);
}

.site-title a { color: inherit; }

nav.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav.main-nav a {
    font-size: 1rem;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.container.wide {
    max-width: 1080px;
}

.container > p.lede {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: -0.5rem;
}

.iframe-wrap {
    width: 1024px;
    max-width: 100%;
    height: 80vh;
    min-height: 500px;
    margin: 0 auto;
    border: 1px solid var(--border);
    overflow: hidden;
}

.iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

h1.page-title {
    font-weight: 500;
    font-size: 2.5rem;
    margin: 0 0 0.75rem;
}

h2.section-title {
    font-weight: 500;
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

h2.section-title:first-of-type {
    border-top: none;
    padding-top: 0;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
}

@media (max-width: 700px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0 2.5rem;
}

.tile {
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.tile:hover {
    border-color: var(--brand);
    text-decoration: none;
}

.tile .tile-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.tile h2 {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--brand);
}

.tile p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

article.entry {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

article.entry:last-child { border-bottom: none; }

article.entry h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 500;
}

article.entry h3 a { color: var(--brand); }

article.entry p {
    margin: 0 0 0.5rem;
    color: var(--text);
}

.entry-links {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
}

footer.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

pre {
    background: #f6f6f6;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.85rem;
}

code { font-family: 'SFMono-Regular', Consolas, monospace; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1rem 0;
}

th, td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

thead { background: #f6f6f6; }
