:root {
  --paper: #fff8f3;
  --ink: #281b18;
  --muted: #795e58;
  --rose: #b94b59;
  --rose-dark: #7f2736;
  --gold: #c8923c;
  --green: #2f6f5e;
  --line: rgba(68, 36, 30, 0.14);
  --shadow: 0 18px 50px rgba(92, 45, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 146, 60, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(47, 111, 94, 0.14), transparent 24rem),
    linear-gradient(180deg, #fff8f3 0%, #fff1ed 48%, #fff9f5 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    linear-gradient(rgba(255, 248, 243, 0.78), rgba(255, 241, 237, 0.9)),
    url("assets/full/lp_image.jpg") center / cover;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.lock-screen.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-card {
  width: min(100%, 24rem);
  padding: 2rem 1.2rem;
  text-align: center;
  background: rgba(255, 252, 248, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--rose-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.04;
}

h1 {
  font-size: clamp(3.2rem, 17vw, 5.4rem);
}

.lock-copy {
  max-width: 18rem;
  margin: 1rem auto 1.4rem;
  color: var(--muted);
  line-height: 1.6;
}

.password-form {
  display: grid;
  gap: 0.75rem;
}

.password-form input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
}

.password-form input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(185, 75, 89, 0.12);
}

.password-form button,
.play-feature,
.scroll-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.15rem;
  color: #fff;
  text-decoration: none;
  background: var(--rose-dark);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(127, 39, 54, 0.22);
}

.error {
  min-height: 1.3rem;
  margin: 0.8rem 0 0;
  color: var(--rose-dark);
  font-size: 0.9rem;
}

