@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #140b0e;
  --wine: #3f1321;
  --paper: #faf0e9;
  --muted: #d6c2be;
  --red: #ff8584;
  --line: #653740;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-block-start: 82px; }
body { margin: 0; background: var(--ground); color: var(--paper); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p { margin: 0; }
::selection { background: #ff8989; color: #241013; }
h1, h2, h3 { font: 400 1em/1 var(--serif); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 2px solid #ffbaac; outline-offset: 5px; }
.wrap { width: min(1280px, 100% - clamp(36px, 11vw, 160px)); margin-inline: auto; }
main :focus-visible { scroll-margin-block: 8px; }

.skip {
  position: fixed;
  z-index: 4;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ground);
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--ground);
  border-bottom: 1px solid #51323a;
}

.header-inner, .main-nav, .footer {
  display: flex;
  align-items: center;
}

.header-inner { min-height: 62px; justify-content: space-between; gap: 12px 22px; }

.wordmark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  color: #ffb3af;
  font: italic 400 1.75rem/1 var(--serif);
  letter-spacing: -.045em;
}

.wordmark span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding-right: 2px;
}

.main-nav { gap: clamp(12px, 3vw, 40px); font-size: .9rem; }
.main-nav a { display: grid; align-items: center; min-height: 44px; }


.hero { padding-top: clamp(18px, 3.8vw, 55px); }

.hero-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: clamp(495px, 43vw, 626px);
  gap: 20px;
  padding: clamp(24px, 4.1vw, 60px);
  overflow: clip;
  border: 1px solid #79474c;
  background: #271218;
}

.hero-art, .hero-inner::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  object-position: center 45%;
}

.hero-inner::after {
  background:
    linear-gradient(90deg, #200b13e8 0%, #2f101bbc 24%, #3c141f30 52%, transparent 78%),
    linear-gradient(0deg, #190910ed 1%, #2d0b159e 19%, transparent 51%);
  content: "";
}

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(4.35rem, 9vw, 9.1rem);
  line-height: .95;
  letter-spacing: -.024em;
}

.hero h1 em {
  color: #ffa3a1;
  text-shadow: 0 0 .15em #ff4d5b98, 0 0 .32em #f9315054;
}

.hero-intro {
  margin-bottom: clamp(14px, 2vw, 23px);
  color: #fff0eb;
  font-size: clamp(.97rem, 1.55vw, 1.22rem);
}

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .91rem;
  font-weight: 700;
}

.button span, .text-link span { font-size: 1.02em; }
.primary { background: var(--red); color: #241013; }


.featured {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 11px 16px 11px 11px;
  border: 1px solid #a46065;
  border-radius: 3px;
  background: #240d17e8;
  font: 400 clamp(1.35rem, 2.15vw, 1.85rem)/1.07 var(--serif);
}



.featured small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 400 .75rem/1.25 var(--sans);
}

.play {
  display: grid;
  place-items: center;
  width: 2.7rem;
  aspect-ratio: 1;
  flex: none;
  border: 1px solid #b8767d;
  border-radius: 50%;
}

.play::before {
  content: "";
  margin-left: 2px;
  border-left: 7px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.featured:is(:active, :focus-visible, .is-pressed) .play, .work:is(:active, :focus-visible, .is-pressed) .play {
  background: var(--red);
  border-color: var(--red);
  color: var(--ground);
}

.pointer-light { display: none; }

@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pointer-light {
    display: block;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease-out;
  }

  .pointer-light::before {
    position: absolute;
    width: clamp(270px, 36vw, 495px);
    aspect-ratio: 1;
    background: radial-gradient(circle, #ff486526, #ff365819 27%, #ff365807 54%, transparent 72%);
    transform: translate(-50%, -50%);
    content: "";
  }

  .pointer-light.is-visible { opacity: 1; }
}

.catalog { padding-block: clamp(43px, 5.6vw, 82px) clamp(62px, 7.5vw, 110px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 7px 30px; margin-bottom: 23px; }
.catalog-note { color: var(--muted); font-size: .94rem; }
.catalog-footer { display: flex; justify-content: flex-end; margin-top: 18px; }
h2 { font-size: clamp(3.25rem, 5.3vw, 5.25rem); letter-spacing: -.017em; }
.catalog h2, .contact h2 {
  color: #ffb1ae;
  text-shadow: 0 0 .32em #ff47513d;
}
.text-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-size: .94rem; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #b97b74; }

.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.work {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #221016;
}

.work:is(:active, :focus-visible, .is-pressed) {
  border-color: #b7656f;
  background: #2e131e;
}
.work img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px 3px 0 0; }
.work-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: clamp(76px, 8.7vw, 106px); padding: 12px 15px; }
.work h3 { font-size: clamp(1.85rem, 2.7vw, 2.55rem); text-wrap: balance; }
.work .play { width: 2.25rem; }

