/* ===== Kristin Bryant Rajan — site styles ===== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #3d3d3d;
  --muted: #6e6e6e;
  --accent: #9232e4;       /* subscribe-button purple */
  --purple: #9b2f9b;       /* hero headings */
  --pink: #f0ddf0;         /* Published Works band */
  --periwinkle: #c2d4f6;   /* Bio band */
  --sky: #a3d9f6;          /* Contact band */
  --gold: #fee980;         /* section rules */
  --accent-soft: #f0ddf0;
  --line: #e7e7e7;
  --serif: "Maitree", "Times New Roman", Times, serif;
  --display: "Montserrat", Helvetica, Arial, sans-serif;
  --head: "Spinnaker", Helvetica, Arial, sans-serif;
  --sans: Helvetica, Arial, sans-serif;
  --max: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ----- Header / nav ----- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: .01em; white-space: nowrap;
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 10px; font: inherit; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 12px 24px 20px; gap: 6px; }
}

/* ----- Hero ----- */
.hero { text-align: center; padding: 96px 0 72px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.1; margin: 0 0 16px;
}
.hero .tagline {
  color: var(--muted); text-transform: uppercase; letter-spacing: .18em;
  font-size: .82rem; margin: 0;
}

/* ----- Sections ----- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-family: var(--serif); font-weight: 500; font-size: 2.3rem;
  margin: 0 0 32px; text-align: center;
}
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 0 0 8px; }

/* ----- Tiles ----- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.tile {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 6px; text-decoration: none; color: #fff; background: var(--accent-soft);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile span {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 20px;
  background: linear-gradient(transparent, rgba(30,20,20,.65));
  font-family: var(--serif); font-size: 1.6rem;
}

/* ----- Bio ----- */
.bio { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.bio img { border-radius: 6px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--accent-soft); }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } .bio img { max-width: 320px; margin: 0 auto; } }

/* ----- Page header (subpages) ----- */
.page-head { text-align: center; padding: 72px 0 24px; }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; }

