/* Fifi Tal — artist & songwriter site, v2 (built on the fifital.com rebuild).
   Layout: one long page. Sticky nav, full-photo hero, then alternating
   oxblood / wine bands: About, Music, Watch, Songwriting, Merch, Photos, Join, Footer.
   Boldness lives in the hero lettering; everything else stays quiet. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/lexend-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }

:root {
  --cream: #fff8eb;
  --white: #ffffff;
  --wine: #6e1919;
  --oxblood: #550404;
  --ink: #2a0202;
  --rose: #f3b9a8;          /* the one warm accent: labels and hover */
  --line: rgba(255, 248, 235, 0.28);
  --nav-bg: rgba(42, 2, 2, 0.92);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Lexend", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--oxblood);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
p, h1, h2, h3, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.icon { width: 100%; height: 100%; fill: currentColor; }

.page-bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -1; }

.skip-link { position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%); padding: 8px 16px; background: var(--white); color: var(--ink); z-index: 30; }
.skip-link:focus { transform: translate(-50%, 8px); }

/* Fills the phone's status-bar area behind the sticky nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--nav-bg); z-index: 20; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}
.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-wrap: balance;
}
.lede { max-width: 62ch; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: 2px solid var(--white); border-radius: 80px;
  background: transparent; color: var(--white);
  font: 300 18px var(--font-body); text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--white); color: var(--wine); }
.btn--solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--solid:hover { background: var(--rose); border-color: var(--rose); color: var(--ink); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--nav-bg); border-bottom: 1px solid var(--line); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.nav__logo { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; flex: none; }
.nav__links { list-style: none; padding: 0; display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a { display: block; padding: 10px 12px; font-family: var(--font-heading); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--rose); }

/* ---------- Hero ---------- */
.hero { min-height: min(86vh, 820px); display: flex; align-items: flex-end; padding-block: 120px 72px;
  background: linear-gradient(to top, rgba(42, 2, 2, 0.78) 0%, rgba(42, 2, 2, 0.15) 55%, rgba(42, 2, 2, 0) 100%); }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 9vw, 96px); line-height: 1.1; letter-spacing: 0.32em; color: var(--cream); overflow-wrap: anywhere; }
.hero__subtitle { margin-top: 18px; font-size: clamp(15px, 2.4vw, 22px); letter-spacing: 0.3em; color: var(--white); }
.hero__line { margin-top: 24px; max-width: 46ch; font-size: clamp(18px, 2.4vw, 22px); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Bands ---------- */
.band { padding-block: 88px; }
.band--wine { background: var(--wine); }
.band--ox { background: var(--oxblood); }
.band--paper { background: var(--oxblood) url("../img/newspapers.webp") center / cover no-repeat; }
.band--video { background: var(--wine) url("../img/video-banner.webp") center / cover no-repeat; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; }
/* Heading sits in row 1-2 on the left; bio and highlights share row 3 so they start level */
.about { column-gap: 64px; row-gap: 0; }
.about > div { display: contents; }
.about .eyebrow { grid-column: 1; grid-row: 1; }
.about h2.title { grid-column: 1; grid-row: 2; }
.about__bio { grid-column: 1; grid-row: 3; display: grid; gap: 18px; margin-top: 22px; }
.about .facts { grid-column: 2; grid-row: 3; margin-top: 14px; }
.facts__title { grid-column: 2; grid-row: 2; align-self: end; margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; line-height: 1.6; color: var(--rose); }
.facts { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 17px; color: var(--cream); line-height: 1.35; }
.facts span { display: block; margin-top: 4px; font-size: 16px; opacity: 0.88; }

/* Music */
#music .wrap { text-align: center; }
.players { margin: 36px auto 0; display: grid; gap: 56px; max-width: 720px; text-align: left; }
.player { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; }
.linkcard { display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(42, 2, 2, 0.55); text-decoration: none; transition: border-color 0.2s; }
.linkcard:hover { border-color: var(--cream); }
.linkcard__icon { width: 36px; height: 36px; flex: none; }
.linkcard__t { font-family: var(--font-heading); font-size: 18px; line-height: 1.3; }
.linkcard__s { font-size: 15px; opacity: 0.85; }
.music__more { margin-top: 28px; }

/* Video */
#watch .wrap { text-align: center; }
.video__frame { margin: 32px auto 0; aspect-ratio: 16 / 9; max-width: min(760px, 100%); }
.video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__frame .linkcard { height: 100%; justify-content: center; }

/* Songwriting */
.write { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.write__img { width: 100%; aspect-ratio: 2 / 3; max-height: 640px; object-fit: cover; }
.write__list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 14px; }
.write__list li { padding-left: 22px; position: relative; }
.write__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--rose); }
.write__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.write__mail { font-family: var(--font-display); font-size: 20px; }