.profile { background: #231017; border-block: 1px solid #55343b; }
.profile-inner {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  grid-template-areas: "ritratto biografia";
  align-items: center;
  gap: clamp(36px, 8vw, 116px);
  padding-block: clamp(66px, 8vw, 110px);
}

.portrait {
  grid-area: ritratto;
  filter: saturate(.78) brightness(.94);
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  object-position: center 41%;
  border-radius: 8px;
}
.bio { grid-area: biografia; }
.bio-intro { max-width: 24ch; font: 400 clamp(1.8rem, 3.15vw, 2.65rem)/1.13 var(--serif); margin-top: 19px; }
.bio p:not(.bio-intro) { max-width: 53ch; margin-top: 17px; color: var(--muted); }
.bio .text-link { margin-top: 13px; }

.contact { background: var(--wine); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 21px 34px; padding-block: clamp(56px, 7vw, 98px); }
.contact p { margin-top: 14px; color: #f1dbd6; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links a { overflow-wrap: anywhere; }
.light { background: var(--paper); color: #32131a; }

.outline { border-color: #bd8d89; }

.footer { justify-content: space-between; gap: 14px; min-height: 80px; color: var(--muted); font-size: .88rem; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: no-preference) {
  .main-nav a, .text-link, .wordmark, .footer a {
    transition: color 160ms ease-out;
  }

  .button, .featured, .play {
    transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out;
  }

  .work {
    transition: transform 220ms cubic-bezier(.22, 1, .36, 1),
      background-color 180ms ease-out, border-color 180ms ease-out, box-shadow 220ms ease-out;
  }

  .button span, .text-link span {
    transition: transform 210ms cubic-bezier(.22, 1, .36, 1);
  }
}

.primary:is(:active, .is-pressed) { background: #ffa7a4; }
.light:is(:active, .is-pressed) { background: #f7c9bf; }
.outline:is(:active, .is-pressed) { background: #512630; }
.featured:is(:active, .is-pressed) { border-color: var(--red); background: #3a1621; }

@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover, .text-link:hover, .footer a:hover, .wordmark:hover { color: var(--red); }
  .primary:hover { background: #ffa7a4; }
  .light:hover { background: #f7c9bf; }
  .outline:hover { background: #512630; }
  .featured:hover { border-color: var(--red); background: #3a1621; }
  .work:hover { border-color: #b7656f; background: #2e131e; }
  .featured:hover .play, .work:hover .play {
    background: var(--red);
    border-color: var(--red);
    color: var(--ground);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .works article:hover .work {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px #0904089c;
  }

  .button:hover span, .text-link:hover span { transform: translate(2px, -2px); }
  .primary:hover span { transform: translateY(3px); }
}

@media (max-width: 900px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { min-height: 440px; }
  .hero-art { object-position: 56% 45%; }
}

@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    align-content: end;
    justify-items: start;
    gap: 17px;
    min-height: 398px;
    padding: clamp(17px, 3.6vw, 26px);
  }
  .hero-art { object-position: 51% center; }
  .hero-inner::after { background: linear-gradient(0deg, #190910 0%, #27101ae6 23%, #2e111858 59%, #2e111822 75%); }
  .hero h1 { font-size: clamp(3.25rem, 12.4vw, 5.25rem); }
  .featured { padding: 8px 12px 8px 8px; }
  .featured .play { width: 2.1rem; }
}

@media (max-width: 600px) {
  html { scroll-padding-block-start: 72px; }
  .header-inner { min-height: 58px; }
  .main-nav { font-size: .84rem; }
  .catalog { padding-top: 34px; }
  .section-head { gap: 4px 18px; margin-bottom: 15px; }
  .works, .profile-inner { grid-template-columns: minmax(0, 1fr); }
  .works { gap: 21px; }
  .profile-inner { grid-template-areas: "biografia" "ritratto"; }
  .work-caption { min-height: 60px; }
  .work h3 { font-size: 2.15rem; }
  .portrait { max-width: 440px; aspect-ratio: 1; object-position: 50% 27%; }
}

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