:root {
    --denim: #0B1833;
    --space: #2C3A51;
    --steel: #BFC7DA;
    --steel-light: #E2E7F0;
    --rust: #C4581A;
    --copper: #D4845A;
    --ghost: #F8F9F4;
    --gray-dark: #475569;
    --white: #FFFFFF;
    --border: rgba(11, 24, 51, 0.08);
    --sage: #7B9464;
    --amber: #E8A84C;
    --font-body: 'Aptos', 'DM Sans', Calibri, 'Segoe UI', sans-serif;
    --font-display: 'DM Sans', 'Aptos', Calibri, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--denim);
    color: var(--steel);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
}

.wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: var(--steel-light);
    color: var(--denim);
    border-bottom: 2px solid var(--rust);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand-logo {
    height: 36px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--denim);
    letter-spacing: -0.01em;
}
.brand-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-dark);
    letter-spacing: 0.02em;
}
.top-nav a {
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.top-nav a:hover { color: var(--rust); }

/* Main */
.main-content {
    padding-top: 40px;
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Hero */
.hero { margin-bottom: 4px; }
.hero-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    margin: 6px 0 8px;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--steel);
    margin: 0;
}
.hero-sub strong { color: var(--white); }
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--rust);
    text-transform: uppercase;
    letter-spacing: 0.25em;
}
.divider {
    margin-top: 24px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--rust) 0%, transparent 100%);
}

.section-heading {
    margin-bottom: 12px;
}
.section-heading h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin: 4px 0 0;
    letter-spacing: -0.01em;
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 1px 2px rgba(11, 24, 51, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
    box-shadow: 0 6px 18px rgba(11, 24, 51, 0.08);
    border-color: rgba(196, 88, 26, 0.22);
}
.card-head { margin-bottom: 14px; }
.card-head h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--denim);
    margin: 4px 0 0;
}

/* Two-column for summary */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.lede {
    font-size: 1rem;
    color: var(--denim);
    line-height: 1.6;
    margin: 0 0 16px;
}
.sub-head {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--space);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0 0 10px;
}
.muted { color: var(--gray-dark); opacity: 0.72; }
.muted.small { font-size: 0.85rem; }

/* Action items */
.action-list { list-style: none; padding: 0; margin: 0; }
.action-list li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}
.action-list li:last-child { border-bottom: none; }
.owner {
    font-weight: 700;
    color: var(--rust);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    min-width: 100px;
}
.task { flex: 1; color: var(--denim); }
.due {
    font-size: 0.78rem;
    color: var(--gray-dark);
    background: var(--steel-light);
    padding: 2px 8px;
    border-radius: 999px;
}

/* Files */
.files-list { list-style: none; padding: 0; margin: 0; }
.files-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}
.files-list li:last-child { border-bottom: none; }
.files-list a {
    color: var(--rust);
    text-decoration: none;
    font-weight: 600;
}
.files-list a:hover { text-decoration: underline; }
.file-note { color: var(--gray-dark); font-size: 0.9rem; }

/* History */
.history-list { list-style: none; padding: 0; margin: 0; }
.history-list li { border-bottom: 1px solid var(--border); }
.history-list li:last-child { border-bottom: none; }
.history-list a {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: var(--denim);
}
.history-list a:hover .hist-title { color: var(--rust); }
.hist-date { font-weight: 600; color: var(--space); font-size: 0.9rem; }
.hist-title { font-size: 0.98rem; }
.hist-actions { font-size: 0.78rem; color: var(--gray-dark); }

