/* =========================================================
   Fraier Catherine — main stylesheet (single-page site)
   Clean, modern artist-site look in espresso & beige.
   ========================================================= */

/* ===== Fonts ===== */
@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/Open_Sans/static/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/Open_Sans/static/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
}
@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/Open_Sans/static/OpenSans-Light.ttf") format("truetype");
  font-weight: 300;
}
@font-face {
  font-family: "Lavishly Yours";
  src: url("../assets/fonts/Lavishly_Yours/LavishlyYours-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "League Script";
  src: url("../assets/fonts/LeagueScript/LeagueScript-Regular.ttf") format("truetype");
}

/* ===== Colours (change here to re-colour everything) ===== */
:root {
  --espresso: #2a201a;   /* dark sections */
  --brown:    #4a382c;   /* tiles, hover */
  --beige:    #efe6d8;   /* light sections */
  --sand:     #d8c4a6;   /* accent: labels, lines, buttons */
  --ink:      #2a201a;   /* text on light */
  --cream:    #f8f1e5;   /* text on dark */
  --muted:    #7a6656;
  --topbar-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);   /* so headings aren't hidden under the top bar */
}

body {
  margin: 0;
  background: var(--espresso);
  color: var(--cream);
  font-family: "Open Sans", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ===== Shared type ===== */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand);
}

h2 {
  margin: 0;
  font-family: "League Script", cursive;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.3;
  -webkit-text-stroke: 0.6px currentColor;   /* thickens the fine script */
}

.big {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  margin-top: 0;
}

.muted { opacity: 0.7; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: var(--sand);
  color: var(--espresso);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--cream); border-color: var(--cream); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(248, 241, 229, 0.5); }
.btn-ghost:hover { color: var(--espresso); }

.btn-small { padding: 0.55rem 1.2rem; font-size: 0.68rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ===== Top bar ===== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Becomes solid once you scroll (class added by modern.js) */
.topbar.scrolled {
  background: rgba(42, 32, 26, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(216, 196, 166, 0.15);
}

.brand {
  font-family: "Lavishly Yours", cursive;
  font-size: 1.9rem;
  line-height: 1;
  text-decoration: none;
}

.menu { display: flex; align-items: center; gap: 2rem; }

.menu a:not(.btn) {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.menu a:not(.btn):hover,
.menu a.active { opacity: 1; text-decoration: underline; text-underline-offset: 0.5em; text-decoration-color: var(--sand); }

.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: calc(var(--topbar-h) + 2rem) clamp(1rem, 6vw, 6rem) 4rem;
  background:
    radial-gradient(circle at 80% 30%, rgba(216, 196, 166, 0.18), transparent 55%),
    var(--espresso);
}

.hero-name {
  margin: 0;
  font-family: "Lavishly Yours", cursive;
  font-weight: 400;
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 0.95;
}

.hero-lead {
  max-width: 32em;
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.9;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 200px 200px 12px 12px;   /* modern arch shape */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* ===== Sections ===== */
.section { padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 6vw, 6rem); }
.section.light { background: var(--beige); color: var(--ink); }
.section.light .eyebrow { color: var(--muted); }
.section.dark { background: var(--espresso); color: var(--cream); }

/* Heading on the left, text on the right */
.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  max-width: 1100px;
  margin: 0 auto;
}
.split-body { border-left: 1px solid rgba(42, 32, 26, 0.2); padding-left: clamp(1rem, 3vw, 2.5rem); }

.section-head { max-width: 1100px; margin: 0 auto 2.5rem; }

/* ===== Music tiles ===== */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 1.75rem;
  border-radius: 14px;
  background: var(--brown);
  text-decoration: none;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease;
}
.tile:hover { background: #5a4536; transform: translateY(-4px); }

.tile-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand);
}
.tile-title { font-size: 1.8rem; font-weight: 300; }
.tile-arrow {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.tile:hover .tile-arrow { transform: translateX(6px); }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact .hero-lead { margin: 1.25rem auto 2rem; }

.contact-email {
  display: inline-block;
  font-size: clamp(1.2rem, 4.5vw, 2.4rem);
  font-weight: 300;
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}
.contact-email:hover { color: var(--sand); }

.socials {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
}
.socials a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.8;
}
.socials a:hover { opacity: 1; color: var(--sand); }

/* ===== Footer ===== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem clamp(1rem, 6vw, 6rem);
  border-top: 1px solid rgba(216, 196, 166, 0.15);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

/* ===== Reveal on scroll (switched on by modern.js) ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Tablets ===== */
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 140px; }
}

/* ===== Phones ===== */
@media (max-width: 760px) {
  /* Menu becomes a drop-down behind a two-line button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .menu-toggle .bar { width: 26px; height: 2px; background: var(--cream); transition: transform 0.3s ease; }
  .menu-toggle[aria-expanded="true"] .bar-1 { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bar-2 { transform: translateY(-4px) rotate(-45deg); }

  .menu {
    position: fixed;
    inset: var(--topbar-h) 0 auto 0;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1rem 2.5rem;
    background: var(--espresso);
    border-bottom: 1px solid rgba(216, 196, 166, 0.2);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s;
  }
  .menu.open { transform: none; visibility: visible; }
  .topbar:has(.menu.open) { background: var(--espresso); }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    padding-top: calc(var(--topbar-h) + 1.5rem);
  }
  .hero-photo { order: -1; max-width: 340px; margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }

  .split { grid-template-columns: 1fr; }
  .split-body { border-left: 0; padding-left: 0; }
}
