/* Little Finch Photography, styled after lisa-renner.com at Sharlein's request:
   warm stone ground, light serif capitals with wide tracking, overlapping photo pairs,
   square taupe buttons, taupe bands. Colours stay in the brand family: Mud flat is the taupe,
   Deep water the dark, plus a warm stone ground. */
:root {
  --stone: #DED8CF;      /* page ground */
  --paper: #EEEAE4;      /* lighter panels */
  --mud: #8A7560;        /* brand Mud flat: large headings */
  --taupe: #6F5B49;      /* buttons, bands, small labels (4.5:1 on stone) */
  --ink: #1E2A29;        /* brand Deep water */
  --body: #5E5650;       /* body text (5:1 on stone) */
  --beige: #E2D7C6;      /* text over photos */

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 72px);
  --ease: cubic-bezier(.23, 1, .32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--body); font: 400 1rem/1.85 var(--sans); letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 72; text-transform: uppercase; color: var(--mud); line-height: 1.35; text-wrap: balance; }
h1, h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: .18em; }
h3 { font-size: 1.15rem; letter-spacing: .16em; color: var(--taupe); }
.label { font: 500 .75rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 46ch; }
.stack { display: grid; gap: 1.3rem; align-content: start; }
.center { text-align: center; justify-items: center; margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 140px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 20; }
/* Instagram grid on the About page: six square tiles, filled by /api/instagram */
.insta h2 a { color: inherit; text-decoration: none; }
.insta h2 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.insta .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 860px; }
.insta .grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper); }
.insta .grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.insta .grid a:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .insta .grid { gap: 6px; } }
/* Sharlein's own handwriting, traced to SVG and tinted with the text colour through a mask */
.hand { display: inline-block; vertical-align: middle; background: currentColor; color: var(--mud); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.hand.welcome { --m: url("/assets/hand-welcome.svg"); aspect-ratio: 1384 / 264; height: clamp(48px, 6vw, 80px); }
.hand.hello { --m: url("/assets/hand-hello.svg"); aspect-ratio: 1097 / 505; height: clamp(64px, 7vw, 96px); margin-bottom: -.4rem; }
.hand.sharlein { --m: url("/assets/hand-sharlein.svg"); aspect-ratio: 1173 / 499; height: clamp(56px, 6vw, 76px); }

/* Header */
.site-head { position: relative; z-index: 10; }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px var(--gutter); }
.logo img { width: 150px; }
.logo .light { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a { text-decoration: none; font: 500 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); padding-block: 6px; }
.nav a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.nav .btn { padding: 12px 20px; color: var(--paper); }
.nav details summary { display: none; }
.over .site-head { position: absolute; inset: 0 0 auto 0; }
.over .site-head .bar { background: linear-gradient(rgb(30 42 41 / .55), rgb(30 42 41 / .2) 70%, rgb(30 42 41 / 0)); }
.over .site-head .nav a { text-shadow: 0 1px 8px rgb(30 42 41 / .5); }
.over .logo .dark { display: none; }
.over .logo .light { display: block; }
.over .nav a { color: var(--beige); }
.over .nav .btn { background: transparent; box-shadow: inset 0 0 0 1px var(--beige); color: var(--beige); }
@media (max-width: 860px) {
  .logo img { width: 120px; }
  .nav details summary { display: block; list-style: none; cursor: pointer; font: 500 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; padding: 12px 16px; box-shadow: inset 0 0 0 1px currentColor; color: var(--taupe); }
  .over .nav details summary { color: var(--beige); }
  .nav details summary::-webkit-details-marker { display: none; }
  .nav details:not([open]) ul { display: none; }
  .nav details[open] ul { position: absolute; left: 12px; right: 12px; top: 72px; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px 22px; box-shadow: 0 18px 40px -18px rgb(30 42 41 / .4); }
  .nav details[open] li a, .over .nav details[open] li a { display: block; padding: 14px 0; color: var(--taupe); }
  .nav details[open] .btn, .over .nav details[open] .btn { margin-top: 10px; text-align: center; background: var(--taupe); color: var(--paper); box-shadow: none; }
}

