.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin: 0;
}

.button {
    display: inline-block;
    padding: 0.375rem 1.25rem;
    border: var(--hairline) solid var(--text);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-smallcaps);
    font-size: var(--body);
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.button:hover,
.button:active {
    background: var(--text);
    color: var(--ground);
}

span.button { pointer-events: none; }

.hero-image,
.article-hero img,
.site-footer-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after,
.article-hero::after,
.site-footer-photo + .site-footer-inner::before {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(rgba(var(--fade), 0), rgba(var(--fade), 0.8));
}

.photo-frame { position: relative; }

.credit {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    z-index: 2;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 0.375rem;
    background: rgba(var(--fade), 0.7);
    color: var(--mist);
    font-family: var(--font-serif);
    font-size: var(--caption);
    line-height: 1;
}

.hero > .credit,
.section > .credit,
.article-hero > .credit {
    right: var(--gutter);
    bottom: 1rem;
}

.credit-text {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s ease, margin 0.3s ease;
}

.credit:hover .credit-text,
.credit:focus-within .credit-text {
    max-width: 16rem;
    margin-right: 0.5rem;
}

@media (hover: none) {
    .credit-text { max-width: none; margin-right: 0.5rem; }
}

.back-to-top {
    position: fixed;
    right: var(--gutter);
    bottom: 1.5rem;
    z-index: 3;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: var(--ground);
    font-size: var(--heading);
    line-height: 2.625rem;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.section {
    position: relative;
    padding: var(--space-section) 0;
    text-align: center;
}

.section-alt { background: var(--surface-alt); }

.theme-day .section-photo {
    background: linear-gradient(rgba(var(--paper-veil), 0.72), rgba(var(--paper-veil), 0.72)), var(--photo-day) center / cover;
}

@media (prefers-color-scheme: light) {
    .theme-auto .section-photo {
        background: linear-gradient(rgba(var(--paper-veil), 0.72), rgba(var(--paper-veil), 0.72)), var(--photo-day) center / cover;
    }
}

.section-title {
    margin-bottom: 3rem;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, var(--headline));
    line-height: 1.2;
}

.section-title::after {
    content: "";
    display: block;
    width: 6rem;
    height: 0.125rem;
    margin: 1.25rem auto 0;
    background: var(--umber);
}

.callout-title,
.callout-text { font-family: var(--font-smallcaps); }

.callout-title {
    margin: 0 0 0.75rem;
    font-size: var(--title);
    line-height: 1.2;
}

.callout-text {
    margin: 0 0 2.5rem;
    font-size: var(--heading);
}

.section-text {
    max-width: 36rem;
    margin: 0 auto;
}

.section-text p { margin: 0 0 var(--space-line); }

.section-points {
    display: flex;
    gap: 2.5rem;
    margin: 3rem 0;
    padding: 2.5rem 0;
    border-top: var(--hairline) solid var(--line);
    border-bottom: var(--hairline) solid var(--line);
    list-style: none;
}

.section-points li { flex: 1; }
.section-points p { margin: 0.5rem 0 0; }

.section-point { font-size: var(--heading); }

.tiles,
.members,
.post-feed {
    --columns: 3;
    --gap: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tile,
.member,
.post-card {
    flex: 0 1 calc((100% - (var(--columns) - 1) * var(--gap)) / var(--columns));
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.tile-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--surface-alt);
}

.section-alt .tile-image { background: var(--ground); }

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-image .logo-emblem {
    width: 40%;
    color: var(--sage-grey);
}

.tile-title {
    margin: 1.25rem 0 0.25rem;
    font-size: var(--heading);
    hyphens: auto;
}

.tile-note {
    margin: 0;
    font-family: var(--font-smallcaps);
}

.tile-text { margin-bottom: 1rem; }

.tile .button { margin-top: auto; }

.tiles-empty {
    flex-basis: 100%;
    margin: 0;
    text-align: center;
}

.carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-track {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track .tile {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.carousel-button {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    font-size: var(--heading);
    line-height: 1;
}

@media (max-width: 60em) {
    .tiles, .members, .post-feed { --columns: 2; }
}

@media (max-width: 48em) {
    .section-points { flex-direction: column; }
    .credit-text a { display: inline-block; margin: -0.5rem 0; padding: 0.5rem 0; }
}

@media (max-width: 40em) {
    .tiles, .post-feed { --columns: 1; }
    .carousel-button { display: none; }
}
