/* List of Things For Sale – single stylesheet, light and dark via prefers-color-scheme */

/* Self-hosted variable fonts (SIL OFL, see fonts/OFL-*.txt): Inter for text, Space Grotesk for headings and buttons. */
@font-face {
    font-family: Inter;
    src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Inter;
    src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Soft pastel: warm cream page, thin warm outlines, soft blurred shadows, flat pastel fills.
 */
:root {
    --bg: #fff8ec;
    --surface: #ffffff;
    --text: #141414;
    --muted: #4c463e;
    --border: #e4d9c6;
    --link: #141414;
    --accent: #ffd45c;
    --accent-text: #141414;
    --mint: #c3f0d6;
    --peach: #ffcaa8;
    --lavender: #dcd3ff;
    --danger: #b3261e;
    --danger-bg: #ffb9ad;
    --placeholder-bg: #f3ebdc;
    --placeholder-icon: #b4a993;
    --stroke: 1px solid var(--border);
    --shadow: 0 1px 2px rgb(60 45 20 / 6%), 0 8px 24px rgb(60 45 20 / 8%);
    --shadow-sm: 0 1px 2px rgb(60 45 20 / 8%), 0 2px 8px rgb(60 45 20 / 6%);
    --ring: 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent);
    --radius: 8px;
    --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "Space Grotesk", Inter, system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #17150f;
        --surface: #24211b;
        --text: #f6efe2;
        --muted: #bdb3a4;
        --border: #3d372e;
        --link: #ffe08a;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
        --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%), 0 2px 8px rgb(0 0 0 / 20%);
        --accent: #ffd45c;
        --accent-text: #141414;
        --mint: #1f4a36;
        --peach: #5b3625;
        --lavender: #3a3360;
        --danger: #ff9b8f;
        --danger-bg: #5c231d;
        --placeholder-bg: #2c2820;
        --placeholder-icon: #6d6557;
    }
}

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

html {
    color-scheme: light dark;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 24px;
}

main {
    flex: 1;
    padding-block: 32px;
}

a {
    color: var(--link);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1152px;
    margin-inline: auto;
    padding-inline: 16px;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top:0;
    z-index: 10;
}

/* Mobile: name and account on the first row, the main links below. One row from 640px. */
.site-header .container {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "name account"
        "main main";
    align-items: center;
    gap: 8px 24px;
    padding-block: 16px;
}

.site-header .site-name {
    grid-area: name;
}

.site-nav-main {
    grid-area: main;
}

.site-nav-account {
    grid-area: account;
    justify-self: end;
}

@media (min-width: 640px) {
    .site-header .container {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "name main account";
    }

    .site-nav-main {
        margin-left: 16px;
    }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    line-height: 20px;
}

.site-nav a,
.site-nav .link-button {
    color: var(--text);
    font-size: inherit;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav .link-button:hover {
    text-decoration: underline;
}

.site-nav-main {
    gap: 24px;
}

.site-name {
    color: var(--text);
    font-family: var(--display);
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

/* Headings in Space Grotesk; small functional text stays in Inter. */
h1,
h2 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-footer {
    border-top: var(--stroke);
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
    margin-top: 48px;
}

/* Links on the left, copyright on the right; stacked when they don't fit. */
.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 20px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.copyright {
    margin: 0;
}

.site-footer a {
    color: var(--text);
}

h1 {
    font-size: 28px;
    line-height: 36px;
    margin: 0 0 8px;
}

@media (min-width: 640px) {
    h1 {
        font-size: 36px;
        line-height: 44px;
    }
}

.intro p {
    color: var(--muted);
    margin: 0;
}

.error-page {
    max-width: 576px;
}

.error-code {
    margin: 0;
    color: var(--muted);
    font-family: var(--mono);
}

.error-detail {
    overflow-x: auto;
    padding: 16px;
    border: var(--stroke);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 16px;
    white-space: pre-wrap;
}

h2 {
    font-size: 20px;
    line-height: 28px;
    margin: 0 0 12px;
}

h3 {
    font-size: 16px;
    line-height: 24px;
    margin: 16px 0 8px;
}

code {
    font-family: var(--mono);
    font-size: 12px;
    line-height: 16px;
    padding: 0 4px;
    border-radius: 4px;
    background: var(--placeholder-bg);
}

.muted,
.hint,
.optional {
    color: var(--muted);
}

/* --- Forms ---------------------------------------------------------------- */

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

label {
    font-weight: 600;
}

.optional {
    font-weight: 400;
}

.hint {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: var(--stroke);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: var(--ring);
}

textarea {
    resize: vertical;
}

/* The item textarea on the home page: monospace, a nod to the original site. */
.create-form textarea,
textarea.mono {
    min-height: 232px;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 24px;
}

[aria-invalid="true"] {
    border-color: var(--danger);
}

.field-error {
    margin: 0;
    color: var(--danger);
    font-size: 14px;
    line-height: 20px;
}

/* Buttons lift a little on hover. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font: inherit;
    font-family: var(--display);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.button-primary {
    background: var(--accent);
    color: var(--accent-text);
}

.button-danger {
    background: var(--danger-bg);
    color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
    .button {
        transition: none;
    }
}

/* Honeypot: off-screen, not display:none, so simple bots still fill it in. */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    margin: 0 0 20px;
    padding: 12px 16px;
    border: var(--stroke);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 8px;
}

.alert-error {
    background: var(--danger-bg);
}

.alert-success {
    background: var(--mint);
}

.line-issues {
    margin: 0;
    padding: 0;
    list-style: none;
}

.issue {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 20px;
}

.issue-error {
    color: var(--danger);
}

.issue-warning {
    color: var(--muted);
}

/* --- Home: form + live preview ---------------------------------------------- */

.intro {
    margin-bottom: 32px;
}

/*
 * Home hero: a flat mint block with a soft shadow, and two shapes
 * (a yellow circle, a peach tile) floating slowly on the right. They stand still for
 * people who prefer less motion.
 */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 32px 24px 112px;
    border-radius: var(--radius);
    background: var(--mint);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    animation: hero-float 7s ease-in-out infinite alternate;
}

