/* A photographer's website: blocks on the tokens view.css defines (theme and type follow the site's design) */

.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 6px; }
.site-nav a { padding: 7px 12px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: var(--bg-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); }
.site-nav .draft { font-size: 11px; color: var(--muted); font-weight: 400; }

.blocks { display: flex; flex-direction: column; }
.blk { padding: clamp(40px, 7vh, 80px) 24px; }
.blk + .blk { padding-top: 0; }
.blk h2 { max-width: 1120px; margin: 0 auto 18px; font-family: var(--display); font-weight: var(--title-weight); font-size: clamp(24px, 3.2vw, 36px); letter-spacing: var(--title-spacing); line-height: 1.15; text-transform: var(--title-transform); text-wrap: balance; }
:root[data-font="serif"] .blk h2 { font-size: clamp(30px, 4vw, 46px); }
.prose { max-width: 68ch; color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--text); }

/* Cover */
.blk-cover { position: relative; display: grid; min-height: min(84vh, 820px); padding: 0; }
.blk-cover img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.blk-cover::after { content: ''; grid-area: 1 / 1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .15) 50%, rgba(0, 0, 0, .55) 100%); }
.blk-cover-text { grid-area: 1 / 1; z-index: 1; align-self: end; padding: 0 clamp(20px, 5vw, 64px) clamp(36px, 7vh, 72px); color: #fff; }
.blk-cover-text h1 { max-width: 18ch; margin: 0; text-shadow: 0 1px 24px rgba(0, 0, 0, .3); }
.blk-cover-text .sub { max-width: 52ch; margin: 14px 0 0; font-size: clamp(15px, 1.6vw, 19px); color: rgba(255, 255, 255, .85); }
.blk-cover.no-photo { min-height: 0; padding: clamp(56px, 12vh, 120px) 24px clamp(16px, 4vh, 40px); text-align: center; }
.blk-cover.no-photo::after { display: none; }
.blk-cover.no-photo .blk-cover-text { padding: 0; color: var(--text); text-align: center; }
.blk-cover.no-photo .blk-cover-text h1 { max-width: none; text-shadow: none; }
.blk-cover.no-photo .blk-cover-text .sub { max-width: 52ch; margin: 14px auto 0; color: var(--text-2); }
.blk-cover + .blk { padding-top: clamp(40px, 7vh, 80px); }

/* Text */
.blk-text { max-width: 1168px; width: 100%; margin: 0 auto; }
.blk-text h2 { margin-left: 0; }

/* Photo and text */
.blk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; max-width: 1168px; width: 100%; margin: 0 auto; }
.blk-split.side-right .blk-split-photo { order: 2; }
.blk-split-photo { aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; }
.blk-split-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blk-split h2 { margin-left: 0; }

/* Photos */
.blk-images { max-width: 1168px; width: 100%; margin: 0 auto; }
.blk-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.blk-images-grid figure { margin: 0; aspect-ratio: 3 / 2; background: var(--bg-2); overflow: hidden; }
.blk-images-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blk-images.layout-row .blk-images-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.blk-images.layout-row figure { aspect-ratio: 1; }

/* Galleries */
.blk-galleries { max-width: 1168px; width: 100%; margin: 0 auto; }
.blk-galleries h2 { margin-left: 0; }
.blk-galleries .site-grid { max-width: none; padding: 0; grid-template-columns: repeat(auto-fill, minmax(260px, 320px)); }
.blk-galleries .site-card h3 { margin: 12px 0 2px; font-family: var(--display); font-size: 19px; font-weight: var(--title-weight); text-transform: var(--title-transform); }
.blk-galleries .empty { padding: 20px; }

/* Contact */
.blk-contact { max-width: 1168px; width: 100%; margin: 0 auto; }
.blk-contact .intro, .contact-form { max-width: 560px; }
.blk-contact h2 { margin-left: 0; }
.blk-contact .intro { margin: -6px 0 20px; color: var(--text-2); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.contact-form input, .contact-form textarea { padding: 11px 12px; border: 1px solid var(--panel-line); border-radius: 8px; background: var(--field); color: var(--text); font: inherit; font-size: 15px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--text); }
.contact-form textarea { resize: vertical; }
.contact-form .pay { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { padding: 14px 16px; border-radius: 8px; background: var(--bg-2); color: var(--text); }
.blk-contact .wrong { margin: 0 0 12px; color: var(--wrong); font-size: 14px; }

.site-foot { border-top: 1px solid var(--line); margin-top: 24px; }
.site-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 0 10px; font-size: 13px; }
.site-links a { color: var(--text); text-decoration: none; }
.site-links a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .top { flex-wrap: wrap; }
    .site-nav { width: 100%; justify-content: flex-start; margin: 2px -6px 0; }
    .blk { padding: 36px 16px; }
    .blk-cover { min-height: min(70vh, 560px); padding: 0; }
    .blk-split { grid-template-columns: 1fr; }
    .blk-split.side-right .blk-split-photo { order: 0; }
    .blk-split-photo { aspect-ratio: 4 / 3; }
}
