/* --------------------------------------------------------------
   E The Profit — Eli
   Earth-tone palette per client direction (2026-05).
   Chido is the dominant face site-wide; everything is uppercase
   except the legal footer line.
   -------------------------------------------------------------- */

/* Drop the free Chido font file at assets/fonts/Chido.woff2
   (or .otf/.ttf — adjust the src line). Until then, the fallback
   chain keeps the layout intact. */
@font-face {
  font-family: "Chido";
  src: url("assets/fonts/Chido.woff2") format("woff2"),
       url("assets/fonts/Chido.otf")   format("opentype"),
       url("assets/fonts/Chido.ttf")   format("truetype");
  font-display: swap;
}

:root {
  /* Client-supplied palette */
  --c-bg:        #26170f; /* deep brown — primary bg */
  --c-bg-2:      #4b4139; /* warm brown — secondary bg */
  --c-violet-1:  #535040; /* dark olive — card / panel bg */
  --c-violet-2:  #593f28; /* medium brown — mid-tone */
  --c-amethyst:  #737153; /* olive — primary accent */
  --c-lavender:  #bfb8aa; /* warm tan — highlight / link hover */
  --c-bone:      #f9f6ee; /* cream — primary text on dark */
  --c-ink:       #26170f; /* deep brown — inverse text */
  --c-dim:       #8c775e; /* mocha — muted text */
  --c-accent:    #737C72; /* sage — secondary accent */
  --c-cream-2:   #f0eee9; /* off-white — borders / subtle surfaces */
  --c-sand:      #c1bcac; /* light tan — tertiary accent */
  --c-green-d:   #2e3d30; /* dark green — strong contrast band */

  --font-display: "Chido", "Rozha One", "Abril Fatface", Georgia, serif;
  --font-ui:      "Chido", "Inter", system-ui, -apple-system, sans-serif;

  --maxw:  1200px;
  --gut:   clamp(20px, 4vw, 56px);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--c-bg);
  color: var(--c-bone);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

/* Legal footer line keeps its current font + casing. */
.foot__fine { text-transform: none; font-family: "Inter", system-ui, sans-serif; }

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--c-amethyst); color: var(--c-bone); }

/* ---------- Typography primitives ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.98;
}

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-lavender);
  margin: 0 0 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--c-bone);
  color: var(--c-ink);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--c-lavender);
  color: var(--c-ink);
}
.btn--ghost {
  background: transparent;
  color: var(--c-bone);
  border-color: rgba(249,246,238,0.35);
}
.btn--ghost:hover {
  border-color: var(--c-lavender);
  color: var(--c-lavender);
  transform: translateY(-2px);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  background: linear-gradient(to bottom, rgba(38,23,15,0.85), rgba(38,23,15,0));
  backdrop-filter: blur(6px);
}
.nav__mark {
  display: inline-flex; align-items: baseline; gap: 10px;
}
.nav__e {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--c-lavender);
  line-height: 1;
}
.nav__wordmark {
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.nav__links {
  display: flex; gap: 28px;
}
.nav__links a {
  font-weight: 500; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-bone);
  opacity: 0.8;
  transition: opacity .2s ease, color .2s ease;
}
.nav__links a:hover { opacity: 1; color: var(--c-lavender); }

.nav__logo {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; min-width: 40px;
}
.nav__logo img {
  height: 100%; width: auto; max-width: 140px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* Embed containers — Laylo (capture / pre-save), Shopify (merch). */
.laylo-embed, .shopify-embed {
  margin: 24px 0;
  min-height: 8px;
}
.laylo-embed:empty, .shopify-embed:empty { margin: 0; }

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 var(--gut);
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transform: scale(1.05);
  filter: saturate(1.1) contrast(1.05);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(115,113,83,0.30), transparent 60%),
    linear-gradient(180deg, rgba(38,23,15,0.45) 0%, rgba(38,23,15,0.85) 70%, var(--c-bg) 100%),
    linear-gradient(90deg, rgba(38,23,15,0.75) 0%, rgba(38,23,15,0.25) 55%, rgba(38,23,15,0.6) 100%);
}

.hero__content {
  position: relative; z-index: 2;
  max-width: 900px;
  margin-top: 10vh;
}
.hero__title {
  font-size: clamp(64px, 12vw, 180px);
  margin: 0;
}
.hero__line { display: block; }
.hero__line--accent {
  background: linear-gradient(100deg, var(--c-lavender) 0%, var(--c-amethyst) 45%, var(--c-accent) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero__sub {
  max-width: 540px;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--c-bone);
  opacity: 0.85;
  margin: 24px 0 32px;
}
.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hero__socials {
  position: absolute;
  right: var(--gut);
  bottom: 120px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--c-lavender);
  opacity: 0.7;
  animation: drift 2.4s ease-in-out infinite;
}
@keyframes drift {
  0%,100% { transform: translate(-50%, 0); opacity: 0.5; }
  50%     { transform: translate(-50%, 6px); opacity: 1; }
}
@media (max-width: 720px) {
  .hero__socials {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 32px;
    gap: 10px;
  }
  .hero__scroll { display: none; }
}

/* ---------- Social icon chip ---------- */