.hero::before {
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
}

.hero::after {
    right: 104px;
    bottom: 32px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--peach);
    transform: rotate(12deg);
    animation-name: hero-float-tile;
    animation-duration: 9s;
}

@keyframes hero-float {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-12px);
    }
}

@keyframes hero-float-tile {
    from {
        transform: translateY(0) rotate(12deg);
    }

    to {
        transform: translateY(-16px) rotate(-8deg);
    }
}

@media (min-width: 640px) {
    .hero {
        padding: 48px 40px;
    }

    .hero::before {
        top: 40px;
        right: 64px;
        bottom: auto;
        width: 120px;
        height: 120px;
    }

    .hero::after {
        right: 200px;
        bottom: 40px;
        width: 72px;
        height: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after {
        animation: none;
    }
}

.hero-text {
    max-width: 560px;
}

.hero .hero-text p {
    color: var(--text);
    font-size: 18px;
    line-height: 28px;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 48px;
        line-height: 56px;
    }
}

.create {
    display: grid;
    gap: 32px;
}

@media (min-width: 960px) {
    .create {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        align-items: start;
    }

    .preview {
        position: sticky;
        top: 16px;
    }
}

.preview-status {
    margin: 0 0 16px;
    color: var(--muted);
}

.preview-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-section {
    margin: 12px 0 0;
}

/* Preview card: an empty photo slot hints that a photo can be added later. */
.preview-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0 12px;
    align-items: start;
}

.preview-photo {
    width: 56px;
    height: 56px;
    border: var(--stroke);
    border-radius: 6px;
}

.preview-card-body {
    min-width: 0;
}

.card {
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
}

.card-head,
.item-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.card-title {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
}

.card-price,
.item-price {
    font-family: var(--display);
    font-weight: 700;
    white-space: nowrap;
}

.card-description,
.item-description {
    margin: 4px 0 0;
    color: var(--muted);
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}

.tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--lavender);
    color: var(--text);
}

/* --- Manage page ------------------------------------------------------------------ */

.links {
    display: grid;
    gap: 16px;
    margin: 24px 0 32px;
}

.link-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copy-row {
    display: flex;
    gap: 8px;
}

.copy-row input {
    font-family: var(--mono);
    font-size: 14px;
    line-height: 20px;
}

.item-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.item-row {
    padding: 12px 0;
    border-bottom: var(--stroke);
}

.item-title {
    font-weight: 600;
}

/* --- Public list ------------------------------------------------------------------ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.list-header {
    margin-bottom: 24px;
}

.list-header p {
    margin: 0;
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.share-row:not(:has(button:not([hidden]))) {
    display: none;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

a.tag {
    color: var(--text);
    text-decoration: none;
}

.tag-filter .tag {
    padding: 4px 12px;
    background: var(--surface);
    font-weight: 600;
}

.tag-filter .tag:hover {
    background: var(--lavender);
}

.tag-filter .tag.is-active {
    border-color: color-mix(in srgb, var(--accent) 80%, #8a6a00);
    background: var(--accent);
    color: var(--accent-text);
}

.tag-count {
    opacity: 0.7;
}

.empty {
    color: var(--muted);
}

.item-group {
    margin-bottom: 32px;
}

.item-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .item-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.item-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.item-photo {
    display: block;
    aspect-ratio: 1;
    background: var(--placeholder-bg);
}

/* No photo: a neutral placeholder in the same frame, so a real photo is clearly the better look. */
.item-photo-empty,
.manage-photo.manage-photo-empty,
.preview-photo {
    display: grid;
    place-items: center;
    background: var(--placeholder-bg);
}

