:root {
    --bg: #F9F9F9;
    --text: #141413;
    --muted: #66655F;
    --accent: #D94E1F;
    --border: #E3E3DE;
    --code-bg: #F0F0EC;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 3rem 1.5rem 4rem;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 650px;
}

h1, h2, h3, code, pre, .mono, .brand, nav a {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Header & Navigation */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
}

.brand:hover {
    color: var(--accent);
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.site-nav a {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-nav a[aria-current="page"] {
    font-weight: 600;
    color: var(--accent);
}

/* Typography & Sections */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem 0;
    line-height: 1.25;
}

.promise {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0 0 2rem 0;
}

.page-intro {
    color: var(--muted);
    margin: 0 0 2rem 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

p, li {
    font-size: 1rem;
    color: var(--text);
}

ul {
    padding-left: 1.2rem;
    margin: 1rem 0;
}

li {
    margin-bottom: 0.4rem;
}

h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

.section-link {
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

.section-link a {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 600;
    text-decoration: none;
}

.section-link a:hover {
    text-decoration: underline;
}

/* Incident logs (details/summary) */
details {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

summary {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

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

details[open] summary {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.incident-body {
    font-size: 0.92rem;
    color: var(--muted);
}

.incident-body p {
    font-size: 0.92rem;
    margin: 0.5rem 0;
    color: var(--muted);
}

.incident-body strong {
    color: var(--text);
}

.incident-body code {
    background: rgba(20, 20, 19, 0.06);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Contact box & Form */
.contact-box {
    background: var(--code-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 2rem;
}

.contact-box h2 {
    margin-top: 0;
}

.email-display {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.email-display:hover {
    text-decoration: underline;
}

.contact-box .section-link {
    margin-bottom: 0;
}

.cf-turnstile {
    margin: 0.25rem 0;
}

form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

select, textarea, input[type="email"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.hp-field {
    display: none !important;
}

button[type="submit"] {
    background: var(--text);
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
}

button[type="submit"]:hover {
    background: var(--accent);
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* Status boxes (contact.php responses) */
.status-box {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--text);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.status-box--error {
    border-left-color: var(--accent);
}

.status-box p:last-child,
.status-box ul:last-child {
    margin-bottom: 0;
}

