/* Pink Rodeo Tattoo Club. Mobile first, designed at 375px wide.
   Colours follow Federica's Instagram: pearl grey, white, one pink, silver details. */

:root {
  --grey: #EDEDEF;          /* page background */
  --white: #FFFFFF;         /* panels, photo mats, footer */
  --blush: #FBEAF2;         /* "About me" band, once her words and photo arrive */
  --pink: #EE6FA6;          /* her logo pink: buttons, glow, stars (never for text) */
  --rose: #C42E73;          /* deeper pink for every pink text */
  --ink: #222226;           /* body text */
  --ink-soft: #4A4A52;      /* small print */
  --silver: #7A7F8A;        /* frame outer line, secondary button outline */
  --silver-light: #A9ADB6;  /* hairlines */
  --pink-soft: #F3B8D2;     /* light pink lines and borders */

  --font-heading: "Didot", "Bodoni Moda", "Bodoni 72", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 38rem;
  --gutter: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--grey);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1, h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rose);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

/* Focus: always visible */
:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(0.5rem); }

/* Hero */
.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem var(--gutter) 3.25rem;
  text-align: center;
}

/* Logo: Federica's logo file in a round crop with a soft, static pink halo.
   The image is scaled slightly inside the circle so the pale edge of the file is hidden. */
.logo {
  width: 12rem;
  height: 12rem;
  margin: 0 auto 2.75rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 6px rgba(238, 111, 166, 0.18),
    0 10px 36px rgba(238, 111, 166, 0.4);
}
.logo img {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateX(1%) scale(1.06);
}

.hero h1 {
  font-size: clamp(1.875rem, 7.5vw, 2.75rem);
}

/* Buttons */
.actions {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  margin: 2.5rem 0 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}

/* 3D buttons: a lit top edge, a solid lip underneath and a soft shadow, so they look pressable.
   On press the button sinks onto its lip. */
.btn--primary {
  background: linear-gradient(180deg, #F47FB2 0%, #E8639C 100%);
  border-color: #E25C98;
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 5px 0 #B8336F,
    0 12px 22px rgba(238, 111, 166, 0.45);
}

.btn--secondary {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F0F2 100%);
  border-color: var(--silver);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 var(--white),
    0 4px 0 var(--silver),
    0 10px 18px rgba(34, 34, 38, 0.14);
}

.btn:hover { transform: translateY(-1px); }
.btn--primary:hover {
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 6px 0 #B8336F,
    0 14px 24px rgba(238, 111, 166, 0.5);
}
.btn--secondary:hover {
  box-shadow:
    inset 0 1px 0 var(--white),
    0 5px 0 var(--silver),
    0 12px 20px rgba(34, 34, 38, 0.16);
}

.btn:active { transform: translateY(4px); }
.btn--primary:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 0 #B8336F,
    0 3px 8px rgba(238, 111, 166, 0.4);
}
.btn--secondary:active {
  box-shadow:
    inset 0 1px 0 var(--white),
    0 0 0 var(--silver),
    0 3px 8px rgba(34, 34, 38, 0.12);
}

.btn:focus-visible { outline-offset: 6px; }

/* Sections */
.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) 5.5rem;
  text-align: center;
}

.section h2 {
  font-size: clamp(1.75rem, 6vw, 2.125rem);
}

/* Small silver rule with a pink sparkle under each section title */
.section h2::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 0.875rem;
  margin: 1rem auto 1.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='14' viewBox='0 0 88 14'%3E%3Cpath d='M0 7H34M54 7H88' stroke='%23A9ADB6' stroke-width='1.5'/%3E%3Cpath d='M44 0L46.2 4.8 51 7 46.2 9.2 44 14 41.8 9.2 37 7 41.8 4.8Z' fill='%23EE6FA6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section p { font-size: 1.125rem; }
.section p + p { margin-top: 1.125rem; }

/* The closing line of the About text, in the heading font */
.section .about__closing {
  margin-top: 1.75rem;
  color: var(--rose);
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 5vw, 1.75rem);
  line-height: 1.3;
  text-wrap: balance;
}

/* Photo frame: a thick outer line, a thin inner line, square corners and a small star in each
   corner. One tiny inline SVG, used as a 9-slice border image.
   Reuse by adding class="frame" to a panel or a photo wrapper. */
.frame {
  position: relative;
  border: 21px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M1 1H39V39H1Z' fill='%23fff' stroke='%23EE6FA6' stroke-width='1.4'/%3E%3Cpath d='M5 5H35V35H5Z' fill='none' stroke='%23F3B8D2' stroke-width='0.7'/%3E%3Cg fill='%23C42E73' stroke='%23fff' stroke-width='0.9' paint-order='stroke'%3E%3Cpath d='M3.60 -0.30 4.75 2.45 7.50 3.60 4.75 4.75 3.60 7.50 2.45 4.75 -0.30 3.60 2.45 2.45Z'/%3E%3Cpath d='M36.40 -0.30 37.55 2.45 40.30 3.60 37.55 4.75 36.40 7.50 35.25 4.75 32.50 3.60 35.25 2.45Z'/%3E%3Cpath d='M3.60 32.50 4.75 35.25 7.50 36.40 4.75 37.55 3.60 40.30 2.45 37.55 -0.30 36.40 2.45 35.25Z'/%3E%3Cpath d='M36.40 32.50 37.55 35.25 40.30 36.40 37.55 37.55 36.40 40.30 35.25 37.55 32.50 36.40 35.25 35.25Z'/%3E%3C/g%3E%3C/svg%3E") 14 / 21px stretch;
  background: var(--white);
  background-clip: padding-box;
}

