/* Boulder Trail Runners - Retro Bulletin Board Theme */

:root {
    --bg: #f7f3e9;
    --bg-hi: #fbf9f2;
    --ink: #1e1e1a;
    --muted: #5f5a4a;
    --accent: #355e3b;
    --accent-2: #b84a3a;
    --note: #fffdfa;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    color: var(--ink);
    background: repeating-linear-gradient(90deg, var(--bg) 0 3px, var(--bg-hi) 3px 6px);
    background-attachment: fixed;
    font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
    max-width: 88ch;
    margin-inline: auto;
    padding: 0 1rem;
}

/* Site Header */
.site-head {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(120%) blur(2px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    z-index: 100;
}

.site-head .wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 3rem;
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
    font-size: 2.2rem;
    line-height: 1.2;
}

/* Week Navigation */
.week-nav {
    margin: .5rem 0 1rem;
    text-align: left;
}

.week-nav a,
.week-nav span {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
}

.week-nav a:hover {
    text-decoration: underline;
}

.week-nav .sep {
    display: inline-block;
    margin: 0 .35rem;
    color: var(--muted);
}

.week-nav .ghost {
    visibility: hidden;
}

.week-nav .next-slot {
    min-width: 9.5rem;
}

/* Note Cards (Bulletin Board Style) */
.notes {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.note {
    position: relative;
    background: var(--note);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: var(--radius);
    padding: 1rem 1rem 1.2rem;
    box-shadow: 0 .5px 0 rgba(0, 0, 0, .06), 0 8px 18px rgba(0, 0, 0, .04);
}

/* Pushpin Effect */
.note::before {
    content: "";
    position: absolute;
    top: .6rem;
    left: .8rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 55%),
                radial-gradient(circle at 50% 50%, var(--accent-2) 0 60%, #8a332a 61%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 1px .5px rgba(0, 0, 0, .2);
}

/* Perforated Edge Effect */
.note::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 10px;
    -webkit-mask: radial-gradient(6px 6px at 12px 50%, transparent 98%, #000) repeat-x;
    -webkit-mask-size: 24px 10px;
    mask: radial-gradient(6px 6px at 12px 50%, transparent 98%, #000) repeat-x;
    mask-size: 24px 10px;
    background: rgba(0, 0, 0, .08);
    opacity: .35;
    pointer-events: none;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.note h2 {
    margin: .2rem 0 .4rem;
    font-size: 1.05rem;
}

.note h2 .small {
    font-weight: 400;
    color: var(--muted);
    font-size: .95rem;
    margin-left: .45rem;
}

/* Lists inside notes */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    padding: .45rem 0;
    border-top: 1px dotted rgba(0, 0, 0, .12);
}

li:first-child {
    border-top: none;
}

.time {
    color: var(--muted);
    margin-left: .4rem;
}

.loc {
    color: var(--muted);
    margin-left: .6rem;
}

.notes li a {
    color: var(--ink);
}

.notes li a:hover {
    color: var(--accent);
}

.placeholder {
    color: #6e6857;
}

/* General Links */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn,
.nav-button {
    display: inline-block;
    padding: .6rem 1.2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover,
.nav-button:hover {
    background: #2a4a2f;
    text-decoration: none;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}
