/* BASEMENT website. One stylesheet for every page. */

:root {
    --bg: #0e0e10;
    --bg-raised: #161619;
    --bg-card: #1b1b1f;
    --line: #2a2a30;
    --line-strong: #3a3a42;
    --text: #f4f4f5;
    --text-dim: #a8a8b3;
    --text-faint: #6e6e78;
    --accent: #ff622b;          /* the logo's orange */
    --accent-hover: #ff7d4d;
    --accent-ink: #120a06;      /* text on orange */
    --good: #4ade80;
    --bad: #f87171;
    --radius: 14px;
    --radius-small: 9px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --page: min(1180px, 100% - 40px);
    --display: "Archivo Black", "Arial Black", Impact, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* a faint grid and glow behind everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(255, 98, 43, 0.16), transparent 70%),
        radial-gradient(700px 400px at -10% 40%, rgba(255, 98, 43, 0.07), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
main { flex: 1; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: var(--page); margin-inline: auto; }

/* ---------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(14, 14, 16, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: 1.5px;
}

.brand img { width: 34px; height: 34px; }
.brand i { color: var(--accent); font-style: normal; }

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .external::after { content: "↗"; font-size: 11px; margin-left: 3px; opacity: 0.7; }

/* Sign in (or your name, once signed in): an orange button at the end of the menu */
.nav a[data-account-link] {
    margin-left: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(255, 98, 43, 0.35);
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.nav a[data-account-link]:hover,
.nav a[data-account-link][aria-current="page"] { background: var(--accent-hover); color: var(--accent-ink); }
.nav a[data-account-link]:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(255, 98, 43, 0.5); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--text);
    border-radius: 8px;
    width: 42px;
    height: 38px;
    font-size: 18px;
    cursor: pointer;
}

/* ---------------------------------------------------------------- buttons, tags */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: var(--body);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.button.secondary { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.button.big { padding: 18px 34px; font-size: 15px; }
.button.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.tag {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.display {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 0.95;
}

.lead { color: var(--text-dim); font-size: 18px; max-width: 560px; }

/* live server status pill */
.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
}

.status::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-faint);
}

.status.online { color: var(--text); }
.status.online::before { background: var(--good); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15); animation: pulse 2s infinite; }
.status.offline::before { background: var(--bad); }

@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }

/* ---------------------------------------------------------------- home */

.hero {
    padding: 80px 0 90px;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
}

.hero h1 { font-size: clamp(48px, 7.4vw, 104px); margin-bottom: 24px; }
.hero h1 span { color: var(--accent); display: block; }
.hero .lead { margin-bottom: 34px; }
.hero .status { margin-bottom: 26px; }

.hero-art { position: relative; display: grid; place-items: center; }

.hero-art::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 98, 43, 0.35), transparent 65%);
    filter: blur(20px);
}

.hero-art picture {
    position: relative;
    display: block;
    width: min(400px, 100%);
    aspect-ratio: 1;
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
    animation: float 6s ease-in-out infinite;
}

@keyframes float { 50% { transform: translateY(-12px); } }

.section { padding: 90px 0; border-top: 1px solid var(--line); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(32px, 4.5vw, 52px); }
.section-head p { color: var(--text-dim); max-width: 520px; }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: rgba(255, 98, 43, 0.5); transform: translateY(-3px); }

.card .icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 98, 43, 0.12);
    color: var(--accent);
    font-size: 22px;
    margin-bottom: 20px;
}

.card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: 0.5px; }
.card p { color: var(--text-dim); font-size: 15px; }

.cta {
    text-align: center;
    padding: 70px 30px;
    border-radius: 22px;
    border: 1px solid rgba(255, 98, 43, 0.35);
    background:
        radial-gradient(600px 220px at 50% 0%, rgba(255, 98, 43, 0.22), transparent 70%),
        var(--bg-raised);
}

.cta h2 { font-size: clamp(30px, 4.5vw, 50px); margin-bottom: 14px; }
.cta p { color: var(--text-dim); margin: 0 auto 30px; max-width: 520px; }
.cta .buttons { justify-content: center; }

/* ---------------------------------------------------------------- page headings */

.page-head {
    padding: 70px 0 40px;
    text-align: center;
}

.page-head h1 { font-size: clamp(44px, 7vw, 88px); margin-bottom: 18px; }
.page-head h1 span { color: var(--accent); }
.page-head .lead { margin: 0 auto; }

/* ---------------------------------------------------------------- RecNet */

