/* Placeholder landing page (design/landing-page.md). */

:root {
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --sheet-ms: 350ms;  /* landing.js reads this to time hiding the sheet */
    --ribbon-h: 60px;   /* the pinned ribbon's height (ribbon.css) */
    --radius: 6px;      /* soft square corners on every box and label (B-10); circles stay round */
    --gutter: 10px;     /* the space at the sides of the ribbon and sections (B-13, was 16px) */
    --content-max: 1280px;  /* the calendar's and Media's width on big screens (B-13, was 960/1200) */
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

/* The ribbon's buttons and the arrow glide down to their section (design/calendar.md), which stops
   just under the ribbon instead of behind it (design/ribbon-and-media.md). */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--ribbon-h);
}

body {
    font-family: var(--font);
    color: #fff;
    background: #08080a;
}

/* While the About Us sheet is open the page behind doesn't scroll. */
body.sheet-open { overflow: hidden; }

/* ---- Section headings ---------------------------------------------------------------------- */

/* Calendar and Media: the heading on the left, its switch on the right, and a thin line under the
   row that fades in from the left edge and out to the right one (B-13). */
.section-head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
}

.section-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 25%,
                                          rgba(255, 255, 255, 0.6) 75%, rgba(255, 255, 255, 0) 100%);
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

/* ---- Landing ------------------------------------------------------------------------------ */

.landing {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    /* Only the background and the arrow since B-9: the buttons moved to the ribbon.
       B-3: the band's stage photo fills the screen whatever its shape (cover crops the edges rather
       than stretching it), over the old gradient in case it hasn't loaded. On wide screens it's
       cropped mostly from the bottom, keeping the tent's string lights, since the fade darkens the
       floor anyway; on phones it loses the sides. The fade on top blends the bottom into the
       calendar section's #08080a, so there's no seam. */
    background:
        linear-gradient(to bottom, rgba(8, 8, 10, 0) 70%, #08080a 100%),
        url("images/background.jpg") center 20% / cover no-repeat,
        linear-gradient(160deg, #2b2d33 0%, #16171b 55%, #08080a 100%);
}

/* B-14: a large see-through logo in the top left, over the night sky in the photo. It's decoration
   (the ribbon has the name), so it's pseudo-elements: screen readers skip it and taps go through.
   ::before is the whole circle, faint; ::after lays just its bright parts (the lettering, the &, the
   gold lines and the keys) over it, stronger and brighter, so the words stand out but the circle's
   dark fill stays see-through. */
.landing::before,
.landing::after {
    content: "";
    position: absolute;
    top: calc(var(--ribbon-h) + clamp(12px, 2vw, 28px));
    left: clamp(16px, 4vw, 56px);
    width: clamp(150px, 21vw, 310px);
    aspect-ratio: 1;
    pointer-events: none;
}

.landing::before {
    background: url("images/logo-large.png") center / contain no-repeat;
    opacity: 0.5;
}

.landing::after {
    background: url("images/logo-letters.png") center / contain no-repeat;
    opacity: 0.9;
    filter: brightness(1.2);
}

/* A chevron at the bottom of the landing that bounces gently; it holds still with reduced motion. */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
    margin-left: -22px;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    animation: scroll-cue-bounce 2s ease-in-out infinite;
}

.scroll-cue::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -10px 0 0 -7px;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    border-bottom: 2px solid rgba(255, 255, 255, 0.75);
    transform: rotate(45deg);
}

.scroll-cue:hover::before { border-color: #fff; }

.scroll-cue:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

@keyframes scroll-cue-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ---- About Us bottom sheet ---------------------------------------------------------------- */

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background-color var(--sheet-ms) ease;
}

.sheet-backdrop[hidden] { display: none; }

.sheet-backdrop.is-open { background: rgba(0, 0, 0, 0.55); }

.sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 960px;
    /* A fixed height, not a max: the sheet fills 80% of the screen however little content it has. */
    height: 80vh;
    height: 80dvh;
    color: #1d1d1f;
    background: #f7f6f3;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
    outline: none;
    transform: translateY(100%);
    transition: transform var(--sheet-ms) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-backdrop.is-open .sheet { transform: translateY(0); }

/* The sheet follows the finger while it's being dragged. */
.sheet.is-dragging { transition: none; }

.sheet-handle {
    flex: none;
    padding: 10px 0 6px;
    touch-action: none;
}

.sheet-handle::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin: 0 auto;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.2);
}

.sheet-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 8px 24px calc(32px + env(safe-area-inset-bottom, 0px));
}

.sheet h2 {
    margin: 8px 0 12px;
    font-size: 1.75rem;
}

.overview {
    margin: 0 0 28px;
    line-height: 1.6;
    color: #3a3a3c;
}

.members {
    display: grid;
    gap: 24px;
}

.member {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.member-photo {
    flex: none;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #d4d2cc;
}

.member-name {
    margin: 0;
    font-size: 1.2rem;
}

.member-role {
    margin: 2px 0 8px;
    font-size: 0.95rem;
    color: #6b6b70;
}

.member-bio {
    margin: 0;
    line-height: 1.6;
}

/* Phones: photo above the text, centered. */
@media (max-width: 520px) {
    .sheet-body { padding-left: 18px; padding-right: 18px; }
    .member { flex-direction: column; align-items: center; text-align: center; }
}

/* The About Us sheet slides up for everyone, reduced motion included (owner's choice); only the
   scroll arrow holds still. */
@media (prefers-reduced-motion: reduce) {
    .scroll-cue { animation: none; }
}
