:root {
  --bg: #cfd6ff;
  --bg-2: #f4d0f0;
  --paper: #fdf7ea;
  --ink: #1f1f4d;
  --muted: #54547f;
  --blue: #2049ff;
  --blue-dark: #1b2d8f;
  --pink: #ff79b0;
  --mint: #8be9d6;
  --yellow: #ffe86b;
  --line: #202060;
  --shadow: 0 6px 0 rgba(27, 45, 143, 0.18);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.7), transparent 18%),
    radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.45), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, #efe3ff 35%, var(--bg-2) 100%);
  overflow-x: hidden;
}

a {
  color: #0645ad;
  text-decoration: underline;
}

a:hover,
a:focus-visible {
  color: #0b2c7d;
}

button,
input,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  width: min(var(--max-width), calc(100% - 16px));
  margin: 0 auto;
  padding: 10px 0 24px;
}

.tile-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.16;
  background-image: url("./imgs/image copy 2.png");
  background-repeat: repeat;
  background-size: 520px auto;
  mix-blend-mode: multiply;
}

.top-ribbon {
  margin-bottom: 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(93, 76, 255, 0.92), rgba(52, 86, 255, 0.92), rgba(112, 73, 255, 0.92)),
    url("./imgs/image copy 3.png");
  background-size: cover, 320px auto;
  background-position: center, center;
  color: #fff;
  box-shadow: var(--shadow);
}

.top-ribbon marquee {
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header,
.retro-frame,
.quote-frame {
  border: 3px solid var(--line);
  background: rgba(253, 247, 234, 0.9);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffef91, #ff9acc);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 3px 0 rgba(27, 45, 143, 0.15);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.menu-toggle {
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf6, #f0efff);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(27, 45, 143, 0.15);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fff, #dde4ff);
  outline: none;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.section {
  margin-top: 18px;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
}

.hero-copy,
.hero-sidebar,
.about-card,
.now-card,
.style-card,
.sound-card,
.contact-box,
.guestbook-form {
  border: 2px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf6, #f2f3ff);
  box-shadow: 0 3px 0 rgba(27, 45, 143, 0.14);
}

.hero-copy {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.88), rgba(242, 243, 255, 0.9)),
    url("./imgs/image copy 4.png");
  background-size: cover, cover;
  background-position: center, center;
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.label {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.label.alt {
  background: var(--pink);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

h1 span {
  color: #b12f7f;
}

h2 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.lead {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.button-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bevel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fefefe, #dfe5ff);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(27, 45, 143, 0.2);
}

.bevel-button:hover,
.bevel-button:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fff, #cdd7ff);
  outline: none;
}

.bevel-button.alt {
  background: linear-gradient(180deg, #fff2a2, #ffa5d0);
}

.counter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.counter {
  padding: 12px 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.counter span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.counter strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.hero-sidebar {
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(238, 241, 255, 0.78)),
    url("./imgs/image copy 6.png");
  background-size: cover, cover;
  background-position: center, center;
}

.pixel-window {
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #d9ecff, #f7ddff);
}

.window-bar {
  padding: 6px 10px;
  border: 2px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #f1f5ff, #cdd8ff);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.window-body {
  position: relative;
  min-height: 300px;
  padding: 14px;
  border: 2px solid var(--line);
  border-top: none;
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.8), transparent 14%),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.6), transparent 12%),
    linear-gradient(180deg, rgba(201, 212, 255, 0.82), rgba(248, 211, 240, 0.82)),
    url("./imgs/image copy 3.png");
  background-size: auto, auto, auto, 240px auto;
  background-position: center, center, center, center;
}

.screen-card,
.pixel-orb {
  position: absolute;
}

.screen-card {
  display: grid;
  place-items: center;
  width: 110px;
  height: 74px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(27, 45, 143, 0.16);
}

.card-a {
  top: 30px;
  left: 16px;
}

.card-b {
  top: 26px;
  right: 16px;
}

.card-c {
  bottom: 26px;
  left: 26px;
}

.card-d {
  bottom: 28px;
  right: 18px;
}

.pixel-orb {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 2px 0 rgba(27, 45, 143, 0.16);
}

.orb-a {
  top: 112px;
  left: 50%;
  background: var(--mint);
}

.orb-b {
  top: 66px;
  left: 50%;
  background: var(--yellow);
}