/* Rocks */
.rocks-section { display: flex; flex-direction: column; gap: 20px; }
.category-block { display: flex; flex-direction: column; gap: 14px; }
.category-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 0 4px 6px;
    border-bottom: 2px solid var(--rust);
}
.category-heading h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.01em;
}
.category-count {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rust);
    letter-spacing: 0.02em;
}
.people-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.person-card { padding: 20px 22px; }
.person-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}
.person-head strong {
    font-family: var(--font-display);
    color: var(--denim);
    font-size: 1.05rem;
    display: block;
}
.person-role {
    font-size: 0.7rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-top: 2px;
}
.person-count {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rust);
    background: rgba(196, 88, 26, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.rocks-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.rock {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}
.rock:last-child { border-bottom: none; }
.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1;
    margin-top: 2px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.check:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(196, 88, 26, 0.15);
}
.check:active:not(:disabled) { transform: scale(0.95); }
.check:disabled, .check.is-loading { cursor: wait; opacity: 0.6; }
.rock-complete .check {
    background: var(--sage);
    color: var(--white);
    border: 1px solid var(--sage);
}
.rock-incomplete .check {
    background: var(--white);
    color: var(--steel);
    border: 1.5px solid var(--steel);
}
.rock-body { min-width: 0; }
.rock-title {
    color: var(--denim);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
}
.rock-title a { color: var(--denim); text-decoration: none; }
.rock-title a:hover { color: var(--rust); }
.rock-complete .rock-title { text-decoration: line-through; opacity: 0.65; }
.rock-notes {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-top: 4px;
    line-height: 1.4;
}
.rock-due {
    font-size: 0.75rem;
    color: var(--gray-dark);
    background: var(--steel-light);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    margin-top: 2px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--rust);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}
.btn-primary:hover { background: #A84713; }

.source { margin-top: 14px; }
.source a { color: var(--rust); text-decoration: none; font-weight: 600; }
.source a:hover { text-decoration: underline; }

.meta {
    font-size: 0.78rem;
    color: var(--gray-dark);
    margin-top: 12px;
}

code {
    background: var(--steel-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

/* Bulleted summary */
.bullet-summary {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bullet-summary li {
    position: relative;
    padding-left: 22px;
    color: var(--denim);
    line-height: 1.5;
    font-size: 0.98rem;
}
.bullet-summary li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--rust);
}

/* Action items with buttons */
.action-item {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}
.action-item:last-child { border-bottom: none; }
.action-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.action-body .task {
    color: var(--denim);
    font-size: 0.95rem;
    line-height: 1.4;
}
.action-complete .action-body .task,
.action-complete .action-body .owner {
    text-decoration: line-through;
    opacity: 0.55;
}
.action-right, .todo-right, .rock-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Pill buttons */
.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: var(--gray-dark);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.pill-btn:hover:not(:disabled) {
    background: var(--steel-light);
    color: var(--denim);
    border-color: rgba(11, 24, 51, 0.18);
}
.pill-btn:disabled, .pill-btn.is-loading { opacity: 0.5; cursor: wait; }
.pill-btn.danger {
    color: #9B1C1C;
    border-color: rgba(155, 28, 28, 0.2);
}
.pill-btn.danger:hover:not(:disabled) {
    background: rgba(155, 28, 28, 0.08);
    color: #7A1515;
}
.btn-primary.small {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* Todos */
.todo-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
}
.todo {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}
.todo:last-child { border-bottom: none; }
.todo-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.todo-body .task {
    color: var(--denim);
    font-size: 0.95rem;
    line-height: 1.4;
}
.todo-complete .todo-body .task,
.todo-complete .todo-body .owner {
    text-decoration: line-through;
    opacity: 0.55;
}
.source-tag {
    display: inline-block;
    font-size: 0.68rem;
    color: var(--gray-dark);
    background: var(--steel-light);
    padding: 2px 8px;
    border-radius: 999px;
    margin-top: 3px;
    width: fit-content;
    letter-spacing: 0.05em;
}

/* Add-form (inline) */
.add-form {
    display: flex;
    gap: 8px;
    margin: 12px 0 4px;
    padding: 14px;
    background: rgba(226, 231, 240, 0.55);
    border-radius: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.add-form.hidden { display: none; }
.add-form input[type="text"] {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    min-width: 150px;
    flex: 1;
    background: var(--white);
}
.add-form input[type="text"]:focus {
    outline: none;
    border-color: var(--rust);
    box-shadow: 0 0 0 2px rgba(196, 88, 26, 0.15);
}
.form-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.row-between {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    padding: 22px 0;
    color: var(--steel);
    font-size: 0.82rem;
    border-top: 1px solid rgba(191, 199, 218, 0.12);
}
.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.link-btn {
    background: none;
    border: none;
    color: var(--gray-dark);
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 2px 6px;
    font-family: inherit;
}
.link-btn:hover { color: var(--rust); }
