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

:root {
    /* Golden Hour design tokens */
    --marigold:    #f4d35e; /* page background everywhere */
    --ink:         #1e2a1a; /* primary text, primary buttons, rules */
    --ink-rgb:     30, 42, 26;
    --forest:      #24452f; /* italic headline accent, bottom stoop step */
    --brownstone:  #7a3e26; /* eyebrows, numbers, arch frames/borders, middle step */
    --terracotta:  #a0573a; /* upper stoop step */
    --clay:        #b86b48; /* 4th (top) step on About only, with ink text */
    --cream:       #fff4dc; /* text on brownstone/terracotta/forest steps */
    --image-fill:  #e8c24e; /* placeholder background behind images while loading */
    --rule-soft:   #c9a63e; /* thin dividers in lists */
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--marigold);
    color: var(--ink);
}

a {
    color: inherit;
}

/* Visible focus styles everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* === LAYOUT === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
}

.section {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* === HEADER / NAV === */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.wordmark {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-decoration: none;
}

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

.pill-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 12px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
    background: transparent;
}

.pill-link.is-active {
    background: var(--ink);
    color: var(--marigold);
    font-weight: 700;
}

/* === TYPOGRAPHY === */
.eyebrow {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--brownstone);
    margin-bottom: 18px;
}

.tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 26px;
    color: var(--ink);
    margin: 24px 0;
}

.display-heading {
    margin: 0 0 24px 0;
}

.display-heading .line-1 {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(44px, 6.4vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.display-heading .line-2 {
    display: block;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(48px, 7vw, 104px);
    line-height: 1;
    color: var(--forest);
}

.section-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

p {
    font-size: 1rem;
    line-height: 1.6;
}

/* === BUTTONS / LINKS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--marigold);
    padding: 20px 40px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* form styling (builder flow pages) */
form {
    width: 100%;
}

input {
    width: 100%;
    padding: 20px 0;
    margin-bottom: 20px;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    background: transparent;
    border: none;
    border-bottom: 3px solid rgba(30, 42, 26, 0.3);
    color: var(--ink);
    transition: all 0.3s ease;
}

input::placeholder {
    color: inherit;
    opacity: 0.5;
}

input:focus {
    outline: none;
    border-bottom-color: var(--ink);
    transform: translateY(-2px);
}

/* Simple, single-line heading treatment for the builder-flow pages
   (year/address/name/describe/vibe/final) -- these aren't part of the
   defined two-line display-heading copy set, so they get the shared
   type family without the signature two-line motif. */
.form-page h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 40px;
}

.form-page p {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.form-page .container {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* === STOOP STEPS (signature element 1) === */
.stoop-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.step {
    width: var(--step-width, 100%);
    max-width: 100%;
    padding: 26px 32px;
}

.step:first-child {
    border-radius: 10px 10px 0 0;
}

.step:last-child {
    border-radius: 0 0 10px 10px;
}

.step-label {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}

.step p {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.step--terracotta {
    background: var(--terracotta);
    color: var(--cream);
}

.step--brownstone {
    background: var(--brownstone);
    color: var(--cream);
}

.step--forest {
    background: var(--forest);
    color: var(--cream);
}

.step--forest .step-label {
    color: var(--marigold);
}

.step--clay {
    background: var(--clay);
    color: var(--ink);
}

@media (max-width: 600px) {
    .step {
        width: 100% !important;
    }
}

/* === SHALLOW BROWNSTONE ARCH (signature element 2) === */
.arch-frame {
    aspect-ratio: 1 / 1;
    border-radius: 50% 50% 6px 6px / 12% 12% 6px 6px;
    border: 2px solid var(--brownstone);
    background: var(--image-fill);
    overflow: hidden;
}

.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.arch-frame--portrait {
    aspect-ratio: 3 / 4;
}

.hero-arch-wrap {
    background: var(--brownstone);
    border-radius: 50% 50% 8px 8px / 15% 15% 8px 8px;
    padding: 14px;
    width: min(520px, 100%);
    margin: 0 auto;
}

.hero-arch-wrap .arch-frame {
    border-radius: 50% 50% 4px 4px / 13% 13% 4px 4px;
    border: none;
}

/* The static home hero image is a composited poster (prototype + rendering +
   caption text baked in near the top), not a clean square AI render like the
   gallery images, so anchor the cover-crop to the bottom to avoid slicing
   into the caption band. */
.hero-arch-wrap .arch-frame img {
    object-position: center 90%;
}

.hero-caption {
    margin-top: 16px;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--ink);
    text-align: center;
}

/* === HOME === */
.home-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 96px;
}

@media (max-width: 768px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-layout .home-image {
        order: -1;
    }
}

.home-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin-top: 36px;
}

.home-section {
    padding-top: 48px;
    padding-bottom: 96px;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

/* === RENDERING GRID (gallery + home preview) === */
.rendering-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px 28px;
}

.rendering-card {
    margin: 0;
}

.rendering-card .arch-frame {
    cursor: pointer;
}

.card-caption-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 14px;
    gap: 12px;
}