/* Photo gallery: 2 columns on phones and tablets, 3 on laptops, 4 on very wide screens.
   Flex (not grid) so an unfinished last row is centred instead of left-aligned. */
.section--gallery { max-width: 78rem; }
.gallery {
  --cols: 2;
  --gap: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
}
.frame--photo { margin: 0; }
.frame--photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* "Ready for your tattoo?": what to send, as plain centred lines like the rest of the page */
.booking__list {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.booking__list li {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
  font-size: 1.125rem;
  counter-increment: step;
}
.booking__list li::before {
  content: counter(step);
  color: var(--rose);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.booking__note {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.section .booking__note { font-size: 1rem; }

/* Instagram, TikTok and email icons under the closing buttons */
.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2rem;
}

/* Footer: full-width strip */
.footer {
  background: var(--blush);
  border-top: 1px solid var(--pink-soft);
}
.footer__inner {
  max-width: 82rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.25rem;
}
.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0 2rem;
  text-align: center;
}

/* Round icon buttons (Instagram, TikTok, email) and the viewer's controls */
.icon-link,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1.5px solid var(--silver);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.icon-link { width: 3.25rem; height: 3.25rem; }
.icon-link svg { width: 1.625rem; height: 1.625rem; }
.icon-link--email { color: var(--rose); }
.icon-btn svg { width: 1.5rem; height: 1.5rem; }
.icon-link:hover,
.icon-btn:hover {
  border-color: var(--rose);
  background: var(--blush);
}
.icon-btn:hover { color: var(--rose); }

.footer__row { font-size: 0.875rem; }

.link-button {
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

/* Privacy notice: a run-in label and one paragraph across the full width */
.privacy {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pink-soft);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.privacy h2,
.privacy p {
  display: inline;
  font-family: var(--font-body);
  font-size: inherit;
  line-height: inherit;
}
.privacy h2 {
  font-weight: 500;
  color: var(--ink);
}
.privacy h2::after { content: ". "; }

/* Photos open larger in a viewer (see script.js). Without JavaScript the link opens the big photo. */
.photo-link {
  display: block;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
  overflow: auto;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop { background: rgba(34, 34, 38, 0.9); }
.lightbox__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  max-width: 100%;
}
.lightbox__frame { margin: 0; }
.lightbox__frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(calc(100vw - 4.5rem), 40rem);
  max-height: calc(100vh - 12rem);
  max-height: calc(100dvh - 12rem);
}
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lightbox__count {
  min-width: 5rem;
  color: var(--white);
  font-size: 0.9375rem;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
body:has(.lightbox[open]) { overflow: hidden; }

/* Consent banner */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 1.25rem var(--gutter);
  background: var(--white);
  border-top: 2px solid var(--silver);
  box-shadow: 0 -8px 28px rgba(34, 34, 38, 0.16);
}
.consent[hidden] { display: none; }
.consent p {
  max-width: var(--measure);
  margin: 0 auto;
  font-size: 0.9375rem;
}
.consent__actions {
  display: flex;
  gap: 0.75rem;
  max-width: var(--measure);
  margin: 1rem auto 0;
}
.consent__actions .btn {
  flex: 1;
  min-height: 3rem;
  padding: 0.5rem 1rem;
}

/* Keep the end of the footer readable while the consent banner is open */
body:has(.consent:not([hidden])) .footer__inner { padding-bottom: 11rem; }

/* Phones: slimmer frames and side margins so two photos per row stay big enough */
@media (max-width: 599px) {
  .section--gallery { padding-inline: 0.75rem; }
  .frame--photo {
    border-width: 11px;
    border-image-width: 11px;
  }
}

/* Larger screens */
@media (min-width: 600px) {
  :root { --gutter: 2rem; }

  .hero { padding-top: 5rem; padding-bottom: 4rem; }
  .section { padding-bottom: 6.5rem; }

  .actions {
    flex-direction: row;
    justify-content: center;
  }

  .gallery { --gap: 1.5rem; }

  .footer__row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .consent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  .consent p, .consent__actions { margin: 0; }
  .consent p { max-width: 28rem; }
  .consent__actions { min-width: 16rem; }
}

/* Wider screens: more photos per row, and more room for the one-paragraph privacy notice */
@media (min-width: 900px) {
  .gallery { --cols: 3; }
}
@media (min-width: 1000px) {
  .footer__inner { padding-inline: 1.25rem; }
}
@media (min-width: 1600px) {
  .gallery { --cols: 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
