/* ==========================================================================
   Ila's Flowers — styles
   Change the look of the whole site from the tokens below.
   Cream and white bands, sage-green serif titles (often italic), thin
   outlined buttons, square photos, a pale sage footer.
   ========================================================================== */

:root {
  /* Palette: cream and green, like leaves and eucalyptus in her work */
  --paper: #fcfaf4;       /* page background (warm off-white) */
  --cream: #f2ecdf;       /* header, tinted bands, cards */
  --cream-deep: #e2d9c5;  /* lines on cream */
  --accent: #4f6247;      /* sage green: titles, buttons */
  --accent-deep: #3b4a35; /* hover */
  --accent-soft: #a3b096; /* decorative lines */
  --tan: #6e5e43;         /* small caps text, menu (warm gold-brown) */
  --sage-light: #e0e5d8;  /* footer, photo captions */
  --ink: #2f332d;
  --muted: #62685e;
  --line: rgba(47, 51, 45, 0.12);

  /* Typography */
  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 0px;
  --section: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Menu bar height; site.js sets the exact value. */
  --header-h: 128px;
  /* Slow start and finish, so the opening is visible. */
  --bloom-ease: cubic-bezier(0.6, 0.05, 0.25, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--accent);
}

h1 {
  font-size: clamp(42px, 7vw, 88px);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-style: italic;
}

h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-style: italic;
}

p {
  margin: 0 0 1.2em;
}

/* Helpers */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 820px;
  margin-inline: auto;
}

.center {
  text-align: center;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic;
  line-height: 1.5;
  color: var(--accent);
}

.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tan);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 8px;
}

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

/* Header */

/* Stays at the top; site.js adds `is-scrolled` for the shadow. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(47, 51, 45, 0.08);
}

/* Home: the menu floats over the opening photo, in white over a soft dark
   shade, until the page moves; then it turns cream again. */