/* ----- Work list (publications, presentations, etc.) ----- */
.works { max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.works li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.works li:last-child { border-bottom: 0; }
.works .meta { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.works p { margin: 0; }

.prose { max-width: 720px; margin: 0 auto; }

/* ----- Book feature ----- */
.book { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.book img { border-radius: 4px; box-shadow: 0 12px 32px rgba(0,0,0,.15); background: var(--accent-soft); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; } .book img { max-width: 260px; margin: 0 auto; } }

.button {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 4px; border: 0; font: inherit; font-weight: 500; cursor: pointer;
}
.button:hover { background: var(--ink); color: #fff; }

/* ----- Playlists ----- */
.embeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.embeds iframe { width: 100%; height: 380px; border: 0; border-radius: 10px; }

/* ----- Contact ----- */
.contact { text-align: center; }
.contact .email { font-family: var(--serif); font-size: 1.6rem; }
.newsletter { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 28px 0; }
.newsletter input[type="email"] {
  font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px;
  min-width: 260px; background: var(--surface);
}
.social { display: flex; gap: 18px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.social a { color: var(--muted); display: inline-flex; }
.social a:hover { color: var(--accent); }
.social svg { width: 22px; height: 22px; fill: currentColor; }

/* ----- Footer ----- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; text-align: center; color: var(--muted); font-size: .85rem; }

/* ===== Match the original Wix site look ===== */
.site-header { border-bottom: 0; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.site-header .wrap { justify-content: center; max-width: 1200px; min-height: 64px; }
.brand { display: none; font-family: var(--serif); }
.site-nav ul { justify-content: center; gap: 2px 8px; }
.site-nav a {
  font-family: var(--sans); font-size: 14px; color: #555; padding: 8px 10px;
  border-bottom: 0; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #000; border-bottom: 0; }
@media (max-width: 1100px) {
  .site-header .wrap { justify-content: space-between; }
  .brand { display: block; font-size: 1.2rem; }
  .site-nav { top: 64px; }
}

/* ----- Hero: full-bleed blossom photo, text on the right ----- */
.hero-band {
  background: #6ca3d1 url("../images/hero.jpg") left center / cover no-repeat;
  min-height: 640px; display: flex; align-items: flex-start;
}
.hero-band .wrap { width: 100%; display: grid; grid-template-columns: 1fr 1fr; padding-top: 48px; padding-bottom: 48px; }
.hero-text { grid-column: 2; text-align: center; }
.hero-text h1 {
  font-family: var(--serif); font-weight: 400; color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.15; margin: 0 0 22px; letter-spacing: .02em;
}
.hero-text h2 {
  font-family: var(--head); font-weight: 400; color: var(--purple);
  font-size: 1.6rem; letter-spacing: .08em; margin: 24px 0 14px; text-align: center;
}
.hero-text p {
  font-style: italic; color: var(--purple); letter-spacing: .12em;
  font-size: .95rem; line-height: 2.4; margin: 0 auto; max-width: 300px;
}
@media (max-width: 760px) {
  .hero-band { min-height: 0; background-position: 20% center; }
  .hero-band .wrap { grid-template-columns: 1fr; }
  .hero-text { grid-column: 1; background: rgba(108,163,209,.55); padding: 24px 12px; border-radius: 6px; }
}

/* ----- Colored section bands ----- */
section { padding: 56px 0 72px; border-top: 0 !important; }
#works { background: var(--pink); }
#bio { background: var(--periwinkle); }
#contact { background: var(--sky); }
section h2 {
  font-family: var(--display); font-weight: 400; color: #2a2a2a; text-transform: uppercase;
  letter-spacing: .22em; font-size: 1.75rem; margin: 0 0 28px; padding-bottom: 28px;
  position: relative;
}
section h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(600px, 100%); border-bottom: 2px solid var(--gold);
}

/* ----- Tiles: square photos, gold rule, underlined caption ----- */
.tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; max-width: 820px; margin: 48px auto 0; }
.tile { aspect-ratio: auto; background: none; border-radius: 0; color: var(--ink); text-align: center; overflow: visible; }
.tile img { aspect-ratio: 1; height: auto; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.tile:hover img { transform: none; opacity: .9; }
.tile span {
  position: static; display: block; margin-top: 20px; padding: 12px 0 0; background: none;
  border-top: 1px solid var(--gold);
  font-family: var(--serif); font-size: .95rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: underline; color: #333;
}

/* ----- Bio ----- */
.bio { grid-template-columns: 5fr 7fr; gap: 56px; max-width: 980px; margin: 48px auto 0; }
.bio img { aspect-ratio: auto; border-radius: 0; height: auto; }
.bio p { font-style: italic; font-size: .9rem; line-height: 1.6; letter-spacing: .02em; margin: 0 0 1.3em; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; gap: 28px; } .bio img { max-width: 100%; } }

/* ----- Contact ----- */
.contact .email { font-family: var(--serif); font-size: 1rem; letter-spacing: .1em; margin: 40px 0 0; }
.contact .email a { color: var(--ink); text-decoration: none; }
.contact .email a:hover { text-decoration: underline; }
.newsletter { align-items: center; margin: 40px 0; }
.newsletter .nl-label { font-size: .95rem; letter-spacing: .1em; max-width: 190px; text-align: left; }
.newsletter input[type="email"] { border: 1px solid #555; border-radius: 0; min-width: 240px; padding: 8px 10px; font-size: .85rem; }
.button { background: var(--accent); border-radius: 999px; font-style: italic; padding: 9px 22px; }
.button:hover { background: #7a1fc7; }
.follow { font-style: italic; letter-spacing: .12em; margin-right: 12px; }
.social { align-items: center; }
.social a { color: #000; }
.social a:hover { color: var(--accent); }

.page-head h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .2em; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.works h3 { font-family: var(--serif); font-weight: 500; }
.site-footer { background: #fff; font-family: var(--sans); }

/* ----- Subpage content ----- */
.with-photo { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; max-width: 980px; }
.with-photo > img { width: 100%; height: auto; box-shadow: 0 2px 6px rgba(0,0,0,.3); position: sticky; top: 88px; }
.with-photo .works { margin: 0; max-width: none; }
@media (max-width: 760px) { .with-photo { grid-template-columns: 1fr; gap: 24px; } .with-photo > img { max-width: 320px; margin: 0 auto; position: static; } }
.works h3 { font-size: 1.1rem; line-height: 1.4; }
.works .meta em, .works h3 em { font-style: italic; }
.book-text blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font-style: italic; }
.book-text blockquote footer { font-style: normal; color: var(--muted); font-size: .9rem; }
.book-text .order { margin: 28px 0 10px; }
.order-links { font-size: .9rem; color: var(--muted); }
.pl-note { margin: 0 0 20px; }
.playlists { list-style: none; margin: 0; padding: 0; }
.playlists li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.playlists .pl-name { font-family: var(--display); letter-spacing: .12em; font-size: .95rem; color: var(--ink); text-decoration: none; }
.playlists .pl-name:hover { color: var(--accent); }
.playlists .pl-songs { font-size: .85rem; font-style: italic; white-space: nowrap; }

/* ----- Spotify embeds ----- */
.pl-note { text-align: center; margin-bottom: 32px; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: 980px; margin: 0 auto; }
.pl-card iframe { width: 100%; height: 352px; border: 0; border-radius: 12px; display: block; }
.pl-card p { margin: 8px 0 0; font-size: .85rem; font-style: italic; text-align: center; }