.audio-panel,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.lock-audio {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.icon-button,
.text-button,
.chip-button {
  min-height: 2.28rem;
  border: 1px solid rgba(127, 39, 54, 0.16);
  background: rgba(255, 252, 248, 0.72);
  color: var(--rose-dark);
  backdrop-filter: blur(14px);
}

.icon-button {
  width: 2.28rem;
  border-radius: 50%;
  font-weight: 700;
}

.text-button,
.chip-button {
  padding: 0 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-shell {
  opacity: 0;
  transition: opacity 600ms ease;
}

.site-shell.visible {
  opacity: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.8rem;
  background: rgba(255, 248, 243, 0.74);
  border-bottom: 1px solid rgba(68, 36, 30, 0.08);
  backdrop-filter: blur(16px);
}

.topbar-actions {
  justify-content: flex-end;
  min-width: 0;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.section {
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 4rem 1rem;
}

.hero {
  min-height: calc(100vh - 4rem);
  display: grid;
  align-items: center;
  padding-top: 2.5rem;
}

.hero-inner {
  max-width: 38rem;
}

.hero h2 {
  font-size: clamp(4rem, 20vw, 8rem);
}

.hero p {
  margin: 1.2rem 0 1.5rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-heading {
  max-width: 36rem;
  margin-bottom: 1.7rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 10vw, 4.3rem);
}

.letter-paper {
  position: relative;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(68, 36, 30, 0.09);
  box-shadow: var(--shadow);
}

.letter-paper::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  pointer-events: none;
  border: 1px solid rgba(200, 146, 60, 0.3);
}

.letter-paper p {
  position: relative;
  margin: 0 0 1rem;
  color: #47312c;
  font-size: 1.03rem;
  line-height: 1.85;
}

.letter-paper .signature {
  margin-top: 1.6rem;
  margin-bottom: 0;
  color: var(--rose-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.45;
}

.quotes-section {
  position: relative;
  display: grid;
  gap: 1.35rem;
}

.quote-intro {
  position: relative;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 246, 240, 0.58)),
    radial-gradient(circle at 100% 0, rgba(200, 146, 60, 0.16), transparent 12rem);
  border: 1px solid rgba(68, 36, 30, 0.08);
  box-shadow: 0 16px 38px rgba(92, 45, 39, 0.1);
}

.quote-intro h2 {
  max-width: 17rem;
  font-size: clamp(2.1rem, 11vw, 4.2rem);
}

.quote-intro p:last-child {
  max-width: 22rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.quote-thread {
  display: grid;
  gap: 0.72rem;
}

.quote-bubble {
  position: relative;
  width: fit-content;
  max-width: min(100%, 27rem);
  margin: 0;
  padding: 0.9rem 1rem 0.95rem;
  color: #5b2230;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(127, 39, 54, 0.08);
  border-radius: 1.4rem 1.4rem 1.4rem 0.35rem;
  box-shadow: 0 12px 28px rgba(92, 45, 39, 0.1);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.38rem, 6.3vw, 2.15rem);
  line-height: 1.08;
}

.quote-bubble::before {
  content: open-quote;
}

.quote-bubble::after {
  content: close-quote;
}

.quote-bubble:nth-child(even) {
  justify-self: end;
  color: #315f53;
  background: rgba(246, 255, 250, 0.68);
  border-radius: 1.4rem 1.4rem 0.35rem 1.4rem;
}

.quote-bubble.small {
  padding-inline: 1.15rem;
}

.quote-bubble.attention {
  max-width: min(100%, 31rem);
  color: #fff;
  background: linear-gradient(135deg, #8a2f3e, #b94b59);
  border-color: transparent;
}

.portrait-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.portrait-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  box-shadow: 0 14px 36px rgba(92, 45, 39, 0.12);
}

.portrait-button:first-child {
  grid-column: 1 / -1;
}

.portrait-button img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait-button:first-child img {
  aspect-ratio: 3 / 4;
}

.string-gallery {
  position: relative;
  display: flex;
  gap: 1.3rem;
  min-height: 19rem;
  margin-inline: -1rem;
  padding: 3.2rem 1rem 1.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.string-gallery::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: max(100%, 72rem);
  height: 4rem;
  border-top: 2px solid rgba(127, 39, 54, 0.28);
  border-radius: 50%;
}

.polaroid {
  position: relative;
  z-index: 1;
  flex: 0 0 12.2rem;
  padding: 0.55rem 0.55rem 1.9rem;
  background: #fffdf8;
  border: 0;
  box-shadow: 0 16px 36px rgba(92, 45, 39, 0.18);
  transform: rotate(var(--tilt));
}

.polaroid::before {
  content: "";
  position: absolute;
  top: -1.75rem;
  left: 50%;
  width: 2px;
  height: 1.75rem;
  background: rgba(127, 39, 54, 0.28);
}

.polaroid::after {
  content: "";
  position: absolute;
  top: -2.08rem;
  left: calc(50% - 0.32rem);
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 50%;
  background: #ffd98a;
  box-shadow: 0 0 16px 6px rgba(255, 217, 138, 0.8);
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.16;
  object-fit: cover;
}

.songs-section {
  width: min(100%, 58rem);
}

.song-heading h2 {
  max-width: 27rem;
}

.song-list {
  display: grid;
  gap: 0.65rem;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(68, 36, 30, 0.08);
  box-shadow: 0 18px 50px rgba(92, 45, 39, 0.1);
}

.song-card {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  gap: 0.82rem;
  align-items: start;
  padding: 1rem 0.85rem;
  background: rgba(255, 252, 248, 0.74);
  border: 1px solid rgba(68, 36, 30, 0.07);
}

.song-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  color: var(--green);
  background: rgba(47, 111, 94, 0.09);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.song-card span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.song-card h3 {
  overflow-wrap: anywhere;
  font-size: clamp(1.28rem, 6vw, 2rem);
  line-height: 1.08;
}

.song-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.play-feature {
  min-height: 2.75rem;
  margin-top: 0.9rem;
  padding-inline: 1rem;
}

.final-section {
  min-height: 80vh;
  display: grid;
  align-content: center;
  text-align: center;
}

.final-section p {
  margin: 0 auto 1rem;
  max-width: 27rem;
  color: var(--muted);
  line-height: 1.7;
}

.final-section h2 {
  max-width: 48rem;
  margin: 0 auto;
  font-size: clamp(2.2rem, 11vw, 5rem);
}

.final-section .final-name {
  margin-top: 1.5rem;
  color: var(--rose-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(40, 27, 24, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.75rem;
  height: 2.75rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

@media (min-width: 720px) {
  .lock-card {
    padding: 2.8rem;
  }

  .section {
    padding-block: 6.5rem;
  }

  .topbar {
    padding-inline: 1.5rem;
  }

  .brand {
    font-size: 1.18rem;
  }

  .chip-button {
    min-height: 2.45rem;
    padding-inline: 0.9rem;
    font-size: 0.82rem;
  }

  .icon-button {
    width: 2.45rem;
    min-height: 2.45rem;
  }

  .letter-paper {
    padding: 2.5rem;
  }

  .portrait-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .portrait-button:first-child {
    grid-row: span 2;
    grid-column: auto;
  }

  .portrait-button:first-child img,
  .portrait-button img {
    aspect-ratio: 4 / 5;
  }

  .quotes-section {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
  }

  .quote-intro {
    min-height: 23rem;
    display: grid;
    align-content: center;
    padding: 2rem;
  }

  .quote-thread {
    gap: 0.9rem;
  }

  .song-list {
    gap: 0.78rem;
    padding: 0.9rem;
  }

  .song-card {
    grid-template-columns: 3rem minmax(0, 1fr);
    padding: 1.2rem;
  }

  .song-mark {
    width: 3rem;
    height: 3rem;
  }

  .string-gallery {
    margin-inline: 0;
    padding-inline: 0.5rem;
  }
}

@media (max-width: 360px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .chip-button {
    flex: 1 1 auto;
    padding-inline: 0.65rem;
    font-size: 0.78rem;
  }
}