/* Merch */
.shelf { list-style: none; padding: 0; max-width: 720px; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.item { display: grid; gap: 6px; align-content: start; }
.item__img { aspect-ratio: 1 / 1; border: 1px dashed var(--line); display: flex; align-items: flex-end; padding: 16px; font-family: var(--font-heading); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); margin-bottom: 8px; }
.item__name { font-family: var(--font-heading); font-weight: 400; font-size: 20px; line-height: 1.3; color: var(--cream); }
.item__price { font-family: var(--font-display); font-size: 22px; color: var(--white); }
.item__desc { font-size: 16px; opacity: 0.9; max-width: 36ch; }
.merch__note { margin-top: 24px; max-width: 58ch; }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.photos img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

/* Join */
.signup__box { max-width: 584px; padding: 28px 24px 30px; background: var(--wine); border: 1px solid var(--line); }
.signup__box h2 { font-family: var(--font-heading); font-weight: 400; font-size: 26px; line-height: 1.4; color: var(--white); }
.signup__box p.hint { margin-top: 6px; font-size: 16px; }
.signup__row { margin-top: 18px; display: flex; align-items: flex-end; gap: 13px; }
.signup__field { flex: 1; min-width: 0; }
.signup__field label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--cream); }
.signup__field input { display: block; width: 100%; height: 48px; padding: 0 12px; background: var(--wine); border: 1px solid rgba(255, 248, 235, 0.6); border-radius: 0; color: var(--cream); font: 300 16px var(--font-body); }
.signup__field input:focus { outline: none; border-color: var(--cream); }
.signup button { width: 171px; height: 48px; flex: none; background: transparent; border: 2px solid var(--white); border-radius: 80px; color: var(--white); font: 300 18px var(--font-body); cursor: pointer; transition: background 0.2s, color 0.2s; }
.signup button:hover { background: var(--white); color: var(--wine); }
.signup__status { font-size: 14px; margin-top: 10px; }
.signup__status:empty { display: none; }