.sicon {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(249,246,238,0.08);
  border: 1px solid rgba(249,246,238,0.18);
  color: var(--c-bone);
  transition: transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.sicon svg { width: 18px; height: 18px; }
.sicon:hover {
  background: var(--c-lavender);
  color: var(--c-ink);
  border-color: var(--c-lavender);
  transform: translateY(-3px);
}

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

.section {
  position: relative;
  padding: clamp(80px, 12vw, 140px) var(--gut);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section--dark {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 50%, var(--c-bg) 100%);
  max-width: none;
  margin: 0;
}
.section--dark > .section__head,
.section--dark > .card-grid,
.section--dark > .tour-list {
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
}

.section__head {
  max-width: 680px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section__head h2 {
  font-size: clamp(44px, 6.5vw, 96px);
  margin: 0;
}
.section__sub {
  color: var(--c-dim);
  font-size: 17px;
  margin: 18px 0 0;
}
.section__foot {
  margin-top: 40px;
  text-align: center;
}

/* ---------- Card grids (merch + music) ---------- */

.card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card-grid--merch { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid--music { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-violet-1);
  border: 1px solid rgba(191,184,170,0.12);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  isolation: isolate;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--c-lavender);
  box-shadow: 0 20px 60px -20px rgba(115,113,83,0.55);
}

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(38,23,15,0.85) 100%);
  pointer-events: none;
}

.card__tag {
  position: absolute; top: 12px; left: 12px;
  z-index: 2;
  padding: 6px 10px;
  background: var(--c-lavender);
  color: var(--c-ink);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px;
}

.card__body {
  padding: 16px 18px 20px;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
}
.card__meta {
  font-size: 13px;
  color: var(--c-lavender);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.card__sub {
  padding: 0 18px 18px;
  color: var(--c-dim);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: -8px;
}

/* ---------- Tour list ---------- */

.tour-list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid rgba(191,184,170,0.15);
}
.tour-row {
  display: grid;
  grid-template-columns: 110px 1.2fr 1.2fr auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 22px 4px;
  border-bottom: 1px solid rgba(191,184,170,0.15);
  transition: background .3s ease, padding .3s ease;
}
.tour-row:hover { background: rgba(115,113,83,0.10); padding-left: 14px; padding-right: 14px; }
.tour-row__date {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--c-lavender);
  line-height: 1;
}
.tour-row__city  { font-weight: 600; font-size: 17px; }
.tour-row__venue { color: var(--c-dim); font-size: 14px; }
.tour-row__status {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(191,184,170,0.3);
  color: var(--c-lavender);
  white-space: nowrap;
}
.tour-row__status[data-status="sold out"] { border-color: rgba(255,120,120,0.4); color: #ff8a8a; }
.tour-row__status[data-status="low tix"]  { border-color: rgba(115,124,114,0.6); color: var(--c-accent); }
.tour-row__cta {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-bone);
  border-bottom: 1px solid var(--c-bone);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.tour-row__cta:hover { color: var(--c-lavender); border-color: var(--c-lavender); }

@media (max-width: 720px) {
  .tour-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "date   status"
      "city   city"
      "venue  cta";
    padding: 20px 0;
  }
  .tour-row__date   { grid-area: date; }
  .tour-row__status { grid-area: status; justify-self: end; }
  .tour-row__city   { grid-area: city; }
  .tour-row__venue  { grid-area: venue; }
  .tour-row__cta    { grid-area: cta; justify-self: end; }
}

/* ---------- Community ---------- */

.community {
  max-width: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(46,61,48,0.55), transparent 60%), var(--c-bg);
  padding: clamp(100px, 14vw, 160px) var(--gut);
  text-align: center;
}
.community__inner {
  max-width: 720px; margin: 0 auto;
}
.community h2 {
  font-size: clamp(44px, 7vw, 112px);
  margin: 0 0 18px;
}
.community .btn { margin-top: 28px; }

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

.foot {
  padding: 60px var(--gut) 40px;
  text-align: center;
  background: var(--c-bg-2);
  border-top: 1px solid rgba(191,184,170,0.12);
}
.foot__mark {
  font-size: clamp(48px, 9vw, 120px);
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, var(--c-lavender), var(--c-amethyst));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 28px;
}
.foot__socials {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 22px;
}
.foot__fine {
  font-size: 12px;
  color: var(--c-dim);
  letter-spacing: 0.1em;
}

/* ---------- Email capture modal ---------- */

.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; animation: fadeIn .3s ease; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(38,23,15,0.82);
  backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  width: min(520px, 100%);
  background: linear-gradient(160deg, var(--c-violet-1) 0%, var(--c-bg) 100%);
  border: 1px solid rgba(191,184,170,0.35);
  border-radius: 18px;
  padding: 40px 32px 28px;
  box-shadow: 0 30px 80px -20px rgba(115,113,83,0.55);
  animation: popIn .35s cubic-bezier(.2,.8,.2,1);
}
.modal__close {
  position: absolute; top: 14px; right: 18px;
  background: transparent; border: 0;
  color: var(--c-bone); font-size: 28px; line-height: 1;
  cursor: pointer; opacity: 0.7;
  transition: opacity .2s ease, transform .2s ease;
}
.modal__close:hover { opacity: 1; transform: rotate(90deg); }
.modal h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 12px;
}
.modal__copy { color: var(--c-dim); margin: 0 0 22px; }
.modal__form {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.modal__form input {
  flex: 1 1 220px;
  padding: 14px 16px;
  background: rgba(249,246,238,0.06);
  border: 1px solid rgba(191,184,170,0.3);
  border-radius: 999px;
  color: var(--c-bone);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.modal__form input:focus {
  border-color: var(--c-lavender);
  background: rgba(249,246,238,0.1);
}
.modal__form input::placeholder { color: var(--c-dim); }
.modal__fine {
  margin: 16px 0 0;
  font-size: 11px;
  color: var(--c-dim);
  letter-spacing: 0.06em;
}
.modal__success {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: rgba(191,184,170,0.12);
  border: 1px solid rgba(191,184,170,0.35);
  border-radius: 12px;
  color: var(--c-lavender);
  font-weight: 500;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn  {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
