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

:root {
  --cream: #F0EDE6;
  /* off-white / vellum */
  --ink: #1A1916;
  /* near-black charcoal */
  --glaucous: #6E8DAD;
  /* blue-grey territory 1 & 2 */
  --glaucous-ink: #3E5C7C;
  /* darker glaucous for text on the grey texture */
  --amber: #D4820A;
  /* yellow-orange territory 3 */
  --ink-light: #3A3835;
  --error: #A8261B;
  /* form validation messages */
  --muted: rgba(26, 25, 22, 0.85);
  --faint: rgba(26, 25, 22, 0.1);
  --border: rgba(26, 25, 22, 0.12);

  /* Purple highlighter: ragged ends and uneven ink via layered gradients */
  --marker-rgb: 164, 120, 255;
  --marker-fill:
    linear-gradient(104deg,
      rgba(var(--marker-rgb), 0) 0.9%,
      rgba(var(--marker-rgb), 0.85) 2.4%,
      rgba(var(--marker-rgb), 0.7) 5.8%,
      rgba(var(--marker-rgb), 0.55) 93%,
      rgba(var(--marker-rgb), 0.85) 96%,
      rgba(var(--marker-rgb), 0) 98%),
    linear-gradient(183deg,
      rgba(var(--marker-rgb), 0) 0%,
      rgba(var(--marker-rgb), 0.3) 7.9%,
      rgba(var(--marker-rgb), 0) 15%);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: #D7D7D7;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Page-wide paper texture (fixed layer; background-attachment: fixed is unreliable on iOS) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("assets/mercy-texture.webp") center / cover no-repeat;
}

/* ── Noise / grain texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── Sticky header: nav and ticker stay at the top together while scrolling ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Jump links land below the sticky header instead of under it */
section[id],
[id="demos"],
[id="join"] {
  scroll-margin-top: 125px;
}

/* ── Navigation ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.5rem;
  position: relative;
  /* anchors the mobile dropdown menu */
  /* Same texture, pinned to the viewport, so it lines up seamlessly with body::after */
  background: #D7D7D7 url("assets/mercy-texture.webp") center / cover no-repeat fixed;
}

/* iOS Safari ignores background-attachment: fixed; the nav always sits at the top of the
   viewport, so sizing to the viewport height and anchoring top-centre gives the same result */
@supports (-webkit-touch-callout: none) {
  nav {
    background-attachment: scroll;
    background-size: auto 100vh;
    background-position: center top;
  }
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
  /* links carry their own padding for the hover highlight */
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.3em 0.55em;
  border-radius: 0.8em 0.3em;
  /* Highlighter sweeps in left-to-right on hover */
  background: var(--marker-fill);
  background-repeat: no-repeat;
  background-size: 0% 100%, 0% 100%;
  transition: background-size 0.25s ease-out, text-shadow 0.2s;
  /* White outline plus a wide glow that lifts the links off the grain */
  text-shadow:
    -1px -1px 0 #fff, 0 -1px 0 #fff, 1px -1px 0 #fff,
    -1px 0 0 #fff, 1px 0 0 #fff,
    -1px 1px 0 #fff, 0 1px 0 #fff, 1px 1px 0 #fff,
    0 0 6px #fff,
    0 0 12px #fff;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background-size: 100% 100%, 100% 100%;
  text-shadow: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.2s;
  padding: 2px;
}

.nav-social:hover {
  opacity: 1;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-tagline-top {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glaucous-ink);
  text-align: right;
}

.marker {
  color: var(--ink);
  font-weight: 700;
  padding: 0.25em 0.55em;
  margin: 0 -0.2em;
  border-radius: 0.8em 0.3em;
  background: var(--marker-fill);
  white-space: nowrap;
}

.hero-center {
  text-align: center;
  padding: 2rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hero-logo img {
  width: clamp(260px, 50vw, 720px);
  height: auto;
  display: block;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-light);
  font-weight: 400;
  max-width: 260px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.hero-bottom {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--ink);
  opacity: 0.35;
  text-decoration: none;
  transition: opacity 0.3s;
  animation: scroll-nudge 2.4s ease-in-out infinite;
}

.hero-scroll:hover {
  opacity: 0.7;
  animation-play-state: paused;
}

.hero-scroll svg {
  width: 52px;
  height: 52px;
}

@keyframes scroll-nudge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: var(--ink-light);
}

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0.5px solid var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-amber {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: var(--amber);
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}

.btn-amber:hover {
  opacity: 0.85;
}

/* ── Divider ── */
.divider {
  height: 0.5px;
  background: var(--border);
}

/* ── Marquee / ticker ── */
.ticker {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.7rem 0;
  background: var(--ink);
}

.ticker-inner {
  display: inline-block;
  animation: marquee 24s linear infinite;
}

.ticker-inner span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 0 2.5rem;
  opacity: 0.85;
}

.ticker-inner .dot {
  color: var(--amber);
  padding: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── Section scaffolding ── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

.section-num {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Artist ── */
.artist-section {
  padding: 5rem 2.5rem;
}

.artist-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.artist-image-block {
  aspect-ratio: 590 / 404;
  /* matches the photo, so it isn't cropped or upscaled */
  background: var(--glaucous);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.artist-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-image-caption {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem;
  background: rgba(26, 25, 22, 0.55);
  width: 100%;
}

.artist-image-caption p {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.7);
}

.artist-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.artist-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glaucous-ink);
  border: 0.5px solid var(--glaucous);
  padding: 0.25rem 0.7rem;
  margin-bottom: 1.5rem;
}