.site-header--over {
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.site-header--over:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header--over:not(.is-scrolled)::before {
  content: "";
  position: absolute;
  inset: 0 0 -72px;
  z-index: -1;
  background: linear-gradient(rgba(24, 29, 21, 0.72), rgba(24, 29, 21, 0.35) 60%, rgba(24, 29, 21, 0));
  pointer-events: none;
}

.site-header--over:not(.is-scrolled) .brand__name,
.site-header--over:not(.is-scrolled) .nav a {
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.site-header--over:not(.is-scrolled) .nav__icon svg {
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

.site-header--over:not(.is-scrolled) .brand__sub {
  color: rgba(255, 255, 255, 0.85);
}

.site-header--over ~ main .hero-home {
  margin-top: calc(-1 * var(--header-h));
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 18px;
}

/* Name in the serif, with a small spaced line under it, like a logo. */
.brand {
  display: inline-grid;
  justify-items: start;
  gap: 2px;
  text-decoration: none;
  margin: 0;
}

.brand__name {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.brand__sub {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--tan);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.nav a {
  position: relative;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tan);
  padding-block: 6px;
  transition: color 0.3s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

/* Instagram icon at the end of the menu. */
.nav__icon {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
}

.nav__icon::after {
  display: none;
}

/* Underline that grows from the centre. */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent-soft);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.section {
  padding-block: var(--section);
}

.section--tint {
  background: var(--cream);
}

figure {
  margin: 0;
}

/* Buttons and links */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Thin outlined buttons; they fill in on hover. */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn--ghost {
  border-color: var(--accent-soft);
  color: var(--tan);
}

.btn--ghost:hover {
  border-color: var(--tan);
  background: var(--tan);
}

.link-arrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
}

.link-arrow::after {
  content: " →";
}

/* "Sboccia": `.bloom--scroll` photos open like a flower when they scroll
   into view (site.js), a circle growing from the centre, from soft focus
   to sharp. Without JS, or with reduced motion, they are simply there. */

.bloom {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
}

.bloom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

@media (hover: hover) {
  a.bloom:hover img {
    transform: scale(1.05);
  }
}

/* The opening is on the photo inside, not on the frame site.js watches:
   browsers treat a fully clipped element as off screen and would never
   report it coming into view. */
.bloom--scroll img {
  transition:
    clip-path 1.6s var(--bloom-ease) var(--delay, 0s),
    filter 1.6s var(--bloom-ease) var(--delay, 0s),
    transform 0.9s var(--ease);
}

/* `[data-reveal]`: texts and cards rise gently into place (site.js). */
[data-reveal] {
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal--pending {
  opacity: 0;
  transform: translateY(28px);
  transition: none;
}

/* The occasion labels pop in one after the other. */
.occasions__list .reveal--pending {
  transform: translateY(12px) scale(0.9);
}

/* Set by site.js until the photo comes into view; no transition, so it
   hides instantly and only the opening is animated. */
.bloom--pending img {
  clip-path: circle(0% at 50% 50%);
  filter: blur(12px);
  transition: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* A very slow zoom towards the garland and back, like breathing. */
@keyframes breathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Home: opening photo, edge to edge (no margins, no rounded corners),
   almost as tall as the screen, with the text right below it. */

.hero-home {
  padding-bottom: clamp(48px, 7vw, 96px);
  background: radial-gradient(circle at 50% 100%, var(--cream) 0, transparent 45%);
}

/* Fades in, then "breathes" (see `breathe`). The whole photo on phones,
   a wide band around the garland on larger screens. */
.hero-home__photo {
  position: relative;
  overflow: hidden;
  /* The whole photo, plus the strip that runs under the menu. */
  height: calc(var(--header-h) + 100vw * 1325 / 1520);
  background: var(--cream);
  animation: fade-in 1.8s ease 0.1s both;
}

.hero-home__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keeps the garland in view whatever the crop. */
  object-position: 50% 62%;
  transform-origin: 50% 62%;
  animation: breathe 14s ease-in-out infinite alternate;
}

@media (min-width: 900px) {
  .hero-home__photo {
    /* Leaves the name in view below it. */
    height: max(420px, calc(100svh - 290px + var(--header-h)));
  }
}

.hero-home__text {
  padding-top: clamp(32px, 5vw, 56px);
}

.hero-home__text h1 {
  margin-bottom: 0.25em;
}

.hero-home__text .actions {
  justify-content: center;
}

.reveal {
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(0.6s + var(--i, 0) * 0.14s);
}

/* Inner pages have no photo to wait for: the title starts right away. */
.page-intro .reveal,
.about .reveal,
.contact-page .reveal {
  animation-delay: calc(0.05s + var(--i, 0) * 0.12s);
}

@media (prefers-reduced-motion: reduce) {
  .hero-home__photo,
  .hero-home__photo img,
  .reveal {
    animation: none;
  }

  .bloom--scroll img,
  .bloom--pending img {
    clip-path: none;
    filter: none;
    transition: none;
  }

  [data-reveal],
  .reveal--pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Contacts: a cream card over a photo that drifts while scrolling. */

.contacts {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 12vw, 160px);
  background: var(--sage-light);
}

.contacts__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}

.contacts__card {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 64px);
  background: var(--cream);
}

.contacts__card h2 {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(26px, 3.4vw, 40px);
}

.contacts__grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  text-align: left;
}

@media (min-width: 640px) {
  .contacts__grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.contact-card {
  display: grid;
  gap: 6px;
  padding: 24px 26px;
  border: 1px solid var(--cream-deep);
  background: var(--paper);
  text-decoration: none;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.contact-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

.contact-card__label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tan);
}

.contact-card__value {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  color: var(--accent);
}

.contact-card .link-arrow {
  justify-self: start;
  margin-top: 8px;
}

.contacts__grid--stack {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

/* Home: "Per ogni occasione" */

.occasions__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.occasions__list li {
  padding: 8px 18px;
  border: 1px solid var(--accent-soft);
  background: var(--paper);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
}

.occasions__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.occasions__text {
  text-align: center;
}

@media (min-width: 900px) {
  .occasions__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
  }

  .occasions__text {
    text-align: left;
  }

  .occasions__text .occasions__list {
    justify-content: flex-start;
  }
}

