:root {
    --ink: #1c2927;
    --paper: #f6f0e3;
    --paper-light: #fffaf0;
    --coral: #f0644b;
    --coral-dark: #bb3826;
    --yellow: #f2c94c;
    --green: #8ebd9d;
    --blue: #86a8d8;
    --line: rgba(28, 41, 39, 0.18);
    --shadow: 0.55rem 0.55rem 0 var(--ink);
    color-scheme: light;
    font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 20rem;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 12%, rgba(240, 100, 75, 0.14) 0 9rem, transparent 9.1rem),
        radial-gradient(circle at 88% 30%, rgba(134, 168, 216, 0.18) 0 12rem, transparent 12.1rem),
        var(--paper);
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.8rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 0.65rem;
    background: var(--paper-light);
    font-weight: 850;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-shell {
    width: min(100% - 2rem, 74rem);
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--ink);
    border-radius: 1.1rem;
    background: rgba(255, 250, 240, 0.92);
    box-shadow: 0 0.25rem 0 var(--ink);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    width: 2.6rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 0.65rem;
    color: var(--paper-light);
    background: var(--ink);
    transform: rotate(-4deg);
}

.brand__name {
    white-space: nowrap;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-inline: auto;
}

.site-nav a {
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current] {
    background: rgba(28, 41, 39, 0.08);
}

