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

:root {
    --bg: #0e0d0b;
    --surface: #1a1816;
    --border: #2a2724;
    --primary: #C49A6C;
    --secondary: #7EBDC2;
    --text: #ccc5b9;
    --muted: #6b6560;
    --radius: 6px;
}

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Accessibility: screen-reader-only heading for SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Header & Nav --- */

header {
    border-bottom: 1px solid var(--border);
    max-width: 640px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.wordmark {
    font-weight: 500;
    font-size: 15px;
    color: var(--primary);
}

.location {
    font-size: 13px;
    color: var(--muted);
}

/* --- Main --- */

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px;
}

main > section {
    margin-bottom: 40px;
}

main > section:last-child {
    margin-bottom: 0;
}

/* --- About section --- */

.ref {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.summary {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}

.hook {
    font-size: 15px;
    color: var(--text);
}

/* --- Details --- */

.details {
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px 16px;
}

.details dt {
    color: var(--muted);
    font-size: 13px;
}

.details dd {
    font-size: 14px;
}

/* --- Procedure --- */

h2 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text);
}

.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
}

.steps li {
    counter-increment: step;
    font-size: 14px;
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.steps li:last-child {
    border-bottom: none;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* --- Signup --- */

.signup h2 {
    margin-bottom: 20px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input,
.field select {
    width: 100%;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 150ms ease;
}

.field input:focus,
.field select:focus {
    border-color: var(--primary);
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b6560'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

button[type="submit"] {
    width: 100%;
    padding: 10px 16px;
    background: var(--primary);
    color: var(--bg);
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 150ms ease;
    margin-top: 8px;
}

button[type="submit"]:hover {
    opacity: 0.85;
}

button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: default;
}

.form-status {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
    min-height: 20px;
}

.form-status.success {
    color: var(--secondary);
}

.form-status.error {
    color: #b5706b;
}

/* --- FAQ --- */

.faq dl {
    border-top: 1px solid var(--border);
}

.faq dt {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding-top: 16px;
    padding-bottom: 4px;
}

.faq dd {
    font-size: 14px;
    color: var(--muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

/* --- Footer --- */

footer {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 24px;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 13px;
    color: var(--muted);
}

.fine {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    opacity: 0.7;
}

/* --- Responsive --- */

@media (max-width: 480px) {
    main {
        padding: 32px 16px;
    }

    nav {
        padding: 16px;
    }

    .details {
        grid-template-columns: 90px 1fr;
        gap: 6px 12px;
    }
}