/* photopd.cz - minimal presentation site.
   White space, neutral greys, no colour accents, no shadows. */

:root {
    --bg: #ffffff;
    --placeholder: #ececec;
    --placeholder-strong: #e2e2e2;
    --line: #e6e6e6;
    --text: #1a1a1a;
    --muted: #6f6f6f;

    --font-serif: ui-serif, Georgia, "Times New Roman", Times, serif;
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --header-height: 76px;
    --container: 1160px;
    --section-space: 6rem;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding-top: var(--header-height);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
}

p {
    margin: 0 0 1.25rem;
    max-width: 62ch;
}

a {
    color: inherit;
    text-decoration-color: var(--line);
    text-underline-offset: 0.25em;
}

a:hover {
    text-decoration-color: var(--muted);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* --- Layout ------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container.narrow {
    max-width: 760px;
}

.section {
    padding: var(--section-space) 0;
}

.section-intro {
    padding-bottom: 3rem;
}

.section-tight {
    padding-top: 0;
}

.section-title {
    font-size: 0.78rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--bg);
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    z-index: 100;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* --- Header and navigation ---------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    z-index: 50;
}

.header-inner {
    height: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.wordmark {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    text-decoration: none;
    white-space: nowrap;
}

.wordmark-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 0.01em;
}

.wordmark-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
}

.site-nav a {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}

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

.site-nav a.is-active {
    color: var(--text);
    border-bottom-color: var(--text);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-right: -0.5rem;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text);
    margin: 0 auto;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: relative;
}

.nav-toggle-bars::before {
    top: -7px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
    padding: clamp(4rem, 12vw, 9rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-title {
    font-size: clamp(2.2rem, 6.5vw, 3.9rem);
    margin-bottom: 1.75rem;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 0;
}

/* --- Placeholders and galleries ----------------------------------------- */

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--placeholder);
    padding: 1rem;
    text-align: center;
}

.placeholder.ratio-4-5 {
    aspect-ratio: 4 / 5;
}

.placeholder.ratio-3-2 {
    aspect-ratio: 3 / 2;
}

.placeholder-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.gallery,
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

/* Gallery photographs keep their own proportions - nothing gets cropped. */
.gallery img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--placeholder);
}

.tile {
    display: block;
    text-decoration: none;
}

/* Tiles are a navigation grid, so here a uniform crop wins over the original proportions. */
.tile-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--placeholder);
    transition: opacity 0.2s ease;
}

.tile:hover .tile-image {
    opacity: 0.88;
}

.tile .placeholder {
    transition: background-color 0.2s ease;
}

.tile:hover .placeholder {
    background: var(--placeholder-strong);
}

.tile-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin: 1rem 0 0.35rem;
}

.tile-teaser {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 34ch;
}

/* --- Buttons and calls to action ---------------------------------------- */

.button {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border: 1px solid var(--text);
    background: none;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

.section-cta {
    border-top: 1px solid var(--line);
    padding-top: 4rem;
}

.cta-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
}

.cta-inline {
    margin-top: 2.5rem;
}

/* --- Contact form ------------------------------------------------------- */

.contact-form {
    margin: 2.5rem 0 2rem;
    max-width: 620px;
}

.field {
    margin-bottom: 1.75rem;
}

.field label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.field-optional {
    text-transform: none;
    letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--text);
    outline: none;
}

.field-error {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text);
}

.field-error:not(:empty)::before {
    content: "↳ ";
    color: var(--muted);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    margin: 0 0 2rem;
    font-size: 0.95rem;
    max-width: 620px;
}

.notice:empty {
    display: none;
}

.notice-success {
    border-left: 2px solid var(--text);
}

.notice-error {
    border-left: 2px solid var(--text);
    background: #fafafa;
}

.notice ul {
    margin: 0;
    padding-left: 1.1rem;
}

.contact-direct {
    font-size: 0.95rem;
    color: var(--muted);
}

/* --- Footer ------------------------------------------------------------- */

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

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2.5rem;
    align-items: baseline;
}

.footer-inner p {
    margin: 0;
    font-size: 0.85rem;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1rem;
}

.footer-contact a {
    color: var(--muted);
}

.footer-note {
    color: var(--muted);
    margin-left: auto;
}

/* --- Mobile ------------------------------------------------------------- */

@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
        --section-space: 3.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        display: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1.5rem;
    }

    .site-nav li + li {
        border-top: 1px solid var(--line);
    }

    .site-nav a {
        display: block;
        padding: 0.9rem 0;
        border-bottom: 0;
        font-size: 0.85rem;
    }

    .site-nav a.is-active {
        border-bottom: 0;
        text-decoration: underline;
        text-underline-offset: 0.35em;
    }

    body.nav-open {
        overflow: hidden;
    }

    .footer-note {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    .gallery,
    .tiles {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .lead,
    .hero-text {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