.site-account {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.site-account form {
    margin: 0;
}

.site-account__name,
.site-account__action {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: 0.48rem 0.65rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.site-account__name {
    background: rgba(28, 41, 39, 0.08);
}

.site-account__action {
    color: var(--paper-light);
    background: var(--coral-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.site-account__name:hover,
.site-account__name:focus-visible,
.site-account__name[aria-current],
.site-account__action:hover,
.site-account__action:focus-visible,
.site-account__action[aria-current="page"] {
    box-shadow: inset 0 0 0 2px var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    min-height: 43rem;
    padding: clamp(4rem, 9vw, 7rem) 0;
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: var(--coral-dark);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.status-card h2 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero h1 {
    max-width: 11ch;
    font-size: clamp(3.5rem, 8.5vw, 7rem);
    line-height: 0.88;
}

.hero__intro {
    max-width: 38rem;
    margin: 1.8rem 0 0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.7rem 1.05rem;
    border: 2px solid var(--ink);
    border-radius: 0.75rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translate(-0.15rem, -0.15rem);
    box-shadow: 0.3rem 0.3rem 0 var(--ink);
}

.button--primary {
    color: var(--paper-light);
    background: var(--ink);
}

.button--quiet {
    background: transparent;
}

.button--on-dark {
    color: var(--ink);
    background: var(--paper-light);
    border-color: var(--paper-light);
}

.button--on-dark:focus-visible {
    outline-color: var(--yellow);
}

.noticeboard {
    position: relative;
    min-height: 30rem;
    padding: 3.4rem 1.5rem 1.5rem;
    border: 3px solid var(--ink);
    border-radius: 1.3rem;
    background-color: #c99c68;
    background-image: radial-gradient(rgba(28, 41, 39, 0.13) 0.8px, transparent 0.8px);
    background-size: 6px 6px;
    box-shadow: var(--shadow);
    transform: rotate(1deg);
}

.noticeboard__label {
    position: absolute;
    top: -1.1rem;
    left: 1.5rem;
    margin: 0;
    padding: 0.55rem 1rem;
    border: 2px solid var(--ink);
    background: var(--paper-light);
    font-weight: 900;
    transform: rotate(-3deg);
}

.note {
    position: relative;
    margin: 0 0 1.3rem;
    padding: 1.35rem;
    border: 2px solid var(--ink);
    box-shadow: 0.35rem 0.35rem 0 rgba(28, 41, 39, 0.55);
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.35;
}

.note p {
    margin: 0;
}

.note--yellow {
    background: var(--yellow);
    transform: rotate(-2deg);
}

.note--blue {
    background: #d9e7f7;
    transform: rotate(2deg);
}

.note__kicker {
    margin-bottom: 0.45rem !important;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.note__pin {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    width: 0.8rem;
    aspect-ratio: 1;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0.12rem 0.15rem 0 rgba(28, 41, 39, 0.45);
}

.noticeboard__scribble {
    max-width: 15rem;
    margin: 2rem auto 0;
    font-family: "Bradley Hand", "Comic Sans MS", cursive;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transform: rotate(-3deg);
}

.feature-section,
.residents-section {
    padding: clamp(4.5rem, 9vw, 7rem) 0;
    border-top: 2px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr minmax(16rem, 0.65fr);
    gap: 1rem 3rem;
    align-items: end;
    margin-bottom: 2.5rem;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
}

.section-heading h2,
.status-card h2 {
    font-size: clamp(2.5rem, 6vw, 4.7rem);
    line-height: 0.95;
}

.section-heading > p:last-child {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.55;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.resident-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.resident-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    min-height: 9rem;
    padding: 1rem;
    border: 2px solid var(--ink);
    border-radius: 1rem;
    color: var(--ink);
    box-shadow: 0.35rem 0.35rem 0 var(--ink);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.resident-card:hover,
.resident-card:focus-visible {
    transform: translate(-0.18rem, -0.18rem) rotate(-0.5deg);
    box-shadow: 0.55rem 0.55rem 0 var(--ink);
}

.resident-card--coral {
    background: #f5a18f;
}

.resident-card--green {
    background: var(--green);
}

.resident-card--blue {
    background: var(--blue);
}

.resident-card--yellow {
    background: var(--yellow);
}

.resident-card__initials {
    display: grid;
    width: 3.8rem;
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--paper-light);
    font-weight: 900;
}

.resident-card__copy {
    display: grid;
    min-width: 0;
    gap: 0.25rem;
}

.resident-card__copy strong {
    font-size: 1.15rem;
}

.resident-card__copy span {
    font-size: 0.87rem;
    line-height: 1.35;
}

.resident-card__arrow {
    font-size: 1.6rem;
    font-weight: 900;
}

.feature-card {
    min-height: 20rem;
    padding: 1.4rem;
    border: 2px solid var(--ink);
    border-radius: 1rem;
    box-shadow: 0.35rem 0.35rem 0 var(--ink);
}

.feature-card--coral {
    background: #f5a18f;
}

.feature-card--green {
    background: var(--green);
}

.feature-card--blue {
    background: var(--blue);
}

.feature-card__number {
    display: grid;
    width: 3rem;
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--paper-light);
    font-size: 0.82rem;
    font-weight: 900;
}

.feature-card h3 {
    margin: 4.2rem 0 0.65rem;
    font-size: 1.8rem;
}

.feature-card p {
    margin: 0;
    line-height: 1.55;
}

.status-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem 5rem;
    align-items: end;
    margin: 1rem 0 6rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 3px solid var(--ink);
    border-radius: 1.4rem;
    color: var(--paper-light);
    background: var(--ink);
}

.status-card .eyebrow {
    color: var(--yellow);
}

.status-card > p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
}

.status-card__copy p {
    margin: 0 0 1.5rem;
    font-size: 1.08rem;
    line-height: 1.65;
}

.section-link {
    margin: 2rem 0 0;
    font-weight: 800;
}

.section-link a,
.back-link {
    display: inline-block;
    padding-block: 0.5rem;
    text-underline-offset: 0.2em;
}

.neighbors-page {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.neighbors-page__heading {
    max-width: 46rem;
    margin-bottom: 3rem;
}

.neighbors-page h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
    overflow-wrap: anywhere;
}

.neighbors-page__heading > p:last-child,
.neighbor-profile p:last-child,
.neighbor-profile__intro p {
    font-size: 1.12rem;
    line-height: 1.6;
}

.neighbors-invitation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 2px solid var(--ink);
    border-radius: 1rem;
    background: var(--paper-light);
}

.neighbors-invitation > div {
    flex: 1 1 24rem;
    max-width: 43rem;
}

.neighbors-invitation h2,
.neighbor-profile__intro h2 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.neighbors-invitation p:last-child {
    margin: 1rem 0 0;
    line-height: 1.6;
}

.back-link {
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.neighbor-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.5rem, 5vw, 4rem);
    border: 2px solid var(--ink);
    border-radius: 1.2rem;
    box-shadow: 0.4rem 0.4rem 0 var(--ink);
}

.neighbor-profile .eyebrow {
    color: var(--ink);
}

.neighbor-profile__initial {
    display: grid;
    flex: 0 0 auto;
    width: clamp(5rem, 13vw, 8rem);
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--paper-light);
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 900;
}