/* Two photos laid one over the other, the small one with a paper border. */
.collage {
  position: relative;
  width: min(100%, 480px);
  justify-self: center;
  padding-bottom: 18%;
}

.collage__main {
  width: 78%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
}

.collage__small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56%;
  aspect-ratio: 820 / 688;
  border: 8px solid var(--paper);
  box-shadow: 0 18px 40px rgba(46, 51, 46, 0.18);
}

/* Home: "Cosa creo per te" */

.services__head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* Cards: photo with a grey-blue caption box laid over its bottom. Phones:
   a row swiped sideways, one card at a time with the next peeking in.
   Larger screens: three in a row; on hover the photo zooms a little and
   the caption box lifts. */

.cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 8px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.cards::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 min(82%, 420px);
  scroll-snap-align: start;
}

.card__photo {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--cream);
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.card__body {
  position: relative;
  width: calc(100% - 32px);
  margin: -72px auto 0;
  padding: 26px 22px 30px;
  background: var(--sage-light);
  text-align: center;
  transition: transform 0.6s var(--ease);
}

.card__body h3 {
  margin-bottom: 12px;
}

.card__body p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.cards__hint {
  margin: -8px 0 0;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-align: center;
  color: var(--tan);
}

@media (min-width: 900px) {
  .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }

  .cards__hint {
    display: none;
  }
}

@media (hover: hover) {
  .card:hover .card__photo img {
    transform: scale(1.06);
  }

  .card:hover .card__body {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card__photo img,
  .card__body {
    transition: none;
  }
}

.services__actions {
  justify-content: center;
  margin-top: clamp(40px, 6vw, 64px);
}

/* Home: her words, large and italic on a cream band. */

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 42px);
  font-style: italic;
  line-height: 1.35;
  color: var(--accent);
}

.quote figcaption {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tan);
}

.quote figcaption::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 22px auto 0;
  background: var(--accent-soft);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .contacts__bg {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}

@keyframes drift {
  from {
    transform: translateY(-9%) scale(1.18);
  }
  to {
    transform: translateY(9%) scale(1.18);
  }
}

/* Home: "Come lavoro" */

.steps__list {
  list-style: none;
  counter-reset: step;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .steps__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

.step {
  counter-increment: step;
  text-align: center;
}

/* Number in a petal-coloured circle. */
/* Big italic serif number over a short line. */
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 4px;
  color: var(--accent-soft);
  font-family: var(--serif);
  font-size: 56px;
  font-style: italic;
  line-height: 1;
}

.step h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 14px auto 0;
  background: var(--accent-soft);
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Home: "Ciao, sono Ilaria" — photo on one half, text on the other. */

.intro {
  display: grid;
  background: var(--paper);
}

.intro__photo {
  aspect-ratio: 4 / 5;
  max-height: 88svh;
  width: 100%;
}

.intro__text {
  padding: clamp(40px, 7vw, 96px) var(--gutter);
  align-self: center;
  max-width: 620px;
}

.intro__text .btn {
  margin-top: 8px;
}

@media (min-width: 900px) {
  .intro {
    grid-template-columns: 1fr 1fr;
    min-height: 80svh;
  }

  .intro__photo {
    aspect-ratio: auto;
    max-height: none;
    height: 100%;
  }

  .intro__text {
    padding-inline: clamp(48px, 7vw, 112px);
  }
}

/* Home: "Seguimi su Instagram" — a feed-like grid linking to her profile. */

.insta__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: clamp(28px, 4vw, 44px);
}

@media (min-width: 760px) {
  .insta__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
}

.insta__item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-deep);
}

.insta__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

/* Icon over each photo, shown on hover. */
.insta__item svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s;
}

.insta__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(79, 98, 71, 0.4);
  opacity: 0;
  transition: opacity 0.4s;
}