.recnet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.recnet-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.recnet-count { color: var(--text-dim); font-size: 14px; font-weight: 600; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 14px;
    border-radius: 999px;
    background: rgba(255, 98, 43, 0.12);
    border: 1px solid rgba(255, 98, 43, 0.4);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.chip button {
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    color: var(--text);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.photo-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover { border-color: rgba(255, 98, 43, 0.55); transform: translateY(-3px); box-shadow: var(--shadow); }

.photo-card .shot {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #222 linear-gradient(110deg, #1d1d21 30%, #26262b 50%, #1d1d21 70%) 0 0 / 300% 100%;
    animation: shimmer 1.4s linear infinite;
    border: 0;
    padding: 0;
    cursor: zoom-in;
    overflow: hidden;
}

.photo-card .shot.loaded { animation: none; background: #000; }

.photo-card .shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s, transform 0.4s;
}

.photo-card .shot.loaded img { opacity: 1; }
.photo-card:hover .shot img { transform: scale(1.03); }

@keyframes shimmer { to { background-position: -150% 0; } }

.photo-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 16px;
}

.avatar {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent), #ff9a6b);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
}

.photo-meta .who { min-width: 0; flex: 1; }

.name-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-align: left;
}

.name-link:hover { color: var(--accent); }
.handle { color: var(--text-faint); font-size: 13px; margin-left: 4px; }

.photo-meta .where {
    color: var(--text-dim);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-meta .where .room { color: var(--accent); font-weight: 600; }

.photo-with {
    padding: 0 16px 16px;
    margin-top: -6px;
    color: var(--text-faint);
    font-size: 13px;
}

.photo-with .name-link { font-size: 13px; font-weight: 600; color: var(--text-dim); }

.notice {
    text-align: center;
    padding: 70px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--text-dim);
}

.notice h3 { color: var(--text); font-size: 22px; margin-bottom: 8px; }
.notice p { max-width: 480px; margin: 0 auto; }

.more { display: flex; justify-content: center; margin-top: 34px; }

.new-photos {
    position: fixed;
    left: 50%;
    top: 86px;
    transform: translate(-50%, -20px);
    opacity: 0;
    pointer-events: none;
    z-index: 40;
    transition: opacity 0.25s, transform 0.25s;
    box-shadow: var(--shadow);
}

.new-photos.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* the big view */
.viewer {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--text);
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
}

.viewer::backdrop { background: rgba(5, 5, 7, 0.92); backdrop-filter: blur(6px); }

.viewer-inner {
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 20px 70px 24px;
    gap: 16px;
}

.viewer-image {
    min-height: 0;
    display: grid;
    place-items: center;
}

.viewer-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.viewer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: center;
    color: var(--text-dim);
    font-size: 15px;
}

.viewer-info strong { color: var(--text); }
.viewer-info .room { color: var(--accent); font-weight: 600; }
.viewer-info a { color: var(--text-dim); font-size: 13px; }
.viewer-info .photo-id { color: var(--text-faint); font-size: 13px; }

.viewer-btn {
    position: fixed;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line-strong);
    color: var(--text);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s;
}

.viewer-btn:hover { background: rgba(255, 98, 43, 0.3); }
.viewer-close { top: 18px; right: 18px; }
.viewer-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* the home page's strip of the newest photos */
.photo-strip { grid-template-columns: repeat(3, 1fr); }

/* ---------------------------------------------------------------- download */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    counter-reset: step;
}

.step { counter-increment: step; position: relative; padding-top: 74px; }

.step::before {
    content: counter(step);
    position: absolute;
    top: 26px;
    left: 30px;
    font-family: var(--display);
    font-size: 30px;
    color: var(--accent);
    line-height: 1;
}

.download-box {
    text-align: center;
    padding: 0 0 20px;
}

.download-box .note { color: var(--text-faint); font-size: 13px; margin-top: 16px; }

code {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.07);
    padding: 2px 6px;
    border-radius: 5px;
}

/* ---------------------------------------------------------------- applications */

.form-card {
    width: min(760px, 100%);
    margin: 0 auto 100px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 44px;
}

.form-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-card > p { color: var(--text-dim); margin-bottom: 10px; }

.form-card form { display: flex; flex-direction: column; }

.form-card label {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    margin: 24px 0 9px;
}

.form-card input,
.form-card textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    color: var(--text);
    padding: 14px 16px;
    font: inherit;
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-card input:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 98, 43, 0.15);
}

.form-card textarea { resize: vertical; min-height: 120px; }
.form-card .button { margin-top: 30px; align-self: flex-start; }

/* applications: the two buttons that pick a form */
.app-picks { justify-content: center; margin: 0 0 40px; }
.app-picks .button { min-width: 220px; }
.app-picks .button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.app-picks:has(+ [data-form][hidden] + [data-form][hidden]) { margin-bottom: 110px; } /* nothing picked yet */

/* ---------------------------------------------------------------- account */