.orb-c {
  bottom: 108px;
  left: 50%;
  background: var(--pink);
}

.orb-d {
  bottom: 54px;
  right: 50%;
  background: #8da6ff;
}

.sidebar-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  text-align: center;
}

.marquee-band {
  margin-top: 18px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(90deg, #5443ff, #2f67ff, #7f4cff);
  color: #fff;
  box-shadow: var(--shadow);
}

.marquee-band marquee {
  padding: 10px 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading.inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-heading p {
  max-width: 64ch;
  color: var(--muted);
}

.section-about {
  background:
    linear-gradient(180deg, rgba(253, 247, 234, 0.92), rgba(248, 244, 255, 0.9)),
    url("./imgs/image copy 5.png");
  background-size: cover, cover;
  background-position: center, center;
}

.section-now {
  background:
    linear-gradient(180deg, rgba(253, 247, 234, 0.9), rgba(251, 245, 234, 0.94)),
    url("./imgs/image copy 4.png");
  background-size: cover, cover;
  background-position: center, center;
}

.section-style {
  background:
    linear-gradient(180deg, rgba(253, 247, 234, 0.92), rgba(246, 241, 255, 0.94)),
    url("./imgs/image copy 7.png");
  background-size: cover, cover;
  background-position: center, center;
}

.section-sounds {
  background:
    linear-gradient(180deg, rgba(253, 247, 234, 0.92), rgba(236, 243, 255, 0.94)),
    url("./imgs/image copy 5.png");
  background-size: cover, cover;
  background-position: center, center;
}

.about-layout,
.now-grid,
.style-grid,
.sound-library-grid {
  display: grid;
  gap: 12px;
}

.about-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.now-grid,
.style-grid,
.sound-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card,
.now-card,
.style-card,
.sound-card,
.contact-box {
  padding: 14px;
}

.sound-card {
  display: grid;
  gap: 12px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.94), rgba(241, 244, 255, 0.96)),
    url("./imgs/image copy 4.png");
  background-size: cover, cover;
  background-position: center, center;
}

.sound-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sound-card-header strong,
.sound-category,
.sound-tags span {
  border: 2px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sound-card-header strong {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff4ab, #ff9ecf);
}

.sound-category {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--mint);
}

.sound-card p {
  color: var(--muted);
  line-height: 1.45;
}

.sound-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sound-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.sound-card audio {
  width: 100%;
  min-width: 0;
  margin-top: 2px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff4ab, #ff9ecf);
  font-size: 1.2rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tags span {
  padding: 4px 9px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: lowercase;
}

.quote-frame {
  margin-top: 18px;
  padding: 32px 18px;
  border-radius: 20px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(63, 27, 143, 0.88), rgba(95, 49, 222, 0.88)),
    url("./imgs/image copy 6.png");
  background-size: cover, cover;
  background-position: center, center;
  color: #fff;
}

.quote-frame blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.quote-frame p {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 12px;
}

#contact {
  background:
    linear-gradient(180deg, rgba(253, 247, 234, 0.9), rgba(253, 247, 234, 0.95)),
    url("./imgs/image copy 3.png");
  background-size: cover, cover;
  background-position: center, center;
}

.guestbook-form {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.guestbook-form label {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px;
  box-shadow: inset 0 2px 0 rgba(27, 45, 143, 0.08);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(64, 105, 255, 0.18);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-box {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 118px;
}

.contact-box span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 18px;
  padding: 12px 14px;
  border: 3px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 247, 217, 0.9), rgba(242, 239, 255, 0.9)),
    url("./imgs/image copy 7.png");
  background-size: cover, cover;
  background-position: center, center;
  box-shadow: var(--shadow);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

.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;
}

@media (max-width: 1080px) {
  .hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-layout,
  .now-grid,
  .style-grid,
  .sound-library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 10px, var(--max-width));
  }

  .site-header {
    position: relative;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: rgba(253, 247, 234, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      visibility 160ms ease,
      transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    text-align: center;
  }

  .hero-copy,
  .hero-sidebar,
  .retro-frame,
  .quote-frame,
  .site-footer {
    border-radius: 16px;
  }

  .counter-row,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .button-row,
  .contact-actions {
    flex-direction: column;
  }

  .section-heading.inline {
    align-items: start;
    flex-direction: column;
  }
}