.insta__item svg {
  z-index: 1;
}

@media (hover: hover) {
  .insta__grid:hover .insta__item img {
    transform: scale(1.06);
  }

  .insta__item:hover::after,
  .insta__item:hover svg {
    opacity: 1;
  }
}

.insta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 40px);
}

.insta__btn svg {
  font-size: 18px;
}

/* Row of gallery photos before the footer. */

.strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--sage-light);
  text-decoration: none;
}

.strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.4s;
}

.strip img:nth-child(n + 5) {
  display: none;
}

@media (min-width: 760px) {
  .strip {
    grid-template-columns: repeat(8, 1fr);
  }

  .strip img:nth-child(n + 5) {
    display: block;
  }
}

.strip__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 22px;
  background: var(--paper);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}

.strip:hover img {
  opacity: 0.8;
}

.strip:hover .strip__label {
  background: var(--accent);
  color: #fff;
}

/* Contatti page */

.contact-page {
  padding-top: clamp(32px, 5vw, 64px);
}

.contact-page__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.contact-page__photo {
  aspect-ratio: 4 / 5;
  width: min(100%, 480px);
  justify-self: center;
}

@media (min-width: 900px) {
  .contact-page__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* Inner pages (Chi sono, Galleria, Contatti) */

.page-intro {
  padding-block: clamp(48px, 8vw, 104px) clamp(36px, 5vw, 64px);
  background: var(--cream);
}

.page-intro h1 {
  margin-bottom: 0;
}

/* Main photo of an inner page (Chi sono, Contatti): same slow "breathing"
   zoom as the home photo. */

.feature-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
}

.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: breathe 16s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .feature-photo img {
    animation: none;
  }
}

/* Chi sono: title and photo side by side on larger screens; on phones the
   photo comes right after the title, then the text. */

.about {
  padding-block: clamp(48px, 8vw, 112px) var(--section);
  background: linear-gradient(var(--cream) 0, var(--cream) 260px, var(--paper) 260px);
}

.about__grid {
  display: grid;
  grid-template-areas:
    "head"
    "photo"
    "text";
  gap: 32px;
}

.about__head {
  grid-area: head;
}

.about__head h1 {
  margin-bottom: 0;
}

.about__photo {
  grid-area: photo;
  aspect-ratio: 4 / 5;
  width: min(100%, 460px);
  justify-self: center;
}

.about__text {
  grid-area: text;
}

.about__text .link-arrow {
  margin-top: 8px;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas:
      "head photo"
      "text photo";
    grid-template-rows: auto 1fr;
    column-gap: 80px;
    row-gap: 32px;
  }

  .about__photo {
    justify-self: end;
  }
}

/* Galleria: photos at their own shape, in columns. Each links to the full
   photo; site.js opens it in the viewer instead. */

.gallery {
  columns: 1;
  column-gap: 24px;
  padding-top: clamp(32px, 5vw, 64px);
}

@media (min-width: 640px) {
  .gallery {
    columns: 2;
  }
}

@media (min-width: 1000px) {
  .gallery {
    columns: 3;
  }
}

.gallery .bloom {
  break-inside: avoid;
  margin-bottom: 24px;
}

.gallery .bloom img {
  height: auto;
}

.gallery .bloom:focus-visible {
  outline-offset: 4px;
}

/* Photo viewer (site.js) */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(30, 36, 28, 0.94);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  border-radius: 8px;
  pointer-events: none;
}

.lightbox__count {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  margin: 0;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox__close {
  top: 16px;
  right: 16px;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 16px;
}

.lightbox__next {
  right: 16px;
}

/* Footer: grey-blue, everything centred. */

.site-footer {
  background: var(--sage-light);
  color: var(--ink);
  padding-block: 56px 36px;
  text-align: center;
}

.site-footer .brand {
  justify-items: center;
}

.site-footer__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 14px;
}

.contact-links:empty {
  display: none;
}

.site-footer__legal {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
