/* White Cairn — whitecairn.com.au */

:root {
    --text: #1a1a1a;
    --text-light: #555;
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --accent: #1e3a5f;
    --accent-light: #2c5282;
    --border: #ddd;
    --green: #16a34a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: var(--accent);
    color: #fff;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

header h1 {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 0.9em;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9em;
}

nav a:hover,
nav a.active {
    color: #fff;
}

header a {
    color: inherit;
    text-decoration: none;
}

/* Main sections */
main section {
    padding: 48px 24px;
    border-bottom: 1px solid var(--border);
}

main section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 16px;
    color: var(--accent);
}

h3 {
    font-size: 1.15em;
    margin: 20px 0 8px;
    color: var(--text);
}

h4 {
    font-size: 1em;
    margin: 16px 0 6px;
    color: var(--text-light);
}

p {
    margin-bottom: 12px;
    color: var(--text);
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.feature {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.feature h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1.05em;
}

.feature p {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95em;
}

th, td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--accent);
}

.yes {
    color: var(--green);
    font-weight: 600;
    text-align: center;
}

.no {
    color: #999;
    text-align: center;
}

.note {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 12px;
}

/* Download */
.download-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.download-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
}

.download-item h3 {
    margin: 0 0 4px;
    color: var(--accent);
}

.download-item p {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
}

.btn:hover {
    background: var(--accent-light);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.version {
    display: block;
    margin-top: 10px;
    font-size: 0.85em;
    color: var(--text-light);
}

ol, ul {
    margin: 8px 0 16px 24px;
}

li {
    margin: 4px 0;
}

/* Changelog */
.release {
    margin-bottom: 32px;
}

.release h3 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.release ul {
    font-size: 0.95em;
}

.release code {
    background: var(--bg-alt);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Contact */
.contact-list {
    list-style: none;
    margin-left: 0;
}

.contact-list li {
    margin: 6px 0;
}

.contact-list a {
    color: var(--accent-light);
}

/* Footer */
footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 0.85em;
    color: var(--text-light);
    margin: 0;
}

/* Mobile */
@media (max-width: 600px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav {
        justify-content: center;
    }

    .feature-grid,
    .download-box {
        grid-template-columns: 1fr;
    }
}
