/* Colours are taken from the logo and business cards */
:root {
  --cream: #FBEFC7;       /* logo background */
  --paper: #FDFDF2;       /* lens highlight; print paper */
  --brown: #7C421A;       /* logo */
  --brown-deep: #59371F;  /* business card back */
  --rust: #955A27;        /* lens ring */
  --orange: #FF914D;      /* business card bullets */
  --peach: #FFE3CF;       /* from the print frames */
  --butter: #FCE09F;
  --blush: #F3DCD3;

  --body: "Poppins", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.5em;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--brown);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

.btn-primary { background: var(--orange); border-color: var(--brown-deep); color: var(--brown-deep); }
.btn-primary:hover { background: color-mix(in srgb, var(--orange), var(--brown) 8%); }

.btn-secondary { background: transparent; color: var(--brown); }
.btn-secondary:hover { background: var(--butter); }

/* ---------- Hero ---------- */
.hero { padding: 0; overflow-x: clip; }

.hero .wrap {
  display: grid;
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero h1 img {
  width: min(100%, 560px);
  height: auto;
  margin-left: -1.5%;
}

.hero-copy p {
  font-size: clamp(1.125rem, 2.2vw, 1.3rem);
  max-width: 32ch;
  margin-top: 28px;
}

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

/* The photo strip: the one memorable thing on the page.
   Hover fans the two strips apart so both designs show; on touch screens
   (no hover) they rest fanned out. */
.strip-stage {
  --strip-w: min(46vw, 180px);
  --fan: 28px;
  --open: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}
@media (hover: hover) { .strip-stage:hover { --open: 1; } }
@media (hover: none) { .strip-stage { --open: 1; } }

.strip {
  position: relative;
  width: var(--strip-w);
  aspect-ratio: 1 / 3;              /* frames are 600x1800 (a 2x6" print) */
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--brown-deep) 8%, transparent),
    0 18px 40px -12px color-mix(in srgb, var(--brown-deep) 40%, transparent);
  transform: rotate(3deg);
  transform-origin: top center;
  /* translate/rotate are separate from `transform`, which the print animation owns */
  transition: translate 0.45s var(--ease-out), rotate 0.45s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) { .strip { transition: none; } }

.strip-photo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  object-fit: cover;
  object-position: 50% 65%;
}
.strip-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Photo windows, measured from each frame's transparent areas (% of 600x1800) */
.frame11 { --x: 9%; --w: 82%; --h: 22.6%; }
.frame11 .strip-photo:nth-child(1) { --y: 23.56%; }
.frame11 .strip-photo:nth-child(2) { --y: 46.44%; }
.frame11 .strip-photo:nth-child(3) { --y: 69.28%; }

.frame3 { --x: 7.5%; --w: 85.83%; --h: 17.22%; }
.frame3 .strip-photo:nth-child(1) { --y: 14.17%; }
.frame3 .strip-photo:nth-child(2) { --y: 32.44%; }
.frame3 .strip-photo:nth-child(3) { --y: 50.5%; }
.frame3 .strip-photo:nth-child(4) { --y: 68.61%; }

/* A second strip peeking from behind */
.strip-back {
  position: absolute;
  top: 36px;
  left: calc(50% - var(--strip-w) + 4px);
  transform: rotate(-7deg);
  z-index: -1;
  translate: calc(var(--fan) * -1 * var(--open)) calc(6px * var(--open));
  rotate: calc(-4deg * var(--open));
}
.strip-front {
  margin-left: min(30vw, 120px);
  translate: calc(var(--fan) * var(--open)) calc(-4px * var(--open));
  rotate: calc(3deg * var(--open));
}

/* Page-load moment: a camera flash, then the strip drops out of the printer */
.flash {
  position: fixed;
  inset: 0;
  background: #fff;
  pointer-events: none;
  opacity: 0;
  z-index: 50;
}

@media (prefers-reduced-motion: no-preference) {
  .flash { animation: flash 0.7s ease-out 0.25s both; }
  .strip-front { animation: print 1.1s var(--ease-out) 0.45s both; }

  @keyframes flash {
    0% { opacity: 0; }
    12% { opacity: 0.9; }
    100% { opacity: 0; }
  }
  @keyframes print {
    from { clip-path: inset(0 0 100% 0); transform: translateY(-24px) rotate(0deg); }
    70% { clip-path: inset(0 0 0 0); transform: translateY(0) rotate(0deg); }
    to { clip-path: inset(0 0 0 0); transform: translateY(0) rotate(3deg); }
  }
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 120px;
  }
  .strip-stage { --strip-w: 250px; --fan: 64px; }
  .strip-back { top: 48px; }
  .strip-front { margin-left: 90px; }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
@media (min-width: 860px) { section { padding: 112px 0; } }

.section-intro {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--rust);
  font-size: 1.125rem;
}

/* What's included: brown like the wooden booth */
.included {
  background: var(--brown);
  color: var(--cream);
}
.included .section-intro { color: var(--butter); }
.included :focus-visible { outline-color: var(--cream); }

.included .wrap {
  display: grid;
  gap: 40px;
}
@media (min-width: 860px) {
  .included .wrap { grid-template-columns: 1fr 1.3fr; gap: 64px; }
  .included-head { position: sticky; top: 40px; align-self: start; }
}

.booth-art {
  width: 220px;
  margin-top: 32px;
  border-radius: 24px;
}
@media (min-width: 860px) { .booth-art { width: 260px; margin-top: 40px; } }

.included-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.included-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 18px;
}
.included-list .icon {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--brown);
  display: grid;
  place-items: center;
}
.included-list .icon svg { width: 26px; height: 26px; }
.included-list h3 {
  font-size: 1.2rem;
  font-weight: 700;
  align-self: end;
}
.included-list p { max-width: 46ch; }

/* Gallery */
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-grid figure {
  margin: 0;
  background: var(--paper);
  padding: 8px;
  border-radius: 3px;
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--brown-deep) 50%, transparent);
}
.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.gallery-grid figure:first-child { grid-column: span 2; }

@media (min-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .gallery-grid figure { padding: 10px; }
  .gallery-grid figure:first-child { grid-column: auto; }
  .gallery-grid figure:nth-child(2) { transform: translateY(32px); }
}

/* Event types */
.events { padding-top: 40px; }

.events-list {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.event {
  padding: 32px 28px 36px;
  border-radius: 28px;
}
.event:nth-child(1) { background: var(--peach); }
.event:nth-child(2) { background: var(--butter); }
.event:nth-child(3) { background: var(--blush); }
.event h3 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.event p { max-width: 36ch; }

@media (min-width: 860px) {
  .events-list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .event { padding: 40px 32px 48px; }
}

/* Contact: deep brown like the back of the business card */
.contact {
  background: var(--brown-deep);
  color: var(--cream);
}
.contact h2 {
  font-size: clamp(2.75rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.contact .section-intro {
  color: var(--butter);
  max-width: 40ch;
  margin-top: 20px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.contact .btn-secondary { color: var(--cream); border-color: var(--cream); }
.contact .btn-secondary:hover { background: color-mix(in srgb, var(--cream) 12%, transparent); }
.contact :focus-visible { outline-color: var(--orange); }

.contact-details {
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 20px;
  color: var(--butter);
}
.contact-details dd { margin: 0; overflow-wrap: anywhere; }
.contact-details a {
  color: var(--cream);
  text-underline-offset: 4px;
}

footer {
  background: var(--brown-deep);
  color: var(--butter);
  font-size: 0.875rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 40px;
  border-top: 1px solid color-mix(in srgb, var(--cream) 20%, transparent);
}
footer img { width: 140px; height: auto; }
