:root {
    --navy: #14213d;
    --ink: #0f172a;
    --blue: #2563eb;
    --teal: #14b8a6;
    --paper: #f8fafc;
    --muted: #475569;
    --line: #dce5f1;
}

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 1rem/1.6 Inter, system-ui, sans-serif;
}

.shell {
    width: min(75rem, calc(100% - clamp(2rem, 8vw, 8rem)));
    margin-inline: auto;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    z-index: 2;
    top: .5rem;
    left: .5rem;
    padding: .5rem 1rem;
    background: white;
    transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
    background: white;
    border-bottom: 1px solid var(--line);
}

.header-inner, .footer-inner, .nav-list, .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
}

.header-inner, .footer-inner {
    justify-content: space-between;
    padding-block: 1rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--blue);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.055em;
    text-decoration: none;
}

.wordmark strong { color: var(--navy); }

.brand-mark {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: .55rem;
    color: white;
    background: var(--blue);
}

.brand-mark::before {
    width: .86rem;
    height: .86rem;
    border: 2px solid currentColor;
    border-radius: .15rem;
    transform: rotate(45deg);
    content: "";
}

.nav-list {
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: .875rem;
    font-weight: 650;
}

.nav-list a {
    display: inline-block;
    padding-block: .45rem;
    color: var(--navy);
    text-decoration: none;
}

.nav-list a:hover, .site-footer a:hover { text-decoration: underline; }

.nav-list .nav-post {
    padding-inline: .95rem;
    border: 1px solid #c8d8f6;
    border-radius: .5rem;
    color: #1749ad;
    background: #f4f8ff;
}