/* Footer */
.footer-main { background: rgba(110, 25, 25, 0.82); padding-block: 48px; }
.footer-main .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer-logo { width: 88px; height: 88px; border-radius: 50%; object-fit: contain; }
.footer-contact { font-family: var(--font-display); font-size: 24px; line-height: 1.4; }
.social { list-style: none; padding: 0; display: flex; gap: 14px; }
.social a { display: block; width: 36px; height: 36px; color: var(--white); transition: opacity 0.2s; }
.social a:hover { opacity: 0.7; }
.footer-bottom { background: rgba(85, 4, 4, 0.92); padding-block: 18px; font-size: 14px; text-align: center; }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  body { font-size: 18px; }
  .band { padding-block: 56px; }
  .about, .write { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about { row-gap: 0; }
  .about .eyebrow, .about h2.title, .about__bio, .about .facts, .facts__title { grid-column: auto; grid-row: auto; }
  .facts__title { margin-top: 36px; }
  .about .facts { margin-top: 12px; }
  .write__img { max-height: 520px; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-block: 96px 48px; }
}
@media (max-width: 560px) {
  .nav__inner { gap: 10px; }
  .shelf { grid-template-columns: minmax(0, 1fr); }
  .item__img { aspect-ratio: 16 / 9; }
  .signup__row { flex-direction: column; align-items: stretch; }
  .signup button { width: 100%; }
  .footer-main .wrap { flex-direction: column; text-align: center; }
  .hero__title { letter-spacing: 0.2em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Songwriting page */
.page-head { padding-block: 72px 56px; }
.page-head .lede { max-width: 58ch; }

/* Per-song "all platforms" link under each player */
.track { display: grid; gap: 10px; }
.player__all { justify-self: start; font-family: var(--font-heading); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); text-decoration: underline; text-underline-offset: 4px; padding-block: 6px; }
.player__all:hover { color: var(--rose); }

/* Single cover beside its player */
.track--cover { grid-template-columns: 152px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.track__cover { grid-row: 1; grid-column: 1; display: block; width: 152px; height: 152px; border-radius: 12px; overflow: hidden; transition: opacity 0.2s; }
.track__cover:hover { opacity: 0.85; }
.track__cover img { width: 100%; height: 100%; object-fit: cover; }
.track--cover .player, .track--cover .linkcard { grid-row: 1; grid-column: 2; }
.track--cover .player__all { grid-row: 2; grid-column: 2; }
@media (max-width: 560px) {
  .track--cover { grid-template-columns: minmax(0, 1fr); }
  .track__cover, .track--cover .player, .track--cover .linkcard, .track--cover .player__all { grid-column: 1; }
  .track__cover { grid-row: 1; width: 120px; height: 120px; }
  .track--cover .player, .track--cover .linkcard { grid-row: 2; }
  .track--cover .player__all { grid-row: 3; }
}

/* Keep the player block the same height as the cover so the link sits directly underneath */
.track--cover { row-gap: 6px; grid-template-rows: auto 1fr; }
.track--cover .track__cover { grid-row: 1 / span 2; }
.track--cover .player__all { align-self: start; }
@media (max-width: 560px) {
  .track--cover { grid-template-rows: auto auto auto; }
  .track--cover .track__cover { grid-row: 1; }
}

#music .eyebrow { color: var(--white); }

.signup__box { margin-inline: auto; }

/* Footer: logo left, contact block centred, social icons right */
@media (min-width: 761px) {
  .footer-main .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
  .footer-main .footer-logo { justify-self: start; }
  .footer-main .footer-contact { text-align: center; }
  .footer-main .social { justify-self: end; }
}

/* Footer: logo left, contact block centred, icons right, all on one line; stacked and centred on phones */
@media (min-width: 761px) {
  .footer-main .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; text-align: initial; }
  .footer-main .footer-logo { justify-self: start; align-self: center; }
  .footer-main .footer-contact { justify-self: center; text-align: center; }
  .footer-main .social { justify-self: end; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .footer-main .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .footer-main .social { justify-content: center; }
}

/* Photos: smaller, six across, centred so more can be added */
.photos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.photos img { width: calc((100% - 5 * 12px) / 6); }
@media (max-width: 760px) {
  .photos img { width: calc((100% - 2 * 12px) / 3); }
}

/* Photos: eight, four across in a narrower block so they sit smaller */
.photos { max-width: 820px; margin-inline: auto; }
.photos img { width: calc((100% - 3 * 12px) / 4); }
@media (max-width: 760px) {
  .photos img { width: calc((100% - 12px) / 2); }
}

/* Phone menu: every link visible without scrolling */
@media (max-width: 560px) {
  .nav__inner { gap: 6px; }
  .nav__logo { width: 36px; height: 36px; }
  .nav__links { gap: 0; margin-left: auto; }
  .nav__links a { padding: 10px 6px; font-size: 11px; letter-spacing: 0.05em; }
}
@media (max-width: 560px) {
  .nav__contact { display: none; }
}
/* Very small phones: shrink the menu a little more so all three links still fit */
@media (max-width: 350px) {
  .nav__inner { gap: 4px; }
  .nav__logo { width: 30px; height: 30px; }
  .nav__links a { padding: 10px 4px; font-size: 10px; letter-spacing: 0.02em; }
}
@media (max-width: 300px) {
  .nav__logo { width: 26px; height: 26px; }
  .nav__links a { padding: 10px 3px; font-size: 9px; letter-spacing: 0; }
}

.videos { margin: 32px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; }
.videos .video__frame { margin: 0; max-width: none; }
@media (max-width: 760px) { .videos { grid-template-columns: minmax(0, 1fr); } }
.videos .video__frame:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
@media (max-width: 760px) { .videos .video__frame:last-child:nth-child(odd) { width: 100%; } }

/* Live videos: smaller, three across (two on phones), last row centred */
.videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 860px; }
.videos .video__frame, .videos .video__frame:last-child:nth-child(odd) { width: calc((100% - 2 * 16px) / 3); grid-column: auto; justify-self: auto; }
.videos .linkcard { padding: 10px; gap: 8px; flex-direction: column; text-align: center; justify-content: center; }
.videos .linkcard__icon { width: 28px; height: 28px; }
.videos .linkcard__t { font-size: 15px; }
.videos .linkcard__s { font-size: 13px; }
@media (max-width: 760px) {
  .videos { gap: 12px; }
  .videos .video__frame, .videos .video__frame:last-child:nth-child(odd) { width: calc((100% - 12px) / 2); }
}

/* Photos: bigger and less tall so they don't look like thin columns on wide screens */
.photos { max-width: 1040px; }
.photos img { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .photos img { aspect-ratio: 3 / 4; } }
.photos img { height: auto; }

/* Live videos with song titles */
.videos .vid { margin: 0; width: calc((100% - 2 * 16px) / 3); }
.videos .vid .video__frame, .videos .vid .video__frame:last-child:nth-child(odd) { width: 100%; margin: 0; }
.videos figcaption { margin-top: 8px; text-align: center; font-family: var(--font-heading); font-size: 15px; line-height: 1.3; }
@media (max-width: 760px) { .videos .vid { width: calc((100% - 12px) / 2); } .videos figcaption { font-size: 14px; } }

/* Hero: small social icons under the buttons */
.hero__social { margin-top: 26px; gap: 18px; }
.hero__social a { width: 28px; height: 28px; opacity: 0.9; }
.hero__social a:hover { opacity: 0.7; }

.item__photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 8px; }

