/* Cakes by Jam
   Quiet studio style, modeled on established cake-studio sites:
   photo-led, centered tracked-caps titles, hairlines, one serif + one sans. */
:root {
  --page: #f8eaec;
  --panel: #f1d9de;
  --frame: #ecccd4;
  --rose: #a9506b;
  --berry: #4f1d2c;
  --text: #3d2229;
  --muted: #73525b;
  --line: rgba(79, 29, 44, .18);
  --serif: "Bodoni Moda", Didot, Georgia, serif;
  --sans: "Jost", Futura, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--berry); color: var(--page); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

/* small tracked caps, used for nav, buttons, titles */
.nav nav a, .btn, .section-title h2, .about-text h2, .hero-role, .facts p, .cv time, .filters button, .tile figcaption, footer {
  text-transform: uppercase; letter-spacing: .22em;
}

.hy { font-family: var(--sans); font-style: normal; font-weight: 300; padding: 0 .04em; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter);
  background: rgba(248, 234, 236, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font: 400 1.25rem/1 var(--serif); text-decoration: none; color: var(--berry); letter-spacing: .04em; }
.nav nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav nav a { font-size: .7rem; text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav nav a:hover { border-color: var(--rose); }

/* buttons */
.btn { display: inline-block; font-size: .7rem; text-decoration: none; padding: 15px 30px; border: 1px solid var(--berry); transition: background .3s, color .3s; }
.btn-solid { background: var(--berry); color: var(--page); }
.btn-solid:hover { background: var(--rose); border-color: var(--rose); }
.btn-line:hover { background: var(--berry); color: var(--page); }

/* photo slots */
.frame { position: relative; overflow: hidden; background: var(--frame); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.frame.is-empty::after, .frame:empty::after {
  content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center;
  font: italic 400 1rem/1 var(--serif); color: rgba(79, 29, 44, .38);
}

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 66px); }
.hero-photo { min-height: 540px; }
.hero-panel {
  background: var(--panel);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 88px);
}
.monogram { width: 104px; height: 104px; border: 1px solid var(--berry); border-radius: 50%; display: grid; place-items: center; margin-bottom: 44px; }
.monogram span { font: italic 400 2.1rem/1 var(--serif); color: var(--berry); }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: 1.1; color: var(--berry); margin-bottom: 18px; }
.hero-role { font-size: .74rem; color: var(--rose); margin: 0 0 34px; }
.hero-lede { max-width: 27em; color: var(--muted); margin: 0 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* facts band */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts p { margin: 0; padding: 26px 16px; text-align: center; font-size: .72rem; color: var(--berry); }
.facts p + p { border-left: 1px solid var(--line); }

/* section shells */
.work, .experience, .contact { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 130px) var(--gutter); }
.section-title { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-title h2, .about-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--berry); letter-spacing: .28em; }
.section-title h2::after, .about-text h2::after { content: ""; display: block; width: 44px; height: 1px; background: var(--rose); margin: 22px auto 0; }
.section-title p { color: var(--muted); margin: 20px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

/* gallery */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: -12px 0 40px; }
.filters:empty { display: none; }
.filters button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 4px 0; cursor: pointer; font: 400 .7rem/1 var(--sans); letter-spacing: .22em; color: var(--muted); }
.filters button:hover, .filters button[aria-selected="true"] { color: var(--berry); border-color: var(--rose); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 22px; }
.tile { margin: 0; opacity: 0; animation: fade .8s var(--d, 0ms) ease forwards; }
.tile .frame { aspect-ratio: 4 / 5; }
.tile .frame.has-img { cursor: zoom-in; }
.tile .frame.has-img:hover img { transform: scale(1.03); }
.tile figcaption { margin-top: 14px; font-size: .68rem; color: var(--berry); text-align: center; }
.tile figcaption:has(em:empty) { display: none; }
.tile figcaption em { font-style: normal; }
.tile figcaption span { display: block; color: var(--rose); margin-top: 2px; }
.tile figcaption span:empty { display: none; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); }
.about-photo { min-height: 560px; }
.about-text { padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 96px); align-self: center; text-align: center; }
.about-text h2 { margin-bottom: 36px; }
.about-text p { color: var(--muted); max-width: 32em; margin: 0 auto 18px; }
.about-text .about-intro { font: italic 400 1.35rem/1.5 var(--serif); color: var(--berry); margin-bottom: 26px; }

/* experience */
.cv { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; border-top: 1px solid var(--line); }
.cv li { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.cv time { font-size: .68rem; color: var(--rose); padding-top: 8px; }
.cv h3 { font-size: 1.45rem; color: var(--berry); line-height: 1.3; }
.cv .where { color: var(--text); font-size: .92rem; margin: 2px 0 8px; }
.cv p { margin: 0; color: var(--muted); }
.cv-download { text-align: center; margin: 48px 0 0; }

/* contact */
.contact { text-align: center; border-top: 1px solid var(--line); }
.email { font: 400 clamp(1.15rem, 2.8vw, 1.8rem)/1.3 var(--serif); color: var(--berry); text-decoration: none; border-bottom: 1px solid var(--rose); padding-bottom: 4px; word-break: break-all; transition: color .3s; }
.email:hover { color: var(--rose); }
.contact-place { margin: 28px 0 0; color: var(--muted); font-size: .9rem; }

footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 26px var(--gutter); background: var(--berry); color: rgba(248, 234, 236, .75); font-size: .64rem;
}

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(40, 16, 24, .94); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 82vh; max-width: min(92vw, 1000px); margin: 0 auto; }
.lightbox figcaption { color: var(--page); text-align: center; margin-top: 14px; font: italic 400 1.15rem var(--serif); }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: var(--page); cursor: pointer; font: 400 .7rem var(--sans); letter-spacing: .22em; text-transform: uppercase; }

/* motion: one gentle fade on load, nothing else */
.js .reveal { opacity: 0; animation: fade 1s ease forwards; }
.hero-panel .reveal:nth-child(2) { animation-delay: .1s; }
.hero-panel .reveal:nth-child(3) { animation-delay: .2s; }
.hero-panel .reveal:nth-child(4) { animation-delay: .3s; }
.hero-panel .reveal:nth-child(5) { animation-delay: .4s; }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .tile { opacity: 1; }
}

/* responsive */
@media (max-width: 900px) {
  .hero, .about { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo, .about-photo { min-height: 0; aspect-ratio: 4 / 3.6; }
  .facts { grid-template-columns: 1fr; }
  .facts p + p { border-left: 0; border-top: 1px solid var(--line); }
  .facts p { padding: 18px 16px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .cv li { grid-template-columns: 1fr; gap: 6px; }
  .cv time { padding-top: 0; }
}
@media (max-width: 560px) {
  .nav nav a:not(:last-child) { display: none; }
  .section-title h2, .about-text h2 { letter-spacing: .2em; }
}
