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

@font-face {
  font-family: "Sloop";
  src: url("./assets/sloop-script-three.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #fff8f0;
  --ink: #281811;
  --wine: #5b1e21;
  --copper: #a9795d;
  --champagne: #e9c9a6;
  --hairline: rgba(255, 248, 240, 0.35);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #8c674f;
  color: var(--ivory);
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-background {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background-color: #a8846d;
  background-image: url("./assets/background-desktop.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  pointer-events: none;
}

#starburst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.7;
  mix-blend-mode: screen;
  filter: sepia(0.35) saturate(0.75);
}

.background-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 27%, rgba(66, 36, 25, 0.08) 44%, rgba(54, 28, 20, 0.78) 78%, rgba(48, 24, 17, 0.92) 100%);
}

main {
  isolation: isolate;
}

.intro {
  width: min(100%, 1280px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(360px, 34vw, 520px) clamp(1.5rem, 7vw, 6rem) clamp(2.5rem, 5vh, 4rem);
  display: block;
}

.profile-block {
  width: min(500px, 100%);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.profile-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border: 2px solid rgba(255, 248, 240, 0.86);
  border-radius: 50%;
  box-shadow: 0 12px 35px rgba(40, 24, 17, 0.24);
}

.verified-badge {
  position: absolute;
  right: -3px;
  bottom: 1px;
  width: 21px;
  height: 21px;
}

.verified-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.eyebrow,
.instagram,
.instruction,
.links-intro p,
.card-action,
footer {
  letter-spacing: 0.12em;
}

.eyebrow {
  max-width: 380px;
  margin: 0 auto 0.55rem;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.55;
  font-weight: 700;
}

.instagram {
  display: inline-block;
  padding-bottom: 0.18rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.92rem;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.instagram:hover {
  opacity: 0.72;
  border-color: var(--ivory);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  text-transform: uppercase;
}

h1 {
  margin-top: 1.45rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section-heading {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.heading-star {
  color: var(--champagne);
  font-size: 1.25rem;
}

h2 {
  font-size: clamp(3.4rem, 6.4vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.025em;
}

.instruction {
  margin: 0.65rem auto 0;
  max-width: 390px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.scroll-cue {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.scroll-cue svg {
  width: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  animation: nudge 1.8s ease-in-out infinite;
}

.ticker {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255, 248, 240, 0.4);
  border-bottom: 1px solid rgba(255, 248, 240, 0.4);
  background: rgba(84, 48, 34, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ticker-track {
  width: max-content;
  display: flex;
  animation: ticker-roll 24s linear infinite;
}

.ticker-track span {
  padding: 0.95rem 0;
  white-space: nowrap;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ticker-track b {
  padding: 0 1.25rem;
  color: var(--champagne);
  font-weight: 400;
}

.links-section {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 9rem 0 7rem;
}

.links-intro {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.links-intro p {
  margin: 0;
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
}

.links-intro span {
  width: 100%;
  height: 1px;
  background: var(--hairline);
}

.links-intro::before {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--hairline);
}

.link-card {
  position: relative;
  aspect-ratio: 2 / 1;
  margin-bottom: clamp(2.7rem, 5vw, 5rem);
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(36, 20, 15, 0.28);
  box-shadow: 0 26px 80px rgba(44, 24, 17, 0.22);
}

.link-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 850ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 500ms ease;
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 11, 8, 0.68) 0%, rgba(21, 11, 8, 0.20) 43%, transparent 73%);
  transition: opacity 400ms ease;
}

.card-title {
  position: absolute;
  z-index: 1;
  max-width: 53%;
  font-size: clamp(3.1rem, 8vw, 8.4rem);
  line-height: 0.72;
  letter-spacing: -0.035em;
  text-shadow: 0 3px 28px rgba(30, 14, 10, 0.22);
}

.card-title small {
  display: block;
  margin-top: 0.14em;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 0.53em;
  line-height: 0.8;
  letter-spacing: -0.02em;
}

.stacked-title {
  font-size: clamp(2.8rem, 6.7vw, 7rem);
  line-height: 0.75;
}

.social-title small {
  font-size: 1em;
  line-height: 0.75;
}

.social-title {
  font-size: clamp(2.5rem, 5.45vw, 5.7rem);
}

.title-left {
  left: clamp(1.4rem, 5vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
}

.title-light {
  color: var(--ivory);
}

.title-dark {
  color: #493026;
  text-shadow: 0 3px 28px rgba(255, 255, 255, 0.18);
}

.sloop {
  position: relative;
  display: inline-block;
  margin-right: -0.02em;
  font-family: "Sloop", cursive;
  font-size: 1.27em;
  line-height: 0.5;
  text-transform: none;
  transform: translateY(0.03em);
}

.card-action {
  position: absolute;
  right: clamp(1.2rem, 3vw, 2.5rem);
  bottom: clamp(1.2rem, 3vw, 2.4rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.card-action svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 240ms ease;
}

.link-card:hover img,
.link-card:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.02);
}

.link-card:hover .card-action svg,
.link-card:focus-visible .card-action svg {
  transform: translateX(0.3rem);
}

.link-card:focus-visible,
.instagram:focus-visible,
.scroll-cue:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 5px;
}

footer {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.68rem;
  font-weight: 700;
}

.footer-mark {
  color: var(--champagne);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.link-card.reveal {
  transform: translateY(74px) scale(0.975);
  transition-duration: 1050ms;
}

.link-card.reveal.is-visible {
  transform: translateY(0) scale(1);
}

@keyframes nudge {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

@keyframes ticker-roll {
  to { transform: translateX(-50%); }
}

@media (max-width: 700px) {
  .site-background {
    background-image: url("./assets/background-mobile.png");
    background-size: 100% auto;
    background-position: center top;
  }

  .background-veil {
    background: linear-gradient(180deg, transparent 25%, rgba(80, 50, 34, 0.06) 43%, rgba(57, 30, 21, 0.72) 73%, rgba(46, 23, 17, 0.9) 100%);
  }

  #starburst {
    opacity: 0.68;
  }

  .intro {
    min-height: auto;
    padding: clamp(205px, 55vw, 285px) 1rem 2.5rem;
  }

  .profile-block {
    width: 100%;
    padding: 0;
  }

  .profile-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.9rem;
  }

  h2 {
    font-size: clamp(3.1rem, 14.5vw, 4.65rem);
  }

  .links-section {
    width: calc(100% - 2rem);
    padding: 5rem 0 4rem;
  }

  .link-card {
    min-height: 0;
    aspect-ratio: 2 / 1;
    margin-bottom: 2.5rem;
  }

  .link-card img {
    object-position: 68% center;
  }

  .link-card:nth-of-type(3) img {
    object-position: 63% center;
  }

  .link-card:nth-of-type(4) img {
    object-position: 67% center;
  }

  .card-shade {
    background: linear-gradient(180deg, rgba(25, 13, 9, 0.05) 0%, rgba(25, 13, 9, 0.08) 48%, rgba(25, 13, 9, 0.8) 100%);
  }

  .card-title {
    top: auto;
    right: auto;
    bottom: 2.7rem;
    left: 1.15rem;
    max-width: calc(100% - 2.3rem);
    font-size: clamp(2.35rem, 13vw, 4rem);
    transform: none;
  }

  .title-dark {
    color: var(--ivory);
    text-shadow: 0 3px 28px rgba(30, 14, 10, 0.25);
  }

  .card-action {
    right: 1rem;
    bottom: 1rem;
    color: var(--ivory);
  }

  .stacked-title {
    font-size: clamp(2rem, 10.7vw, 3.25rem);
  }

  .social-title {
    font-size: clamp(1.72rem, 9.1vw, 2.72rem);
  }

  .ticker-track span {
    padding: 0.82rem 0;
    font-size: 0.64rem;
  }

  footer {
    width: calc(100% - 2rem);
    gap: 0.65rem;
    font-size: 0.61rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
