/* No Logo Project: shared stylesheet
 * --------------------------------------------------
 * Dark off-black palette. Sans-serif throughout, serif reserved for the
 * wordmark. Generous whitespace, 0.5px borders, no shadows or gradients.
 */

:root {
    --bg:          #0e0e0e;
    --bg-elevated: #161616;
    --bg-input:    #1a1a1a;
    --text:        #e8e8e6;
    --text-muted:  rgba(232, 232, 230, 0.6);
    --text-faint:  rgba(232, 232, 230, 0.4);
    --border:      rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --accent:      #e8e8e6;
    --danger:      #c47b6f;
    --max-width:   1080px;
    --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif:  "Cormorant Garamond", "Iowan Old Style", "Apple Garamond", Garamond, Georgia, "Times New Roman", serif;
    --font-mono:   ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 0.5px solid var(--border-strong);
    transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--text); }

::selection { background: rgba(232, 232, 230, 0.2); color: var(--text); }

/* -------- Layout shell -------- */
.shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 3.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 1.25rem;
    border-bottom: 0.5px solid var(--border);
    margin-bottom: 2rem;
}

.wordmark {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text);
    border: none;
}

.site-nav {
    display: flex;
    gap: 1.75rem;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.site-nav a {
    color: var(--text-muted);
    border: none;
}
.site-nav a:hover,
.site-nav a.active { color: var(--text); }

.site-footer {
    margin-top: 4rem;
    padding-top: 1.25rem;
    border-top: 0.5px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    padding-bottom: 0.5rem;
}

/* -------- Typography -------- */
h1, h2, h3 { font-weight: 400; color: var(--text); margin: 0 0 1rem; }
h1 { font-size: 26px; line-height: 1.35; letter-spacing: -0.01em; max-width: 36ch; }
h2 { font-size: 18px; letter-spacing: 0; }
h3 { font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }

p { margin: 0 0 1rem; color: var(--text); max-width: 60ch; }
p.lead { font-size: 17px; line-height: 1.6; max-width: 50ch; color: var(--text); }
p.muted { color: var(--text-muted); }

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
}

/* -------- Forms -------- */
.login-card {
    max-width: 380px;
    margin: 4rem auto;
}
.login-card h1 { font-size: 20px; margin-bottom: 0.5rem; }
.login-card p.muted { margin-bottom: 2rem; font-size: 13px; }

.field { margin-bottom: 1rem; }
.field label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
}
.field input {
    width: 100%;
    background: var(--bg-input);
    border: 0.5px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    border-radius: 2px;
    outline: none;
    transition: border-color 120ms ease;
}
.field input:focus { border-color: var(--text-muted); }

button.primary {
    width: 100%;
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 11px 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: opacity 120ms ease;
}
button.primary:hover { opacity: 0.85; }
button.primary:disabled { opacity: 0.4; cursor: not-allowed; }

.alert {
    padding: 10px 12px;
    border: 0.5px solid var(--border);
    border-left: 2px solid var(--danger);
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 1.25rem;
    background: rgba(196, 123, 111, 0.05);
}

/* -------- Gallery -------- */
.client-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.5px solid var(--border);
}
.client-meta {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}
.client-meta span strong {
    color: var(--text-faint);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-right: 6px;
}

/* -------- Project picker -------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.project-card {
    display: block;
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: 2px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: border-color 150ms ease, background 150ms ease;
    cursor: pointer;
}
.project-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-input);
}
.project-card-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}
.project-card-period {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.project-card-notes {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}
.project-card-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.05em;
}

.section { margin-bottom: 3rem; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}
.section-head .count {
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.05em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.gallery-item {
    background: var(--bg-elevated);
    border: 0.5px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 120ms ease;
}
.gallery-item:hover { border-color: var(--border-strong); }
.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.gallery-item .caption {
    padding: 8px 10px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 0.5px solid var(--border);
    font-family: var(--font-mono);
}

.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 14px;
}
.file-list li:last-child { border-bottom: none; }
.file-list .file-name { color: var(--text); display: flex; align-items: center; gap: 10px; }
.file-list .file-ext {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    border: 0.5px solid var(--border);
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.05em;
}
.file-list .file-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    display: flex;
    gap: 1rem;
    align-items: center;
}
.file-list a.download {
    border: none;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
}
.file-list a.download:hover { color: var(--text); }

.empty {
    padding: 2rem 0;
    color: var(--text-faint);
    font-size: 13px;
    text-align: center;
    font-style: italic;
}

/* -------- Lightbox -------- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: min(90vw, 1200px);
    max-height: calc(100vh - 120px);
    object-fit: contain;
    cursor: default;
    display: block;
}
.lb-controls {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.75rem 0 0;
    user-select: none;
    flex-shrink: 0;
}
.lb-controls button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 18px;
    line-height: 1;
    transition: color 150ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-controls button:hover { color: rgba(255, 255, 255, 0.9); }
.lb-controls button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.lb-counter {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.08em;
    padding: 0 1rem;
    min-width: 60px;
    text-align: center;
}

@media (max-width: 640px) {
    .lightbox { padding: 1rem; }
    .lightbox img { max-width: 100%; max-height: calc(100vh - 100px); }
}

/* -------- Responsive -------- */
@media (max-width: 640px) {
    .shell { padding: 2rem 1.25rem; }
    .site-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .site-nav { gap: 1rem; flex-wrap: wrap; }
    h1 { font-size: 22px; }
    .client-meta { flex-direction: column; gap: 0.5rem; }
    main.home .hero { padding: 1rem 0 2rem; }
    main.home .services { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1.5rem; }
    main.page .contact dl { grid-template-columns: 1fr; gap: 0.25rem 0; }
    main.page .contact dt { margin-top: 1rem; }
}

/* -------- Homepage -------- */
main.home {
    display: flex;
    flex-direction: column;
    gap: 0;
}
main.home .hero {
    max-width: 100%;
    padding: 0.5rem 0 2rem;
}
main.home .hero h1 {
    margin-bottom: 1.25rem;
    max-width: 64ch;
}
main.home .hero .lead {
    max-width: 72ch;
}
main.home .services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 0.5px solid var(--border);
}
main.home .services .service p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

/* -------- Standard content page -------- */
main.page {
    flex: 1;
    padding: 1rem 0 3rem;
    max-width: 640px;
}
main.page > .eyebrow {
    margin-bottom: 1rem;
}
main.page h1 {
    margin-bottom: 2.5rem;
}
main.page .prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
main.page .prose p {
    margin-bottom: 1rem;
}

/* -------- Contact -------- */
main.page .contact dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.75rem 2rem;
    margin: 0 0 2rem;
    padding-top: 0.5rem;
}
main.page .contact dt {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding-top: 4px;
}
main.page .contact dd {
    margin: 0;
    font-size: 15px;
    color: var(--text);
}
main.page .contact dd a {
    font-family: var(--font-mono);
    font-size: 14px;
}

