:root {
  --blush: #fff5f8;
  --petal: #fde4ee;
  --rose: #f9c6da;
  --pink: #f08cb4;
  --deep: #d9467f;
  --berry: #8f1f50;
  --ink: #4a1630;
  --muted: #9b6680;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(217, 70, 127, .14);
  --shadow-lg: 0 24px 60px rgba(143, 31, 80, .22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--blush);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--petal) 0%, var(--rose) 55%, #f6a9c8 100%);
}
.nav {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px clamp(16px, 5vw, 64px);
}
.mark {
  font-family: var(--serif); font-size: 28px; font-style: italic; text-decoration: none;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.55); color: var(--berry);
  backdrop-filter: blur(6px);
}
.links a {
  margin-left: 28px; text-decoration: none; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--berry);
}
.links a:hover { color: var(--deep); }
.hero-inner {
  position: relative; z-index: 2;
  margin: auto; text-align: center;
  padding: 40px 16px 96px;
}
.eyebrow {
  letter-spacing: .4em; text-transform: uppercase; font-size: 13px;
  color: var(--deep); margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(72px, 16vw, 180px);
  line-height: .9; font-style: italic; color: var(--berry);
  letter-spacing: -.02em;
}
.lede { font-family: var(--serif); font-size: clamp(20px, 3vw, 26px); color: var(--ink); margin: 18px 0 36px; }
.scroll {
  display: inline-block; text-decoration: none;
  padding: 14px 30px; border-radius: 999px;
  background: var(--deep); color: #fff; font-size: 15px; letter-spacing: .06em;
  box-shadow: var(--shadow); transition: transform .2s, background .2s;
}
.scroll:hover { background: var(--berry); transform: translateY(-2px); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; z-index: 1; }
.b1 { width: 420px; height: 420px; background: #ffffff; top: -120px; left: -100px; }
.b2 { width: 520px; height: 520px; background: #ee7fae; bottom: -220px; right: -160px; opacity: .45; }

/* Work */
.work { padding: 80px clamp(16px, 5vw, 64px); max-width: 1400px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; border-bottom: 1px solid var(--rose); padding-bottom: 14px; }
.section-head h2 { font-size: clamp(34px, 5vw, 48px); color: var(--berry); }
.count { color: var(--muted); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }

.grid { columns: 3 300px; column-gap: 28px; }
.piece {
  break-inside: avoid; margin: 0 0 28px; cursor: zoom-in;
  background: var(--card); border-radius: 18px; padding: 12px;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  opacity: 0; transform: translateY(16px);
  border: 0; width: 100%; text-align: left; font: inherit; color: inherit; display: block;
}
.piece.in { opacity: 1; transform: none; transition: opacity .6s, transform .6s, box-shadow .3s; }
.piece:hover, .piece:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); outline: none; }
.piece img { width: 100%; height: auto; display: block; border-radius: 10px; background: var(--petal); }
.piece .cap { padding: 14px 6px 4px; }
.piece h3 { font-size: 22px; color: var(--ink); }
.piece p { margin: 4px 0 0; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.empty { text-align: center; color: var(--muted); font-family: var(--serif); font-size: 24px; }

/* About */
.about { padding: 40px clamp(16px, 5vw, 64px) 100px; }
.about-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: linear-gradient(140deg, #fff 0%, var(--petal) 100%);
  border-radius: 28px; padding: clamp(32px, 6vw, 64px);
  box-shadow: var(--shadow);
}
.about-card h2 { font-size: 44px; color: var(--berry); margin-bottom: 18px; font-style: italic; }
.about-card p { font-family: var(--serif); font-size: 22px; line-height: 1.6; margin: 0; }
.about-card .contact { margin-top: 22px; font-family: var(--sans); font-size: 16px; color: var(--deep); }

.footer {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  padding: 28px clamp(16px, 5vw, 64px);
  background: var(--berry); color: var(--rose); font-size: 13px; letter-spacing: .06em;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(74, 22, 48, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 72px;
  animation: fade .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-figure img {
  max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain;
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.4); background: var(--petal);
}
.lb-figure figcaption { text-align: center; color: var(--petal); padding-top: 16px; max-width: 640px; }
.lb-figure h3 { font-size: 30px; font-style: italic; color: #fff; }
.lb-figure p { margin: 6px 0 0; font-size: 14px; letter-spacing: .05em; color: var(--rose); }
.lb-desc:empty { display: none; }
.lb-btn {
  position: absolute; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(249, 198, 218, .18); color: #fff; font-size: 32px; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--deep); outline: none; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox { padding: 64px 12px 24px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-figure img { max-height: calc(100vh - 230px); }
  .links a { margin-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .piece, .piece.in { transition: none; opacity: 1; transform: none; }
}

/* Shown only to signed-in visitors */
.links a.admin-link {
  padding: 8px 18px; border-radius: 999px;
  background: var(--deep); color: #fff; letter-spacing: .1em;
  box-shadow: var(--shadow); transition: background .2s;
}
.links a.admin-link:hover { background: var(--berry); color: #fff; }
.links a.admin-link[hidden] { display: none; }