.item-photo-empty::before,
.manage-photo-empty::before,
.preview-photo::before {
    content: "";
    width: 22%;
    aspect-ratio: 1;
    background: var(--placeholder-icon);
    -webkit-mask: url("photo-placeholder.svg") center / contain no-repeat;
    mask: url("photo-placeholder.svg") center / contain no-repeat;
}

.manage-photo-empty::before,
.preview-photo::before {
    width: 44%;
}

a.manage-photo-empty:hover,
a.manage-photo-empty:focus-visible {
    background: var(--accent);
}

a.manage-photo-empty:hover::before,
a.manage-photo-empty:focus-visible::before {
    background: var(--text);
}

.item-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.item-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 16px 16px;
}

.item-card .card-price {
    font-size: 20px;
    line-height: 28px;
}

.card-description.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.link-button {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--link);
    font: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--placeholder-bg);
    color: var(--text);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.badge-reserved {
    background: var(--peach);
}

.item-sold {
    opacity: 0.6;
}

.item-sold .card-title,
.item-sold .card-price {
    text-decoration: line-through;
}

.closed-page .lead {
    font-size: 20px;
    line-height: 28px;
    margin: 0 0 8px;
}

/* --- Reservation ------------------------------------------------------------------ */

.back-link {
    margin: 0 0 24px;
}

.reserve {
    display: grid;
    gap: 32px;
    max-width: 640px;
}

.reserve-item .card-title {
    font-size: 20px;
    line-height: 28px;
}

.reserve-item-body > p {
    margin: 8px 0 0;
}

.reserve-form > .hint {
    margin: -8px 0 20px;
}

.field-narrow input {
    max-width: 128px;
}

.thanks {
    max-width: 640px;
}

.thanks .lead {
    font-size: 18px;
    line-height: 28px;
}

/* --- Manage page: items, reservations, panels -------------------------------------- */

.manage-header {
    margin-bottom: 16px;
}

.manage-header p {
    margin: 0;
}

.inline-form {
    margin: 0;
}

.manage-items {
    margin-bottom: 40px;
}

.manage-section {
    margin: 24px 0 12px;
}

.manage-item {
    margin-bottom: 12px;
}

.manage-item.item-sold .card-title,
.manage-item.item-sold .card-price {
    text-decoration: line-through;
}

.manage-item.item-sold {
    opacity: 1;
}

.manage-item.item-sold > :not(.reservations):not(.item-tools) {
    opacity: 0.6;
}

.badge-available {
    background: var(--mint);
}

.reservations {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    border-top: var(--stroke);
}

.reservation {
    padding: 12px 0;
    border-bottom: var(--stroke);
}

.reservation-who {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}

.reservation-message {
    margin: 4px 0 0;
    padding-left: 12px;
    border-left: 4px solid var(--accent);
    white-space: normal;
}

.reservation-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 12px;
}

.reservation-actions form {
    margin: 0;
}

.reservation-status {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 20px;
}

/*
 * Edit / Photo / Delete: the toggles stay in one row, the open one shows its panel
 * underneath (the <details> share a name, so opening one closes the others).
 */
.item-tools {
    display: grid;
    grid-template-columns: repeat(3, max-content) 1fr;
    column-gap: 16px;
    margin-top: 12px;
}

.item-tools > details {
    display: contents;
}

.item-tools > details > summary {
    grid-row: 1;
}

/*
 * The panel: the box the browser wraps around the content of <details>. All three share
 * one grid cell, so the closed ones must not stretch over the open one or catch the pointer.
 */
.item-tools > details::details-content {
    grid-row: 2;
    grid-column: 1 / -1;
    align-self: start;
}

.item-tools > details:not([open])::details-content {
    pointer-events: none;
}

/* Disclosure toggles: an SVG chevron instead of the browser's ▶ marker, turned down when open. */
summary {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--text);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: none;
    background: currentColor;
    -webkit-mask: url("chevron.svg") center / contain no-repeat;
    mask: url("chevron.svg") center / contain no-repeat;
    transition: transform 0.15s ease;
}

