/* marykastle.com
   Hand-authored replacement for the Avada/Fusion theme CSS.
   Palette and type taken from the site's own design notes:
     headers  Autography  -> substituted with Sacramento (free, OFL)
     body     Lato        -> Google Fonts, same as before
*/

:root {
  --rose-pink:  #9c6b62;
  --navy:       #2d3047;
  --dress-pink: #cc233c;
  --maroon:     #73365a;
  --lime:       #98a743;
  --grey-light: #aaaaaa;
  --grey-dark:  #9fa2a4;
  --black:      #1a1a1a;
  --white:      #ffffff;
  --cream:      #faf8f6;

  --ink:        var(--black);
  --accent:     var(--rose-pink);
  --accent-alt: var(--maroon);

  --font-display: "Sacramento", "Autography", cursive;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1100px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --section-y: clamp(3rem, 8vw, 6rem);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-alt); text-underline-offset: 0.15em; }
a:hover { color: var(--dress-pink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.visually-hidden, .mc-honeypot {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--dress-pink); outline-offset: 3px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}
/* Sacramento is a script face and runs small — size up to match Autography's presence */
h1 { font-size: clamp(3rem, 8vw, 5rem); }
h2 { font-size: clamp(2.5rem, 6vw, 4rem); }
h3 { font-size: clamp(2rem, 4.5vw, 2.75rem); }

p { margin: 0 0 1.15em; }

.tagline {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--rose-pink);
  margin-bottom: 1.5em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--rose-pink);
  padding: 0.95em 2.4em;
  border: 0;
  border-radius: 2px;
  transition: background 0.18s ease;
}
.btn:hover { background: var(--maroon); color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  /* Solid, not translucent: content scrolling underneath was showing through and
     colliding with the nav. */
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap); flex-wrap: wrap;
  padding-block: 0.9rem;
}
.logo img { width: 190px; height: auto; }

.site-nav ul {
  display: flex; gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--navy);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--rose-pink); }

/* ---------- Hero ---------- */

.hero {
  background-size: cover;
  background-position: center 30%;
  position: relative;
  color: var(--white);
  text-align: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,48,71,0.55), rgba(45,48,71,0.7));
}
.hero-inner {
  position: relative; z-index: 1;
  min-height: clamp(380px, 62vh, 620px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-block: var(--section-y);
}
/* Sacramento's glyphs are narrow, so `ch` units read much tighter here than in a
   text face — this needs a far wider measure than a body-copy rule would. */
.hero-quote { margin: 0 0 2.25rem; max-width: min(100%, 46ch); }
.hero-quote p {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  line-height: 1.15; margin: 0 0 0.4em; color: var(--white);
  text-wrap: balance;
}
.hero-quote cite {
  font-family: var(--font-body); font-style: normal;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Sections ---------- */

section { padding-block: var(--section-y); }
.hero, .spotify { padding-block: 0; }
.about { background: var(--cream); }

.about-inner {
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 800px) {
  .about-inner { grid-template-columns: 0.85fr 1.15fr; gap: calc(var(--gap) * 1.5); }
}
.about-image img { border-radius: 2px; }

/* ---------- News ---------- */

.news-list, .show-list, .quote-wall, .credits { list-style: none; margin: 0; padding: 0; }

.news-item {
  padding-block: 1.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: 0; }
.news-item time {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rose-pink);
  margin-bottom: 0.5rem;
}
.news-item p { margin: 0; max-width: 68ch; }

/* ---------- Subscribe ---------- */

.subscribe { background: var(--navy); color: var(--white); text-align: center; }
.subscribe h2 { color: var(--white); }
.subscribe p { max-width: 46ch; margin-inline: auto; }

.subscribe-form {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center;
  margin-top: 1.75rem;
}
.subscribe-form input[type="email"] {
  flex: 1 1 min(320px, 100%);
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.9em 1.1em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  background: var(--white); color: var(--ink);
}
.subscribe-form button {
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white); background: var(--rose-pink);
  padding: 0.95em 2.2em;
  border: 0; border-radius: 2px; cursor: pointer;
  transition: background 0.18s ease;
}
.subscribe-form button:hover { background: var(--dress-pink); }
.subscribe-fallback { margin-top: 1rem; font-size: 0.85rem; }
.subscribe-fallback a { color: rgba(255, 255, 255, 0.75); }

/* ---------- Press quotes ---------- */

.press { text-align: center; }
.instagram-cta { margin-bottom: calc(var(--section-y) * 0.7); }

.quote-wall {
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
  text-align: left;
}
@media (min-width: 700px) { .quote-wall { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .quote-wall { grid-template-columns: repeat(3, 1fr); } }

.quote blockquote {
  margin: 0; height: 100%;
  padding: 1.75rem;
  background: var(--cream);
  border-left: 3px solid var(--lime);
  border-radius: 2px;
}
.quote p { font-size: 0.98rem; }
.quote cite {
  font-style: normal; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rose-pink);
}

/* ---------- Live dates ---------- */

.shows { background: var(--cream); }
.show {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: baseline;
  padding-block: 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.show:last-child { border-bottom: 0; }
.show time {
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--rose-pink);
  flex: 0 0 auto; min-width: 13ch;
}
.show-venue { font-weight: 700; }
.show-city { color: var(--grey-dark); }

/* ---------- Listen page ---------- */

.page-head { text-align: center; padding-bottom: 0; }
.page-intro { color: var(--grey-dark); }

.release + .release { padding-top: 0; }
.release-inner {
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) {
  .release-inner { grid-template-columns: 1fr 1fr; gap: calc(var(--gap) * 1.5); }
  .release:nth-of-type(even) .release-image { order: 2; }
}
.credits {
  margin: 0 0 1.75rem;
  font-size: 0.88rem; color: var(--grey-dark);
  line-height: 1.9;
}

/* ---------- Spotify page ---------- */

.spotify {
  background-size: cover; background-position: center 25%;
  position: relative; text-align: center; color: var(--white);
}
.spotify::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(45, 48, 71, 0.66);
}
.spotify-inner {
  position: relative; z-index: 1;
  min-height: clamp(420px, 68vh, 640px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-block: var(--section-y);
}
.spotify h1 {
  font-family: var(--font-body);
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--white);
}
.spotify p { max-width: 34ch; }
.spotify .btn { margin-top: 1.25rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy); color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding-block: var(--section-y) 2.5rem;
}
.site-footer h2 { color: var(--white); }
.footer-subscribe { padding-block: 0 2.5rem; }
.footer-subscribe .subscribe-fallback a { color: rgba(255, 255, 255, 0.7); }

.footer-nav ul, .socials {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem; list-style: none; margin: 0 0 1.5rem; padding: 0;
}
.footer-nav a, .socials a {
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: rgba(255, 255, 255, 0.85);
}
.footer-nav a:hover, .socials a:hover { color: var(--rose-pink); }

.copyright { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
