@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root { --rose: #d09595; --ink: #1b1d21; --charcoal: #353334; }
* { box-sizing: border-box; }
body { margin: auto; padding: 0 15px; max-width: 540px; font: 400 16px/28px Inter, sans-serif; color: var(--ink); background: white; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }
:focus-visible { outline: 3px solid #005a9c; outline-offset: 2px; }
img { display: block; max-width: 100%; }
section, header, footer { padding-bottom: 48px; }
header { text-align: center; }
.cover { width: calc(100% + 30px); max-width: none; margin-left: -15px; height: auto; }
.avatar { position: relative; margin: -50px auto 16px; border-radius: 50%; }
h1 { font-size: 24px; line-height: 32px; letter-spacing: -.6px; }
header p { margin-top: 8px; }
nav { display: flex; gap: 8px; }
header nav { justify-content: center; margin-top: 16px; }
nav a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--rose); }
nav img { filter: brightness(0) invert(1); }
footer nav a { background: var(--ink); }
h2 { font-size: 20px; line-height: 28px; letter-spacing: -.5px; margin-bottom: 24px; }
.about img { width: 100%; height: auto; border-radius: 8px; }
.about h2 { margin-top: 24px; font-size: 30px; line-height: 36px; letter-spacing: -.75px; color: #0f0f0f; }
.about p, .contacts { color: var(--charcoal); }
.contacts a { display: flex; align-items: center; min-height: 62px; padding: 16px 24px; border-radius: 8px; background: var(--rose); color: #efefef; font-size: 15px; font-weight: 600; }
.contacts a + a { margin-top: 12px; }
.courses ul { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; padding: 0; }
.courses ul::-webkit-scrollbar { display: none; }
.courses li { flex: 0 0 100%; padding: 0 4px; scroll-snap-align: start; }
.courses li a { display: block; overflow: hidden; border-radius: 8px; background: var(--charcoal); color: #eaeaea; }
.courses li a:focus-visible { outline-offset: -3px; }
.courses img { width: 100%; height: auto; aspect-ratio: 35/18; object-fit: cover; }
.card-body { display: grid; gap: 16px; padding: 24px; font-size: 15px; }
.card-body h3 { font-size: 16px; font-weight: 600; }
.card-body span { width: fit-content; font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid; }
.controls { margin-top: 16px; }
.controls button { width: 40px; height: 40px; border-radius: 50%; background: var(--charcoal); color: #eaeaea; font-size: 20px; }
.controls button:disabled { opacity: .35; cursor: default; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.photos img { width: 100%; height: auto; border-radius: 8px; }
.location iframe { border: 0; border-radius: 8px; width: 100%; }
/* A thumbnail opens its full-size photograph through the URL fragment. */
.lightbox { display: none; }
.lightbox:target {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: center;
  padding: 52px 12px; color: white; background: rgb(15 14 14 / 94%);
}
body:has(.lightbox:target) { overflow: hidden; }
.lightbox figure { position: relative; max-width: 100%; }
.lightbox figure img {
  max-height: calc(100vh - 108px); max-height: calc(100dvh - 108px);
  width: auto; height: auto; margin: auto; object-fit: contain;
}
.lightbox figcaption { text-align: right; font-size: 13px; }
.lightbox a {
  position: absolute; z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink);
  font: 24px/1 Inter, sans-serif;
}
.lightbox .close { right: max(12px, env(safe-area-inset-right)); top: max(8px, env(safe-area-inset-top)); }
.lightbox .prev, .lightbox .next { bottom: max(8px, env(safe-area-inset-bottom)); }
.lightbox .prev { left: calc(50% - 52px); }
.lightbox .next { right: calc(50% - 52px); }
.courses li a { height: 100%; display: flex; flex-direction: column; }
.card-body { flex: 1; grid-template-rows: auto 1fr auto; }
.controls button { min-width: 44px; min-height: 44px; }
.photos a { display: block; }
@media (min-width: 600px) {
  body { max-width: 1160px; padding: 32px clamp(24px, 4vw, 56px) 0; }
  .cover { margin: auto; width: 100%; max-width: 700px; border-radius: 12px; }
  .avatar { width: 120px; height: 120px; margin-top: -60px; }
  section, header, footer { padding-bottom: clamp(48px, 5vw, 76px); }
  .contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .contacts h2 { grid-column: 1 / -1; margin-bottom: 8px; }
  .contacts a { justify-content: center; padding: 12px; text-align: center; }
  .contacts a + a { margin: 0; }
  .courses li { flex-basis: 50%; }
  .gallery:has(#mini-noivas-01) .photos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 800px) {
  .about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(32px, 5vw, 72px); grid-template-rows: 1fr auto 1fr; }
  .about img { grid-row: 1 / 4; align-self: center; }
  .about h2 { align-self: end; margin-top: 0; }
  .about p { grid-column: 2; }
  .gallery:has(#mini-beyond-makeup-01) .photos { grid-template-columns: repeat(4, 1fr); }
  .lightbox .prev, .lightbox .next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox .prev { left: 20px; }
  .lightbox .next { right: 20px; }
}
@media (min-width: 1024px) {
  .courses li { flex-basis: 33.333333%; }
  h2 { font-size: 24px; line-height: 32px; }
}