.neighbor-profile__intro {
    max-width: 43rem;
    margin-block: 3.5rem;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: center;
    min-height: 42rem;
    padding: clamp(4rem, 9vw, 7rem) 0;
}

.auth-layout__intro h1,
.internal-layout h1 {
    margin: 0;
    font-size: clamp(3.8rem, 9vw, 7rem);
    font-weight: 950;
    letter-spacing: -0.065em;
    line-height: 0.88;
}

.auth-layout__intro > p:last-child,
.internal-layout__intro {
    max-width: 38rem;
    margin: 1.5rem 0 0;
    font-size: 1.12rem;
    line-height: 1.65;
}

.auth-card {
    padding: clamp(1.4rem, 4vw, 2.2rem);
    border: 3px solid var(--ink);
    border-radius: 1.25rem;
    background: var(--paper-light);
    box-shadow: var(--shadow);
    transform: rotate(0.6deg);
}

.auth-card h2 {
    margin: 0 0 1.5rem;
    font-size: 2rem;
}

.auth-form,
.form-field {
    display: grid;
    gap: 0.65rem;
}

.auth-form {
    gap: 1.25rem;
}

.form-field label {
    font-weight: 850;
}

.form-field input {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.7rem 0.8rem;
    border: 2px solid var(--ink);
    border-radius: 0.7rem;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.form-message,
.form-field__error {
    margin: 0;
    line-height: 1.45;
}

.form-message {
    margin-bottom: 1.25rem;
    padding: 0.85rem;
    border: 2px solid var(--ink);
    border-radius: 0.7rem;
}

.form-message--error {
    background: #f7b1a4;
}

.form-field__error {
    color: var(--coral-dark);
    font-size: 0.88rem;
    font-weight: 800;
}

.auth-form__submit {
    width: 100%;
    cursor: pointer;
}

.internal-layout {
    min-height: 42rem;
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.internal-layout h1 {
    max-width: 12ch;
    overflow-wrap: anywhere;
}

.internal-links {
    display: grid;
    gap: 1.5rem;
    max-width: 46rem;
    margin-top: 3rem;
}

.internal-placeholder {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    max-width: 46rem;
    padding: 1.4rem;
    border: 3px solid var(--ink);
    border-radius: 1rem;
    background: var(--green);
    box-shadow: 0.4rem 0.4rem 0 var(--ink);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.internal-placeholder:hover,
.internal-placeholder:focus-visible {
    transform: translate(-0.18rem, -0.18rem);
    box-shadow: 0.6rem 0.6rem 0 var(--ink);
}

.internal-placeholder > span {
    display: grid;
    flex: 0 0 auto;
    width: 3.4rem;
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--paper-light);
    font-size: 1.6rem;
    font-weight: 950;
}

.internal-placeholder h2,
.internal-placeholder p {
    margin: 0;
}

.internal-placeholder p {
    margin-top: 0.35rem;
    line-height: 1.5;
}

.internal-placeholder--movies {
    background: var(--yellow);
}

.internal-placeholder .internal-placeholder__audience {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.internal-empty {
    max-width: 38rem;
    line-height: 1.6;
}

.profile-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2.5rem 0 5rem;
}

.profile-switcher p {
    margin: 0;
    font-weight: 850;
}

.profile-switcher div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-switcher a {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
}

.profile-switcher a[aria-current="page"] {
    color: var(--paper-light);
    background: var(--ink);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0 2.5rem;
    border-top: 2px solid var(--line);
    font-size: 0.9rem;
    font-weight: 700;
}

.site-footer p {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--coral-dark);
    outline-offset: 3px;
}

@media (max-width: 52rem) {
    .site-header {
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .site-account {
        margin-left: auto;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .noticeboard {
        width: min(100% - 0.7rem, 31rem);
        margin-inline: auto;
    }

    .section-heading,
    .status-card {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .resident-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .feature-card h3 {
        margin-top: 2.8rem;
    }
}

@media (max-width: 34rem) {
    .site-shell {
        width: min(100% - 1.1rem, 74rem);
    }

    .brand__name {
        display: none;
    }

    .site-account__name {
        max-width: 8rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        padding-top: 4.5rem;
    }

    .hero h1 {
        font-size: clamp(3.15rem, 17vw, 5rem);
    }

    .noticeboard {
        padding-inline: 1rem;
    }

    .profile-switcher {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
