/* Daniel Silva Studio — local static site, no external dependencies */
:root {
  --paper: #f3efe8;
  --cream: #fbf8f3;
  --card: #fffcf8;
  --ink: #121110;
  --ink-soft: #5c5852;
  --rule: #ddd6cc;
  --rule-strong: #c9c0b4;
  --accent: #8a6d49;
  --shadow: 0 1px 2px rgba(18, 17, 16, 0.06), 0 10px 28px rgba(18, 17, 16, 0.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wide: 70rem;
  --text: 40rem;
  --header-h: 3.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-underline-offset: 0.15em;
}
a:hover { color: var(--accent); }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.75rem;
  z-index: 30;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
}
.skip:focus { top: 0; }

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  align-self: center;
}
.logo-name { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; }
.nav-toggle span::before { transform: translate(-50%, calc(-50% - 5px)); }
.nav-toggle span::after { transform: translate(-50%, calc(-50% + 5px)); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translate(-50%, -50%) rotate(-45deg); }

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

main { padding: 2rem 0 4.5rem; }

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin: 0 0 0.55rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.15rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 3rem; }
h3 { font-size: 1.15rem; margin-top: 2.35rem; }

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.25rem;
}

.hero {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.hero-copy p:last-of-type { margin-bottom: 0; }
.hero-art {
  margin: 0;
  background: var(--cream);
}
.hero-art img {
  width: 100%;
  height: auto;
  max-height: min(82vh, 44rem);
  object-fit: contain;
  object-position: center top;
  background: var(--cream);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  margin: 1.4rem 0 0;
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--ink);
  border-radius: 2px;
}
.btn:hover { background: #2a2927; color: var(--cream); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--cream); color: var(--ink); }

.feature-grid,
.card-grid,
.pair-grid,
.closeup-grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
}
.feature-grid { grid-template-columns: 1fr; }
.card-grid { grid-template-columns: 1fr; }

.tile {
  margin: 0;
  background: var(--cream);
}
.tile a { display: block; text-decoration: none; color: inherit; }
.tile img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.tile figcaption,
.caption {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.65rem 0.1rem 0.2rem;
}
.title {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}

.note, .gallery-note {
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}
.placeholder-note {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--accent);
  border: 1px solid var(--rule-strong);
  padding: 0.2rem 0.5rem;
  margin: 0 0 1rem;
  background: var(--cream);
}

.section-intro { margin-top: 0.15rem; }

.masonry {
  column-count: 1;
  column-gap: 1rem;
  margin: 1.25rem 0 0;
}
.masonry .tile {
  break-inside: avoid;
  margin: 0 0 1rem;
}

.wide-tile {
  margin: 1rem 0 1.5rem;
  background: var(--cream);
}
.wide-tile img { width: 100%; height: auto; }
.wide-tile figcaption { padding: 0.65rem 0.1rem 0.2rem; }

.panorama {
  margin: 1rem 0 0;
  background: #1a1a1a;
}
.panorama img {
  width: 100%;
  height: auto;
  display: block;
}
.panorama figcaption {
  color: var(--ink-soft);
  padding: 0.65rem 0.1rem 0.2rem;
  background: var(--paper);
}

.pair-grid { grid-template-columns: 1fr; }
.closeup-grid { grid-template-columns: 1fr 1fr; }

.service-card,
.teaser,
.quote-box {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 1.35rem 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.service-card h2,
.teaser h2,
.quote-box h2 { margin-top: 0; }
.service-card p:last-child,
.teaser p:last-child { margin-bottom: 0; }

.teaser {
  display: grid;
  gap: 0.25rem 2rem;
  margin-top: 3rem;
  align-items: center;
}

.quote-box { margin-top: 2.5rem; }
.quote-box a { font-weight: 600; }

.soon {
  margin-top: 2rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--cream);
  border: 1px dashed var(--rule-strong);
}
.soon h2 { margin-top: 0; }
.soon p { max-width: 32rem; margin: 0 auto; color: var(--ink-soft); }

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--cream);
  padding: 1.4rem 0 1.7rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 9, 0.94);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}
.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.6rem;
  text-align: center;
  color: #d8d4cc;
  font-size: 0.85rem;
  padding: 0 1rem;
}
.lightbox-btn {
  position: absolute;
  background: transparent;
  border: 0;
  color: #f4f1ec;
  cursor: pointer;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-btn:hover { color: #fff; }
.lightbox-close { top: 0.4rem; right: 0.4rem; font-size: 1.85rem; }
.lightbox-prev { left: 0.15rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.15rem; top: 50%; transform: translateY(-50%); }

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .pair-grid { grid-template-columns: 1fr 1fr; }
  .closeup-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 2; }
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(20rem, 1.15fr);
    gap: 3rem;
    align-items: start;
    padding-top: 2.25rem;
    margin-bottom: 4rem;
  }
  .masonry { column-count: 3; }
  .closeup-grid { grid-template-columns: repeat(4, 1fr); }
  .teaser { grid-template-columns: 1fr auto; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 0.4rem 1rem 0.9rem;
  }
  nav.is-open { display: block; }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .header-inner { position: relative; }
}

@media (max-width: 420px) {
  .closeup-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 3.15rem; }
  .lightbox { padding: 3.2rem 0.6rem 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lightbox { transition: none; }
}

/* Single featured piece: keep portrait canvases a comfortable size */
.single-tile { max-width: 440px; margin-left: auto; margin-right: auto; }
