:root {
    --paper: #f2f0e9;
    --paper-dark: #e6e2d8;
    --ink: #11110f;
    --muted: #66635c;
    --line: #bdb9af;
    --orange: #ff4d12;
    --orange-dark: #db3c08;
    --max-width: 1680px;
    --mono: "Courier New", Courier, monospace;
    --sans: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

svg {
    display: block;
    width: 100%;
    height: 100%;
}

.site-shell {
    width: min(100%, var(--max-width));
    min-height: 100vh;
    margin: 0 auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: var(--paper);
}

.site-header {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-wordmark {
    letter-spacing: -.08em;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.brand-wordmark sup {
    font-size: 8px;
    letter-spacing: 0;
}

.brand-program {
    padding-left: 14px;
    border-left: 1px solid var(--ink);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
}

.desktop-nav {
    display: flex;
    gap: 46px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.desktop-nav a,
.member-link {
    transition: color .2s ease;
}

.desktop-nav a:hover,
.member-link:hover {
    color: var(--orange);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.member-link,
.menu-button {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-link {
    width: 18px;
    height: 18px;
}

.profile-link svg,
.menu-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.menu-button {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    padding: 0;
    color: var(--ink);
    background: transparent;
}

.menu-button span {
    display: none;
}

.menu-button svg {
    width: 24px;
    height: 24px;
}

.system-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    min-height: 42px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
}

.system-location,
.system-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-meta {
    gap: 32px;
}

.system-meta strong {
    color: var(--orange);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.mobile-menu {
    position: absolute;
    z-index: 50;
    top: 76px;
    right: 0;
    left: 0;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.mobile-menu a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
}

.field-briefing {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr .9fr;
    border-bottom: 1px solid var(--line);
}

.next-event-panel,
.route-map-panel,
.upcoming-events-panel {
    min-height: 540px;
}

.next-event-panel {
    display: flex;
    flex-direction: column;
    padding: 34px 36px 32px;
    border-right: 1px solid var(--line);
}

.eyebrow,
.archive-id,
.stat span,
.event-meta-line,
.event-row-data,
.event-date,
.section-heading,
.mini-route-list,
.notes-list,
.conditions-data,
.footer-base,
.footer-links {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
}

.eyebrow-orange {
    color: var(--orange);
    font-weight: 700;
}

.next-event-panel h1 {
    max-width: 520px;
    margin: 20px 0 10px;
    letter-spacing: -.065em;
    font-size: clamp(48px, 4vw, 78px);
    font-weight: 900;
    line-height: .9;
    text-transform: uppercase;
}

.archive-id {
    font-weight: 700;
}

.event-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: auto;
    padding-top: 34px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat > span:first-child {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.stat svg {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.4;
}

.stat strong {
    font-size: 13px;
    text-transform: uppercase;
}

.stat span:last-child {
    color: var(--muted);
    font-size: 9px;
}

.event-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.event-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}

.button-primary {
    border-color: var(--orange);
    color: var(--ink);
    background: var(--orange);
}

.button-primary:hover {
    background: var(--orange-dark);
}

.button-outline {
    background: transparent;
}

.button-outline:hover {
    color: var(--paper);
    background: var(--ink);
}

.spots-left {
    text-align: right;
    text-transform: uppercase;
}

.spots-left span {
    display: block;
    font-family: var(--mono);
    font-size: 9px;
}

.spots-left strong {
    color: var(--orange);
    font-size: 23px;
    line-height: 1;
}

.route-map-panel {
    position: relative;
    overflow: hidden;
    color: #5e5b54;
    border-right: 1px solid var(--line);
    background: #ebe8df;
}

.route-map {
    position: absolute;
    inset: 0;
}

.route-line {
    fill: none;
    stroke: var(--ink);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 8;
}

.route-start,
.route-end {
    fill: var(--ink);
}

.map-coordinates,
.map-label {
    position: absolute;
    z-index: 2;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.map-coordinates {
    top: 18px;
    right: 18px;
    text-align: right;
}

.map-label {
    bottom: 28px;
}

.map-label-left {
    left: 20px;
}

.map-label-right {
    right: 20px;
    text-align: right;
}

.upcoming-events-panel {
    padding: 20px 18px 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.section-heading a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.section-heading a:hover,
.text-link:hover {
    color: var(--orange);
}

.section-heading svg,
.text-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.event-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
}

.event-date {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    line-height: 1.2;
}

.event-date strong {
    color: var(--orange);
}

.event-row h3 {
    margin: 0;
    font-size: 16px;
    line-height: .95;
    text-transform: uppercase;
}

.event-row-data {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.full-width {
    width: 100%;
    margin-top: 18px;
}

.archive-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.05fr 1.15fr;
    border-bottom: 1px solid var(--line);
}

.archive-module {
    min-height: 296px;
    padding: 22px 28px;
    border-right: 1px solid var(--line);
}

.archive-module:last-child {
    border-right: 0;
}

.route-archive-module {
    grid-row: span 2;
}

.route-module-content {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 18px;
    align-items: center;
}

.mini-map {
    width: 128px;
    height: 112px;
    overflow: hidden;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--paper-dark);
}

.route-module-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.route-count {
    display: block;
    grid-column: 2;
    font-size: 32px;
    line-height: 1;
}

.route-count span {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
}

.mini-route-list,
.notes-list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.mini-route-list li {
    display: grid;
    grid-template-columns: 75px 1fr 65px 70px;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 9px;
}

.mini-route-list strong {
    font-family: var(--sans);
    font-size: 10px;
}

.mini-route-list em {
    font-style: normal;
    text-align: right;
}

.notes-list li {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    font-family: var(--sans);
    font-size: 12px;
    line-height: 1.25;
}

.notes-list time {
    font-family: var(--mono);
    font-size: 10px;
}

.notes-list small {
    color: var(--muted);
    font-size: 10px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.conditions-module {
    background: var(--paper-dark);
}

.conditions-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.condition-icon {
    width: 38px;
    height: 38px;
}

.condition-icon svg {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.3;
}

.conditions-main strong {
    font-size: 44px;
    letter-spacing: -.06em;
}

.conditions-main span {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
}

.conditions-data {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 28px;
}

.conditions-data div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.conditions-data span {
    color: var(--muted);
    font-size: 9px;
}

.conditions-data strong {
    font-size: 10px;
}

.photo-module {
    grid-column: 2 / span 2;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.photo-story-preview {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
}

.photo-placeholder {
    height: 72px;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, .1), transparent),
        linear-gradient(20deg, #515b3f 0%, #9b9276 46%, #dad2bd 100%);
}

.photo-story-preview h3 {
    margin: 5px 0;
    font-size: 16px;
    text-transform: uppercase;
}

.photo-story-preview p {
    margin: 0;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
}

.member-access-section {
    display: grid;
    grid-template-columns: 100px minmax(250px, .8fr) minmax(460px, 1.3fr);
    align-items: center;
    gap: 20px;
    min-height: 126px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
}

.access-icon {
    width: 48px;
    height: 48px;
}

.access-icon svg {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.2;
}

.access-copy h2 {
    margin: 0 0 7px;
    font-size: 16px;
    text-transform: uppercase;
}

.access-copy p {
    max-width: 360px;
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.access-form {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 12px;
}

.access-form input {
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    outline: none;
    color: var(--ink);
    background: transparent;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
}

.access-form input:focus {
    border-color: var(--ink);
}

.site-footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    align-items: center;
    min-height: 90px;
    padding: 20px 28px;
    font-size: 10px;
    text-transform: uppercase;
}

.footer-mark {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.footer-compass {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-size: 18px;
}

.footer-base,
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-links {
    align-items: flex-start;
}

.footer-links a:hover {
    color: var(--orange);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 1120px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .desktop-nav,
    .member-link {
        display: none;
    }

    .field-briefing {
        grid-template-columns: 1fr 1fr;
    }

    .upcoming-events-panel {
        grid-column: span 2;
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0 18px;
    }

    .upcoming-events-panel .section-heading,
    .upcoming-events-panel .full-width {
        grid-column: 1 / -1;
    }

    .event-row {
        grid-template-columns: 62px 1fr;
    }

    .archive-grid {
        grid-template-columns: 1fr 1fr;
    }

    .route-archive-module {
        grid-row: auto;
        grid-column: span 2;
    }

    .photo-module {
        grid-column: auto;
    }

    .member-access-section {
        grid-template-columns: 70px 1fr;
    }

    .access-form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .site-shell {
        border: 0;
    }

    .site-header {
        min-height: 70px;
        padding: 0 18px;
    }

    .brand-wordmark {
        font-size: 25px;
    }

    .brand-program,
    .profile-link,
    .desktop-only {
        display: none;
    }

    .system-bar {
        min-height: 54px;
        padding: 0 18px;
        align-items: center;
    }

    .system-location {
        max-width: 190px;
        font-size: 9px;
        line-height: 1.35;
    }

    .system-meta {
        display: block;
        font-size: 9px;
        text-align: right;
    }

    .system-meta span:first-child {
        display: none;
    }

    .field-briefing,
    .archive-grid {
        display: block;
    }

    .next-event-panel,
    .route-map-panel,
    .upcoming-events-panel {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .next-event-panel {
        padding: 28px 20px;
    }

    .next-event-panel h1 {
        margin-top: 16px;
        font-size: 48px;
    }

    .event-stats {
        gap: 10px;
        padding-top: 28px;
    }

    .stat strong {
        font-size: 11px;
    }

    .stat span:last-child {
        font-size: 7px;
    }

    .event-meta-line {
        font-size: 9px;
    }

    .event-cta-row {
        align-items: stretch;
        flex-direction: column;
    }

    .event-cta-row .button {
        width: 100%;
    }

    .spots-left {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .route-map-panel {
        min-height: 370px;
    }

    .upcoming-events-panel {
        display: block;
        padding: 20px;
    }

    .event-row {
        grid-template-columns: 80px 1fr;
    }

    .archive-module {
        min-height: auto;
        padding: 22px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .route-module-content {
        grid-template-columns: 105px 1fr;
    }

    .mini-map {
        width: 105px;
        height: 92px;
    }

    .mini-route-list li {
        grid-template-columns: 68px 1fr;
    }

    .mini-route-list em {
        display: none;
    }

    .conditions-data {
        grid-template-columns: 1fr 1fr;
    }

    .photo-story-preview {
        grid-template-columns: 120px 1fr;
    }

    .member-access-section {
        display: block;
        padding: 24px 20px;
    }

    .access-icon {
        margin-bottom: 18px;
    }

    .access-copy {
        margin-bottom: 20px;
    }

    .access-form {
        display: block;
    }

    .access-form input,
    .access-form .button {
        width: 100%;
    }

    .access-form .button {
        margin-top: 10px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 26px 20px;
    }

    .footer-links {
        flex-direction: row;
        gap: 18px;
    }
}