.card-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--ink);
}

.card-number {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--brownstone);
    flex-shrink: 0;
}

.card-caption-row.card-caption-row--quiet {
    justify-content: center;
}

.card-caption-row--quiet .card-name {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
}

.card-ai-description {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    margin-top: 10px;
}

.card-submitted {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--brownstone);
    margin-top: 8px;
    opacity: 0.85;
}

/* Static poster assets (prototype + rendering + location photos composited
   together) are shown in full rather than square-cropped into the arch. */
.poster-frame {
    border: 2px solid var(--brownstone);
    border-radius: 6px;
    overflow: hidden;
    background: var(--image-fill);
    cursor: pointer;
}

.poster-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(var(--ink-rgb), 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-frame {
    background: var(--brownstone);
    padding: 14px;
    border-radius: 8px;
    max-width: min(1200px, 92vw);
    max-height: 92vh;
    display: inline-flex;
}

.lightbox-frame img {
    display: block;
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    background: var(--image-fill);
}

.lightbox-caption {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    align-items: baseline;
    font-family: 'DM Sans', sans-serif;
    color: var(--cream);
    font-size: 16px;
}

.lightbox-caption .card-number {
    color: var(--cream);
    opacity: 0.85;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--cream);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--cream);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 12px;
}

.lightbox-arrow:hover {
    opacity: 0.7;
}

.lightbox-arrow--prev {
    left: 16px;
}

.lightbox-arrow--next {
    right: 16px;
}

@media (max-width: 600px) {
    .lightbox-arrow {
        font-size: 1.8rem;
    }
}

/* === ABOUT === */
.about-intro {
    column-count: 2;
    column-gap: 56px;
    font-family: 'Fraunces', serif;
    font-size: 24px;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 96px;
}

@media (max-width: 768px) {
    .about-intro {
        column-count: 1;
    }
}

.artist-section {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 768px) {
    .artist-section {
        grid-template-columns: 1fr;
    }
}

.artist-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.pill-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.pill-link-filled {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--ink);
    color: var(--marigold);
    text-decoration: none;
}

.pill-link-outline {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 12px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
}

/* === FOOTER === */
.site-footer {
    border-top: 1.5px solid var(--ink);
    margin-top: 96px;
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--ink);
}

.site-footer .wordmark {
    font-size: 18px;
}

/* Elements with their own display rule still need to honor the hidden attribute. */
[hidden] {
    display: none !important;
}

/* === SITE PAGES === */
.hero-arch-wrap--wide {
    width: 100%;
    max-width: 1100px;
    margin: 0;
}

.arch-frame--wide {
    aspect-ratio: 2 / 1;
}

.page-site .hero-caption {
    text-align: left;
}

.address-note {
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-size: 15px;
    color: var(--brownstone);
    margin: -8px 0 24px 0;
}

/* === GALLERY FILTERS === */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-pill {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 12px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    background: transparent;
    text-decoration: none;
}

.filter-pill.is-active {
    background: var(--ink);
    color: var(--marigold);
    font-weight: 700;
}

.filter-pills--sites .filter-pill {
    border-color: var(--brownstone);
    color: var(--brownstone);
}

.filter-pills--sites .filter-pill.is-active {
    background: var(--brownstone);
    color: var(--cream);
}

.site-cta {
    margin-bottom: 24px;
}

.gallery-empty {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 20px;
    margin: 24px 0;
}

#buildings-container {
    margin-top: 24px;
}