.form-msg { min-height: 22px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--text-dim); }
.form-msg:empty { min-height: 0; margin-top: 0; }
.form-msg.bad { color: var(--bad); }
.form-msg.good { color: var(--good); }
.form-card .form-msg + .button { margin-top: 18px; }
.form-note { color: var(--text-faint); font-size: 14px; margin-top: 22px; }
.form-card label .count { float: right; color: var(--text-faint); font-weight: 600; }

.profile-card {
    width: min(760px, 100%);
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 28px;
}

.profile-pic .avatar { width: 96px; height: 96px; font-size: 40px; }
.profile-pic.small .avatar { width: 64px; height: 64px; font-size: 26px; }
.profile-text { flex: 1; min-width: 0; }
.profile-text h2 { font-size: 26px; overflow-wrap: anywhere; }
.profile-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; color: var(--text-dim); font-size: 14px; }
.profile-bio { margin-top: 10px; overflow-wrap: anywhere; }
.profile-bio.empty { color: var(--text-faint); }

.dev-tag, .access-tag {
    padding: 2px 9px;
    border: 1px solid rgba(255, 98, 43, 0.45);
    border-radius: 999px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.access-tag { margin-left: auto; align-self: flex-start; border-color: var(--line-strong); color: var(--text-dim); }

.picture-row { display: flex; align-items: center; gap: 16px; }
.picture-row input[type="file"] { flex: 1; min-width: 0; padding: 10px; }

.mine-head { width: min(1180px, 100%); margin: 70px auto 30px; }
.mine-head h2 { font-size: clamp(30px, 4vw, 44px); }

@media (max-width: 600px) {
    .profile-card { flex-direction: column; text-align: center; padding: 26px 20px; }
    .profile-sub { justify-content: center; }
}

.profile-link { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; }
.profile-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- people and profiles */

.people-search { width: min(640px, 100%); margin: 0 auto 34px; }

.people-search input {
    width: 100%;
    padding: 16px 22px 16px 50px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a8b3' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 19px center / 18px;
    color: var(--text);
    font: inherit;
    font-size: 17px;
}

.people-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 98, 43, 0.15); }

.people-heading {
    margin-bottom: 16px;
    color: var(--text-dim);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.people-heading:empty { display: none; }

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 100px;
}

.person-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.person-card:hover { border-color: rgba(255, 98, 43, 0.55); transform: translateY(-2px); }
.person-card .avatar { width: 52px; height: 52px; font-size: 22px; }
.person-text { flex: 1; min-width: 0; }
.person-name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.person-name > span:first-child, .person-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-name .dev-tag { flex: none; padding: 1px 7px; font-size: 10px; }
.person-sub { margin-top: 2px; color: var(--text-dim); font-size: 13px; }

.online-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.profile-page { padding-top: 40px; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--text-dim); font-size: 14px; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.profile-card.big { width: 100%; padding: 32px; }
.profile-card.big .profile-pic .avatar { width: 128px; height: 128px; font-size: 54px; }
.profile-card h1 { font-size: clamp(26px, 4vw, 38px); overflow-wrap: anywhere; }
.profile-card .status { padding: 4px 11px 4px 10px; font-size: 12px; }
.profile-joined { margin-top: 12px; color: var(--text-faint); font-size: 13px; }
.profile-page .notice { margin-bottom: 100px; }

.chip-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.chip-link:hover { text-decoration: underline; }

/* on phones, page titles like APPLICATIONS shrink with the screen so they never run off the edge */
@media (max-width: 480px) {
    .page-head h1 { font-size: 10vw; }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 40px 0;
    margin-top: 40px;
}

.site-footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
.site-footer small { display: block; color: var(--text-faint); font-size: 12px; margin-top: 6px; }

/* ---------------------------------------------------------------- phones and tablets */

@media (max-width: 900px) {
    .hero { padding: 50px 0 70px; }
    .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero .lead { margin-inline: auto; }
    .hero .buttons { justify-content: center; }
    .hero-art { order: -1; }
    .hero-art picture { width: 240px; }
    .cards, .steps, .photo-strip { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
}

/* The menu folds into the ☰ button below 1100px: with the Sign in button (or a long name in it) it needs about that much */
@media (max-width: 1100px) {
    .nav-toggle { display: block; }

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 16px 18px;
        background: rgba(14, 14, 16, 0.97);
        border-bottom: 1px solid var(--line);
        display: none;
    }

    .nav.open { display: flex; }
    .nav a { padding: 12px; font-size: 16px; }
    .nav a[data-account-link] { margin: 10px 0 0; padding: 13px; text-align: center; max-width: none; }
}

@media (max-width: 760px) {
    :root { --page: calc(100% - 32px); }
    .form-card { padding: 28px 20px; }
    .viewer-inner { padding: 70px 12px 20px; }
    .viewer-prev, .viewer-next { top: auto; bottom: 18px; transform: none; }
    .photo-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