.artist-bio {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-light);
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ── Releases ── */
.releases-section {
  padding: 5rem 2.5rem;
  background: var(--ink);
}

.releases-section .section-label {
  color: rgba(240, 237, 230, 0.4);
}

.releases-section .section-line {
  background: rgba(240, 237, 230, 0.1);
}

.releases-section .section-num {
  color: rgba(240, 237, 230, 0.4);
}

.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 0.5px solid rgba(240, 237, 230, 0.1);
}

.release-item {
  border-right: 0.5px solid rgba(240, 237, 230, 0.1);
  border-bottom: 0.5px solid rgba(240, 237, 230, 0.1);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
  cursor: default;
}

.release-item:hover {
  background: rgba(240, 237, 230, 0.04);
}

.release-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
  display: block;
}

.release-flower {
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.release-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.release-meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.35);
}

.release-soon {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  border: 0.5px solid rgba(212, 130, 10, 0.4);
  padding: 0.15rem 0.5rem;
}

/* ── About ── */
.about-section {
  padding: 6rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

/* Let the columns shrink below the sign-up widget's natural width on small screens */
.about-section>* {
  min-width: 0;
}

.about-left h2,
.about-right h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.about-left h2 em,
.about-right h2 em {
  font-style: italic;
  color: var(--glaucous-ink);
}

.about-left p,
.about-right>p,
.demos-block>p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-light);
  font-weight: 400;
  margin-bottom: 1rem;
}

/* Numbered list spaced like the surrounding paragraphs */
.about-principles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.principle {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.principle-num {
  font-size: 0.72rem;
  color: var(--muted);
}

.principle-text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-light);
}

/* ── Demos (bottom of About's right column) ── */
.demos-block {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 0.5px solid var(--border);
}

.demos-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.demos-block h3 em {
  font-style: italic;
  color: var(--glaucous-ink);
}

.demos-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  margin: 0.25rem 0 1.5rem -0.3em;
  padding: 0.05em 0.3em;
  border-radius: 0.8em 0.3em;
  /* Same highlighter sweep as the nav links */
  background: var(--marker-fill);
  background-repeat: no-repeat;
  background-size: 0% 100%, 0% 100%;
  transition: background-size 0.25s ease-out;
}

.demos-email:hover,
.demos-email:focus-visible {
  background-size: 100% 100%, 100% 100%;
}

/* ── Sign-up form (Laposta bare HTML) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.signup-form {
  margin-top: 1.5rem;
}

.signup-email {
  display: flex;
}

.signup-form input[type=email] {
  min-width: 0;
  width: 100%;
  padding: 0.85rem 1.25rem;
  /* Solid light fill so the field and its text stand out from the grain */
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(26, 25, 22, 0.35);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}

.signup-email input {
  border-right: none;
}

.signup-form input::placeholder {
  color: var(--ink-light);
  font-weight: 400;
  opacity: 1;
}

.signup-form input:focus {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

/* Invalid input: :user-invalid only applies once the visitor has interacted with the field,
   .is-invalid is set by the script for its own checks (e.g. a typo in the domain) */
.signup-form input:user-invalid,
.signup-form input.is-invalid {
  border-color: var(--error);
  background: rgba(255, 235, 232, 0.6);
}

.about-right>.signup-error {
  /* beats the column's paragraph colour */
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--error);
}

/* Typo suggestion ("Did you mean …?") rendered as an inline text button */
.signup-error button {
  font: inherit;
  color: inherit;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.signup-form button {
  padding: 0.85rem 1.5rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  border: 0.5px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.signup-form button:hover {
  background: var(--ink-light);
}

.about-right>.signup-thanks {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ── Footer ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 1.75rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-logo .logo-flower {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

.footer-logo .logo-wordmark {
  font-size: 0.85rem;
  color: var(--muted);
}

footer p {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer a.contact-link {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a.contact-link:hover {
  color: var(--glaucous-ink);
}

.footer-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--glaucous-ink);
}

.social-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 820px) {
  nav {
    padding: 1.25rem 1.5rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(215, 215, 215, 0.98);
    padding: 1.5rem;
    border-bottom: 0.5px solid var(--border);
    gap: 1.25rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-social {
    opacity: 0.65;
  }

  .hero {
    min-height: 80vh;
    padding: 2.5rem 1.5rem 2rem;
  }

  .artist-section {
    padding: 3.5rem 1.5rem;
  }

  .artist-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .releases-section {
    padding: 3.5rem 1.5rem;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3.5rem 1.5rem;
  }

  .signup-email {
    flex-direction: column;
  }

  .signup-email input {
    border-right: 1px solid rgba(26, 25, 22, 0.35);
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0.75rem;
  }
}

/* Highlighted labels stay on one line, so on narrow phones stack them instead of squeezing side by side */
@media (max-width: 560px) {
  .hero-top {
    flex-direction: column;
    gap: 0.9rem;
  }

  .hero-tagline-top {
    align-self: flex-end;
  }
}

/* ── Classes that replace inline style attributes (blocked by the Content Security Policy) ── */
.about-section .section-header {
  margin-bottom: 2rem;
}

/* Honeypot field for bots: must stay empty and off-screen */
.hp-field {
  position: absolute;
  top: -9999px;
  left: -9999px;
}