details[open] > summary::before {
    transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
    summary::before {
        transition: none;
    }
}

.edit-form,
.delete-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
}

.edit-form input {
    font-family: var(--mono);
    font-size: 14px;
    line-height: 20px;
}

.delete-form p,
.field-error p {
    margin: 0;
}

.manage-panel {
    margin-bottom: 40px;
    padding-top: 24px;
    border-top: var(--stroke);
}

.manage-panel > .hint {
    margin: -12px 0 20px;
}

.field-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.field-check input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--accent);
}

.field-check label {
    font-weight: 400;
}

/* Manage: photo thumbnail next to the item */
.manage-item,
.reserve-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0 16px;
    align-items: start;
}

.manage-item-body,
.reserve-item-body {
    min-width: 0;
}

.manage-photo {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--placeholder-bg);
}

@media (max-width: 480px) {
    .manage-item,
    .reserve-item {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 0 12px;
    }

    .manage-photo {
        width: 64px;
        height: 64px;
    }
}

.photo-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
}

.photo-form input[type="file"] {
    max-width: 100%;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}

/* The browser's "Choose file" button, styled as an outlined secondary button. */
.photo-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 6px 16px;
    border: var(--stroke);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-family: var(--display);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.photo-form input[type="file"]::file-selector-button:hover {
    background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    .photo-form input[type="file"]::file-selector-button {
        transition: none;
    }
}

.photo-form .hint,
.photo-form .field-error {
    margin: 0;
}

.photo-remove {
    margin-top: 12px;
}

/* Privacy, terms */
.prose {
    max-width: 672px;
}

.prose h2 {
    margin: 32px 0 8px;
    font-size: 20px;
    line-height: 28px;
}

.prose h3 {
    margin: 20px 0 8px;
    font-size: 16px;
    line-height: 24px;
}

.prose p,
.prose li {
    line-height: 28px;
}

.prose ul {
    padding-left: 20px;
}

.prose li + li {
    margin-top: 4px;
}

/* Public list: report link at the bottom */
.report-link {
    margin: 40px 0 16px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.report-link a {
    color: var(--text);
}

/* Sign in, check your email, confirm */
.narrow {
    max-width: 480px;
    padding-block: 32px 48px;
}

.lead {
    font-size: 18px;
    line-height: 28px;
}

.small {
    font-size: 14px;
    line-height: 20px;
}

.narrow-form {
    margin: 24px 0 16px;
}

.button-wide {
    width: 100%;
    padding-block: 12px;
    font-size: 18px;
    line-height: 28px;
}

.steps {
    margin-top: 32px;
}

.steps ul {
    margin: 8px 0 16px;
    padding-left: 20px;
}

.steps li + li {
    margin-top: 4px;
}

/* Home: a signed-in seller with a live list */
.current-list {
    margin-block: 16px 48px;
}

.current-list h2 {
    margin-top: 0;
}

/* Manage: whose list this is */
.account-line {
    margin: -4px 0 20px;
    font-size: 14px;
    line-height: 20px;
}

/* Discover */
.discover-header {
    margin-bottom: 24px;
}

.list-card {
    color: inherit;
    text-decoration: none;
}

.list-card:hover .list-card-title {
    text-decoration: underline;
}

.list-card .item-body {
    gap: 4px;
}

.list-card-title {
    font-family: var(--display);
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
}

.list-card-meta,
.list-card-date {
    font-size: 14px;
    line-height: 20px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.empty-state {
    max-width: 480px;
    padding: 24px;
}

.settings-hint {
    margin: -8px 0 20px;
}

/* How it works: questions as disclosure rows */
.faq h2 {
    margin-top: 40px;
}

.faq details {
    border-bottom: var(--stroke);
}

.faq summary {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    color: var(--text);
    font-size: 16px;
    line-height: 24px;
}

.faq summary::before {
    margin-top: 4px;
}

.faq summary:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.faq-answer {
    padding: 0 0 16px 24px;
}

.faq-answer > :first-child {
    margin-top: 0;
}

.faq-answer > :last-child {
    margin-bottom: 0;
}

.faq-example {
    overflow-x: auto;
    margin: 12px 0;
    padding: 12px 16px;
    border: var(--stroke);
    border-radius: var(--radius);
    background: var(--mint);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 20px;
}

.steps-overview {
    margin: 24px 0 8px;
    padding-left: 24px;
}

.steps-overview li + li {
    margin-top: 8px;
}

.faq-more {
    margin-top: 32px;
}

/* Manage: "Report spam" next to a reservation, quieter than the main actions */
.link-button-danger {
    color: var(--danger);
}