.rendering-card.is-highlighted .eyebrow {
    margin-bottom: 10px;
}

.lightbox-share {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--cream);
    background: transparent;
    border: 1.5px solid var(--cream);
    border-radius: 999px;
    padding: 10px 18px;
    min-height: 44px;
    cursor: pointer;
}

.lightbox-share:focus-visible {
    outline-color: var(--cream);
}

/* === GENERATION LOADER === */
.loader {
    position: relative;
    padding-top: 48px;
    padding-bottom: 48px;
}

.loader-steps {
    position: relative;
}

/* Bars start as outlines in their own color and fill in as each stage begins. */
.loader-steps .step--forest { --step-color: var(--forest); }
.loader-steps .step--brownstone { --step-color: var(--brownstone); }
.loader-steps .step--terracotta { --step-color: var(--terracotta); }

.loader-steps .step {
    background: rgba(244, 211, 94, 0.85);
    box-shadow: inset 0 0 0 2px var(--step-color);
    color: var(--ink);
    transition: background-color 0.6s ease, color 0.6s ease;
}

.loader-steps .step .step-label {
    margin-bottom: 0;
}

.loader-steps .step:not(.is-filled) .step-label {
    color: var(--ink);
}

.loader-steps .step.is-filled {
    background: var(--step-color);
    color: var(--cream);
}

.loader-status {
    position: relative;
    margin-top: 24px;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 18px;
}

.form-page .submit-error {
    padding-bottom: 0;
}

.submit-error .section-heading {
    margin-bottom: 16px;
}

.submit-error p {
    margin-bottom: 16px;
}

.lightbox-caption .card-name {
    color: var(--cream);
}

/* === SUGGEST A SITE === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.suggest-form {
    max-width: 760px;
    margin-top: 40px;
}

.suggest-step {
    padding: 28px 0 8px 0;
}

.suggest-step .step-label {
    display: block;
    color: var(--ink);
    margin-bottom: 6px;
}

.optional {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--brownstone);
    margin-left: 6px;
}

.field-help {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--ink);
    opacity: 0.8;
    margin: 0 0 4px 0;
}

.field-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 15px;
    margin-top: 8px;
}

.field-error {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--brownstone);
    margin: 0 0 16px 0;
}

textarea {
    width: 100%;
    padding: 16px 0;
    margin-bottom: 4px;
    font-size: clamp(1.1rem, 2.6vw, 1.5rem);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.5;
    background: transparent;
    border: none;
    border-bottom: 3px solid rgba(30, 42, 26, 0.3);
    color: var(--ink);
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-bottom-color: var(--ink);
}

.char-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    text-align: right;
    color: var(--brownstone);
    margin-bottom: 16px;
}

.photo-button {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin: 16px 0 24px 0;
    padding: 16px 24px;
    min-height: 44px;
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.suggest-step:has(#photo-input:focus-visible) .photo-button {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.photo-button-sub {
    font-weight: 400;
    font-size: 14px;
    color: var(--brownstone);
}

.photo-preview {
    margin: 16px 0 8px 0;
}

.photo-preview img {
    display: block;
    max-width: min(320px, 100%);
    max-height: 320px;
    border: 2px solid var(--brownstone);
    border-radius: 6px;
    margin-bottom: 8px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 10px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
}

.check-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: none;
    accent-color: var(--ink);
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 24px;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.suggest-step .btn-primary {
    margin-top: 16px;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: wait;
}

.ig-cta {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 20px;
    margin-top: 48px;
}

.ig-cta a {
    text-underline-offset: 4px;
}

.suggest-link {
    margin-top: 32px;
}

/* === LOADING + GALLERY ROW === */
.rendering-card.is-placeholder .arch-frame {
    animation: placeholder-pulse 1.6s ease-in-out infinite;
}

@keyframes placeholder-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.gallery-status {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 20px;
    margin-top: 24px;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-bottom: 24px;
}

.filter-row .filter-pills {
    margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .rendering-card.is-placeholder .arch-frame {
        animation: none;
    }
}

/* Long single words like "Neighborhood" can't wrap, so let the heading shrink on phones. */
@media (max-width: 600px) {
    .display-heading .line-1 {
        font-size: clamp(28px, 8vw, 44px);
    }
}