.signup__note { margin-top: 14px; font-size: 14px; line-height: 1.5; opacity: 0.88; }

/* Phones: the Spotify player already shows the cover, so hide the separate cover */
@media (max-width: 560px) {
  .track--cover .track__cover { display: none; }
  .track--cover .player, .track--cover .linkcard { grid-row: 1; }
  .track--cover .player__all { grid-row: 2; }
}

/* Phones: live videos one per row so the previews and titles are readable */
@media (max-width: 560px) {
  .videos .vid { width: 100%; }
  .videos figcaption { font-size: 16px; }
}

/* Songwriting contact form: same look as the mailing-list box, on the wine band */
.contact-form { max-width: 640px; margin: 36px auto 0; padding: 28px 24px 30px; background: var(--oxblood); border: 1px solid var(--line); text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 13px; }
.contact-form__field--wide, .contact-form__foot { grid-column: 1 / -1; }
.contact-form__field label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--cream); }
.contact-form__field input, .contact-form__field select, .contact-form__field textarea { display: block; width: 100%; height: 48px; padding: 0 12px; background: var(--oxblood); border: 1px solid rgba(255, 248, 235, 0.6); border-radius: 0; color: var(--cream); font: 300 16px var(--font-body); }
.contact-form__field textarea { height: auto; min-height: 140px; padding: 12px; resize: vertical; line-height: 1.5; }
.contact-form__field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.contact-form__field select option { background: var(--oxblood); color: var(--cream); }
.contact-form__field input:focus, .contact-form__field select:focus, .contact-form__field textarea:focus { outline: none; border-color: var(--cream); }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact-form__foot .btn { font-family: var(--font-body); }
.contact-form__foot .btn:disabled { opacity: 0.6; cursor: default; }
.contact-form__status { font-size: 14px; }
.contact-form__status:empty { display: none; }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__alt { margin-top: 18px; font-size: 16px; }
.contact-form__alt a { color: var(--cream); }
@media (max-width: 560px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: 22px 16px 24px; }
}
