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

:root {
  --cream: #f3efe6;
  --cream-translucent: rgba(243, 239, 230, 0.62);
  --ink: #1f1e1c;
  --ink-muted: #5c5852;
  --ink-soft: #6e6962;
  --gap: 0.75rem;
  --page-pad: clamp(1.5rem, 5vw, 4.5rem);
  --max: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.55;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-translucent);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.85rem var(--page-pad) 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2.5rem;
}

.wordmark {
  font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  font-weight: 400;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
  opacity: 1;
}

.nav a:hover {
  opacity: 0.55;
}

.nav-ig {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.nav-ig svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Main */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--page-pad) 4.5rem;
  min-height: 60vh;
}

/* Masonry */

.grid {
  column-count: 3;
  column-gap: var(--gap);
}

.grid-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  display: block;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  background: #e6e0d6;
}

.caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-transform: none;
  font-weight: 400;
}

.caption .title {
  flex: 1;
  min-width: 0;
}

.caption .place {
  text-align: right;
  flex-shrink: 0;
}

.caption .place:empty {
  display: none;
}

/* About / Contact */

.prose {
  max-width: 26rem;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.prose h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin-bottom: 1.35rem;
  letter-spacing: 0.01em;
}

.prose p {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
  line-height: 1.7;
}

.prose .muted {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.prose a {
  border-bottom: 1px solid rgba(31, 30, 28, 0.28);
}

.prose a:hover {
  opacity: 1;
  border-bottom-color: var(--ink);
}

/* Footer */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem var(--page-pad) 2.75rem;
  border-top: 1px solid rgba(31, 30, 28, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .grid {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .grid {
    column-count: 1;
    column-gap: 0;
  }

  .grid-item {
    margin-bottom: 1.1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.15rem var(--page-pad) 1rem;
  }

  .nav {
    gap: 0.85rem;
    justify-content: flex-start;
  }

  .nav a {
    font-size: 0.65rem;
  }

  main {
    padding-top: 1rem;
  }
}
