/* Digital Remix — Swiss grid */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --red: #d0021b;
  --muted: #52525b;
  --rule: #e4e4e7;
  --gutter: 24px;
  --margin: clamp(16px, 4.5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; }

/* header / footer */
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-header { padding-block: 40px 56px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.square { width: 20px; height: 20px; background: var(--red); display: inline-block; flex-shrink: 0; }
.square.small { width: 10px; height: 10px; margin-right: 10px; }
nav { display: flex; gap: clamp(20px, 3.5vw, 48px); font-weight: 500; font-size: 15px; }
nav a { padding-block: 10px; border-bottom: 2px solid transparent; }
nav a[aria-current="page"] { border-bottom-color: var(--red); }
.site-footer { margin-top: 96px; padding-block: 28px 40px; border-top: 2px solid var(--ink); font-size: 14px; color: var(--muted); }
.site-footer nav { font-size: 14px; }

/* home */
.hero { align-items: stretch; }
.hero-text { grid-column: span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero h1 { font-size: clamp(48px, 6.2vw, 92px); hyphens: manual; }
.meta { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.meta dd { margin: 0; }
.hero-img { grid-column: span 8; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.row4 { margin-top: 32px; }
.row4 > * { grid-column: span 3; }

/* cards */
.card { display: flex; flex-direction: column; gap: 4px; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 10px; transition: opacity .2s; }
.card:hover img { opacity: .88; }
.card-num { font-size: 13px; font-weight: 700; color: var(--red); }
.card-title { font-size: 17px; font-weight: 500; line-height: 1.3; }
.card-date { font-size: 13px; color: var(--muted); }
.card.all { justify-content: flex-end; border-top: 2px solid var(--ink); padding-top: 14px; min-height: 160px; }
.all-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }

/* gallery list */
.page-head { margin-bottom: 40px; align-items: end; }
.page-head h1 { grid-column: span 6; font-size: clamp(48px, 7vw, 104px); }
.lede { grid-column: 9 / span 4; color: var(--muted); }
.row3 > * { grid-column: span 4; }
.row3 { row-gap: 48px; }

/* single gallery */
.gallery-info { grid-column: span 4; align-self: start; position: sticky; top: 32px; display: flex; flex-direction: column; gap: 14px; }
.gallery-info h1 { font-size: clamp(36px, 4vw, 60px); }
.gallery-info p a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.count { font-size: 13px; font-weight: 700; color: var(--red); }
.pager { margin-top: 24px; flex-direction: column; gap: 0; border-top: 2px solid var(--ink); }
.pager a { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.pager a span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.photos { grid-column: span 8; display: flex; flex-direction: column; gap: var(--gutter); }
.photos img { width: 100%; }

/* contact */
.contact h1 { grid-column: span 4; font-size: clamp(48px, 7vw, 104px); }
.contact-body { grid-column: span 8; display: flex; flex-direction: column; gap: 16px; padding-top: 12px; font-size: 18px; }
.email { font-size: clamp(26px, 3.6vw, 52px); font-weight: 700; letter-spacing: -0.02em; border-bottom: 3px solid var(--red); align-self: flex-start; overflow-wrap: anywhere; }

/* tablet */
@media (max-width: 1024px) {
  .hero-text, .hero-img, .gallery-info, .photos, .contact h1, .contact-body, .page-head h1, .lede { grid-column: 1 / -1; }
  .gallery-info { position: static; }
  .row4 > * { grid-column: span 6; }
  .row3 > * { grid-column: span 6; }
}
/* phone */
@media (max-width: 640px) {
  .site-header { padding-block: 24px 32px; }
  .row4 > *, .row3 > * { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