.hero {
    color: white;
    background: radial-gradient(ellipse at 77% 5%, #1c396b, transparent 56%), #0b1428;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding-block: clamp(3rem, 6vw, 6rem);
}

.hero-label {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1.1rem;
    color: #b6ccf5;
    font-size: .875rem;
    font-weight: 700;
}

.hero-label::before {
    width: 1.3rem;
    height: 2px;
    background: var(--teal);
    content: "";
}

h1, h2, h3 {
    margin: 0;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.045em;
}

h1 { font-size: clamp(2.9rem, 5.25vw, 5.25rem); }
h1 span { color: #87b1ff; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; }

.hero-copy > p:not(.hero-label) {
    max-width: 29rem;
    margin: 1.3rem 0 0;
    color: #ccd9ed;
    font-size: 1.0625rem;
}

.hero-actions { margin-top: 1.65rem; gap: .65rem; }

.action {
    display: inline-block;
    padding: .7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: .55rem;
    color: white;
    font-size: .93rem;
    font-weight: 750;
    text-decoration: none;
}

.action-primary { background: var(--blue); }
.action-primary:hover { background: #1d4ed8; }
.action-secondary { border-color: #7689ae; }
.action-secondary:hover { background: #203253; }
.hero a:focus-visible, .site-footer a:focus-visible { outline-color: #99f6e4; }

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #4b638b;
    border-radius: 1.2rem;
    box-shadow: 0 1.5rem 4rem #060c1a80;
}

.section-space { padding-block: clamp(3rem, 6vw, 5.25rem); }
.section-intro, .community-card p, .how-list p { color: var(--muted); }
.section-intro { margin: .65rem 0 0; }

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
}

.community-card {
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: .85rem;
    background: white;
    box-shadow: 0 .35rem 1rem #14213d08;
    scroll-margin-top: 1rem;
}

.community-card:target { border-color: var(--blue); }
.community-card p, .how-list p { margin: .55rem 0 0; }

.card-icon {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    margin-bottom: 1.15rem;
    border-radius: .65rem;
    place-items: center;
    color: #1749ad;
    background: #eaf2ff;
}

.icon-pin::before {
    width: .95rem;
    height: .95rem;
    border: 2px solid currentColor;
    border-radius: 50% 50% 50% 0;
    transform: translateY(-.12rem) rotate(-45deg);
    content: "";
}

.icon-jobs::before {
    width: 1rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -.32rem currentColor, 0 .32rem currentColor;
    content: "";
}

.icon-add { font-size: 1.55rem; font-weight: 600; }

.icon-market::before {
    width: 1.05rem;
    height: .85rem;
    border: 2px solid currentColor;
    border-top-width: 4px;
    border-radius: .15rem;
    content: "";
}

.how-section {
    border-top: 1px solid var(--line);
    background: #edf3fc;
}

.how-inner, .how-list {
    display: grid;
    gap: 1.5rem;
}

.how-inner { grid-template-columns: 1fr 3fr; }

.how-list {
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding-left: 1.5rem;
}

.how-list li { padding-left: .25rem; }
.how-list li::marker { color: #1749ad; font-weight: 750; }

.site-footer { background: var(--navy); color: #e2e8f0; font-size: .875rem; }
.footer-inner p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.site-footer a { color: white; }

.nav-button {
    padding: 0;
    border: 0;
    color: inherit;
    background: none;
    font: inherit;
    cursor: pointer;
}

.account-panel { max-width: 40rem; }
.account-panel h1 { margin-bottom: 1.25rem; }
.account-form { margin-top: 1.5rem; }
.account-form label { display: block; font-weight: 650; }
.account-form label:has(+ input[type="checkbox"]) { display: inline; }
.account-form input:not([type="checkbox"]), .account-form textarea, .account-form select {
    display: block;
    width: 100%;
    margin-top: .35rem;
    padding: .55rem .7rem;
    border: 1px solid #64748b;
    border-radius: .4rem;
    background: white;
    color: inherit;
    font: inherit;
}
.account-form .helptext { display: block; color: var(--muted); }
.account-form .errorlist { color: #9f1239; }
.account-messages { margin-top: 1rem; }

.catalog-section { margin-top: 2rem; }
.catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    overflow-wrap: anywhere;
}
.catalog-grid h2, .catalog-grid h3 { margin: 0; font-size: 1.15rem; }
.catalog-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    align-items: end;
    gap: .75rem 1rem;
    margin-bottom: 1.5rem;
}
.catalog-filters p { margin: 0; }
.availability-form { margin: .8rem 0; }
.availability-form select { font: inherit; padding: .35rem; }

.job-panel { max-width: 50rem; overflow-wrap: anywhere; }
.job-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: .45rem 1rem;
    margin-block: 1.25rem;
}
.job-details dt { font-weight: 650; }
.job-details dd { margin: 0 0 .4rem; }
.job-attachment { margin-block: .45rem; }

.notification-list { display: grid; gap: .75rem; padding: 0; list-style: none; }
.notification-list h2 { margin: 0; font-size: 1.15rem; }
.notification-meta { margin-top: .8rem; font-size: .875rem; color: var(--muted); }
.notification-meta button { text-decoration: underline; }
.marketplace-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.listing-cover, .listing-photo { display: block; width: 100%; border-radius: .5rem; background: #eef2f7; }
.listing-cover { aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: .75rem; }
.listing-photo { aspect-ratio: 4 / 3; object-fit: contain; }
.unread-indicator {
    display: inline-block;
    border-radius: .35rem;
    padding: .1rem .35rem;
    background: #d7f5ee;
    color: #134d42;
    font-size: .75rem;
    font-weight: 700;
}

@media (max-width: 58rem) {
    .community-grid { grid-template-columns: repeat(2, 1fr); }
    .how-inner { grid-template-columns: 1fr; }
}

@media (max-width: 44rem) {
    .hero-inner, .how-list { grid-template-columns: 1fr; }
    .hero-image { max-width: 34rem; }
    .header-inner { gap: .5rem 1rem; }
    .nav-list { gap: .25rem 1rem; }
}

@media (max-width: 25rem) {
    .community-grid { grid-template-columns: 1fr; }
}