/* Buttons: square, small spaced capitals */
.btn { display: inline-block; background: var(--taupe); color: var(--paper); font: 500 .72rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; padding: 18px 34px; text-decoration: none !important; border: 0; cursor: pointer; transition: background-color 220ms ease, color 220ms ease; }
.btn:hover { background: var(--ink); }
.btn.line { background: transparent; color: var(--taupe); box-shadow: inset 0 0 0 1px var(--taupe); }
.btn.line:hover { background: var(--taupe); color: var(--paper); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.center .actions { justify-content: center; }

/* Photos */
figure { margin: 0; }
.photo { position: relative; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ph { margin: 0; position: relative; background: linear-gradient(160deg, #CFC6BA, #A89A8B); display: flex; align-items: flex-end; overflow: hidden; }
.ph span { font: 500 11px/1.45 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--paper); background: rgb(30 42 41 / .6); padding: 7px 9px; margin: 12px; }

/* Hero: full-bleed photo, a huge line of light spaced capitals near the bottom */
.hero { position: relative; color: var(--beige); }
.hero .photo { height: 100svh; min-height: 560px; }
.hero.short .photo { height: 72svh; min-height: 440px; }
.hero .photo img { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { scale: 1.06; } to { scale: 1; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(30 42 41 / 0) 45%, rgb(30 42 41 / .45)); pointer-events: none; }
.hero .line { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 7vh, 80px); z-index: 1; text-align: center; font: 300 clamp(1.6rem, 4.4vw, 4rem)/1.12 var(--serif); font-variation-settings: "SOFT" 0, "opsz" 144; letter-spacing: .08em; text-transform: uppercase; color: var(--beige); margin: 0; }
.hero .sub { display: block; margin-top: .9rem; font: 500 .75rem/1.4 var(--sans); letter-spacing: .32em; }

/* Text next to an overlapping pair of photos */
.duo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.duo.flip > .pair { order: -1; }
.duo .text { display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
.duo .text p { max-width: 44ch; }
.pair { position: relative; padding-bottom: 18%; }
.pair .a img { aspect-ratio: 4 / 5; }
.pair .a { width: 78%; }
.pair .b { position: absolute; right: 0; bottom: 0; width: 46%; box-shadow: 0 0 0 10px var(--stone); }
.pair .b img { aspect-ratio: 4 / 5; }
.duo.flip .pair .a { margin-left: auto; }
.duo.flip .pair .b { right: auto; left: 0; }
.on-taupe .pair .b { box-shadow: 0 0 0 10px var(--taupe); }
@media (max-width: 860px) {
  .duo, .duo.flip { grid-template-columns: 1fr; }
  .duo.flip > .pair { order: 0; }
  .pair { padding-bottom: 22%; }
}

/* Full-bleed band with centred words over the photo */
.band { position: relative; display: grid; }
.band > * { grid-area: 1 / 1; }
.band .photo { height: clamp(420px, 62vw, 760px); }
.band::after { content: ""; grid-area: 1 / 1; z-index: 1; background: rgb(30 42 41 / .48); pointer-events: none; }
.band .words { z-index: 2; align-self: start; margin-top: clamp(56px, 9vw, 130px); justify-self: center; text-align: center; max-width: 42ch; padding: 0 var(--gutter); text-shadow: 0 1px 14px rgb(30 42 41 / .6); font: 300 clamp(1.35rem, 2.6vw, 2rem)/1.5 var(--serif); font-variation-settings: "SOFT" 0, "opsz" 72; letter-spacing: .06em; color: var(--beige); }

/* Taupe band */
.on-taupe { background: var(--taupe); color: var(--paper); }
.on-taupe h2, .on-taupe h3, .on-taupe .label { color: var(--paper); }
.on-taupe p { color: #E7E0D6; }
.on-taupe .btn { background: var(--paper); color: var(--taupe); }
.on-taupe .btn:hover { background: #fff; }
.on-paper { background: var(--paper); }

/* Three photos in a staggered row */
.trio { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(12px, 2vw, 28px); align-items: start; margin-top: clamp(36px, 5vw, 64px); }
.trio .photo:nth-child(1) { margin-top: 18%; }
.trio .photo:nth-child(3) { margin-top: 34%; }
.trio .photo img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr 1fr; } .trio .photo:nth-child(2) { grid-column: 1 / -1; order: -1; } .trio .photo { margin-top: 0 !important; } }

/* Kind words slider */
.quotes { position: relative; width: 100%; min-width: 0; max-width: 860px; margin-inline: auto; text-align: center; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; gap: 1.4rem; justify-items: center; padding: 0 clamp(36px, 6vw, 70px); }
.slide p { font: 300 clamp(1.05rem, 1.8vw, 1.3rem)/1.75 var(--serif); font-variation-settings: "SOFT" 0, "opsz" 36; font-style: italic; }
.slide cite { font: 500 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; font-style: normal; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; font: 300 1.8rem/1 var(--serif); cursor: pointer; padding: 10px; opacity: .8; }
.arrow:hover { opacity: 1; }
.arrow.prev { left: -6px; } .arrow.next { right: -6px; }

/* Packages */
.pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.pkg { display: grid; gap: 1.2rem; justify-items: center; text-align: center; align-content: start; }
.pkg .photo img { aspect-ratio: 4 / 5; }
.pkg .photo { width: 100%; }
.pkg .price { font: 300 1.9rem/1 var(--serif); letter-spacing: .08em; color: var(--mud); font-variant-numeric: tabular-nums; }
.pkg .price small { display: block; margin-top: .6rem; font: 500 .72rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--taupe); }
.pkg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; max-width: 40ch; }
.pkg li { position: relative; }
@media (max-width: 860px) { .pkgs { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; grid-auto-flow: dense; margin-top: clamp(36px, 5vw, 64px); }
.gallery > * { aspect-ratio: 4 / 5; }
.gallery > :nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery > :last-child { grid-column: span 2; aspect-ratio: auto; }   /* closes the last row (68 photos); takes the row height from its neighbour. Recheck if the count changes */
.gallery > :last-child img { position: absolute; inset: 0; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .gallery > :nth-child(7n + 1) { grid-column: auto; grid-row: auto; }
  .gallery > :nth-child(5n) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .gallery > :last-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .gallery > :last-child img { position: static; }
}

/* FAQ: thin lines, spaced capitals */
.faq { max-width: 820px; margin: clamp(36px, 5vw, 60px) auto 0; border-top: 1px solid rgb(111 91 73 / .35); }
.faq details { border-bottom: 1px solid rgb(111 91 73 / .35); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font: 300 1.05rem/1.5 var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 300 1.5rem/1 var(--serif); color: var(--mud); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 24px; max-width: 62ch; }
.faq .a a { color: var(--taupe); }

/* Swatches for what to wear */

/* Footer */
.site-foot { background: var(--taupe); color: #E7E0D6; padding-block: 60px 36px; text-align: center; }
.site-foot .logo-foot { width: 150px; margin: 0 auto 36px; }
.site-foot .foot-nav ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.site-foot .foot-nav a { font: 500 .7rem/1.9 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.site-foot .foot-nav a[aria-current] { text-decoration: underline; text-underline-offset: .35em; }
.site-foot .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid rgb(238 234 228 / .25); padding-top: 28px; }
.site-foot .cols > * { font: 500 .7rem/1.9 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.site-foot a { color: var(--paper); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .fine { margin-top: 32px; font-size: .75rem; color: #D8CFC3; letter-spacing: .06em; }
@media (max-width: 860px) { .site-foot .cols { grid-template-columns: 1fr; } .site-foot .cols > * { letter-spacing: .14em; } }

/* Quiet motion: photos fade up once as they come into view */
.js .reveal { opacity: 0; transform: translateY(56px); transition: opacity 1400ms var(--ease), transform 1800ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .gallery .photo img { transition: transform 600ms var(--ease); } .gallery .photo:hover img { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js .reveal { opacity: 1; transform: none; } .slides { scroll-behavior: auto; } }
