/* carolyn yujie hao — site styles (rebuilt from the Squarespace design) */

:root {
  --bg: #8e8e5d;              /* olive green background */
  --ink: #fff;                /* headings, nav, title */
  --body: #fff;               /* body text */
  --body-solid: #fff;
  --display: "Marcellus", "Palatino Linotype", Palatino, serif;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "Palatino LT STD", Georgia, serif;
  --max: 1500px;
  --gutter: 4vw;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip; /* no sideways scroll; "clip" (unlike "hidden") keeps the frozen header working */
  background: var(--bg);
  color: var(--body);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
}

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: #000; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter);
  /* Frozen header: stays at the top while the page scrolls under it */
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg);   /* extends the background edge to edge on wide screens */
  clip-path: inset(0 -100vmax);
  transition: padding .25s ease;
}
.site-header.scrolled { padding-top: 16px; padding-bottom: 16px; }
.site-header.scrolled::after {
  content: "";
  position: absolute; left: -100vmax; right: -100vmax; bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-title {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}
.social { display: flex; justify-content: flex-end; gap: 14px; }
.social a { color: var(--ink); display: inline-flex; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 8px 6px; cursor: pointer; color: var(--ink);
}
/* Three bars that morph into an X when the menu is open */
.bars { position: relative; display: block; width: 24px; height: 16px; }
.bars span {
  position: absolute; left: 0;
  width: 100%; height: 1.6px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .35s cubic-bezier(.65, 0, .35, 1), opacity .2s ease, top .35s cubic-bezier(.65, 0, .35, 1);
}
.bars span:nth-child(1) { top: 0; }
.bars span:nth-child(2) { top: 7.2px; }
.bars span:nth-child(3) { top: 14.4px; }
.site-header.open .bars span:nth-child(1) { top: 7.2px; transform: rotate(45deg); }
.site-header.open .bars span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.site-header.open .bars span:nth-child(3) { top: 7.2px; transform: rotate(-45deg); }

/* ---------- Common ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 80px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.display { font-size: 31px; line-height: 1.25; }
.center { text-align: center; }
p { margin: 0 0 1em; }

/* ---------- Home ---------- */
.home-tagline { margin: 24px 0 36px; }
.video-feature {
  max-width: 780px;
  margin: 0 auto;
}
.home-sub { margin: 72px auto 0; max-width: 520px; color: var(--ink); }
.video-feature + .video-caption { margin-bottom: 56px; }
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: start;
}
.photo-row img {
  width: 100%;
  aspect-ratio: 384 / 537;
  object-fit: cover;
}
.photo-row figure { margin: 0; }

/* Framed media (home page): softly rounded corners, a layered olive-tinted
   shadow that gives depth, and a gentle lift + zoom on hover. */
:root {
  --frame-radius: 8px;
  --frame-shadow:
    0 1px 2px rgba(40, 40, 18, .18),
    0 6px 14px rgba(40, 40, 18, .18),
    0 18px 36px -8px rgba(40, 40, 18, .30);
  --frame-shadow-hover:
    0 2px 4px rgba(40, 40, 18, .18),
    0 12px 24px rgba(40, 40, 18, .22),
    0 30px 56px -10px rgba(40, 40, 18, .38);
}
.frame {
  border-radius: var(--frame-radius);
  overflow: hidden;
  box-shadow: var(--frame-shadow);
  transform: translateY(0);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s cubic-bezier(.2, .7, .2, 1);
  isolation: isolate; /* keeps the rounded corners clean during the zoom */
}
.frame img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.frame:hover { transform: translateY(-6px); box-shadow: var(--frame-shadow-hover); }
.frame:hover img { transform: scale(1.035); }
.video-feature .frame:hover,
.video-grid .frame:hover,
.spotify-wrap .frame:hover { transform: translateY(-4px); }
.spotify-wrap .frame { border-radius: 12px; }
.spotify-wrap .spotify { border-radius: 0; }
.video-feature .frame:hover img { transform: scale(1.02); }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .frame, .frame img { transition: none; }
  .frame:hover { transform: none; box-shadow: var(--frame-shadow); }
  .frame:hover img { transform: none; }
}
.press-quote {
  max-width: 320px;
  margin: 32px auto 0;
  text-align: center;
}
.press-quote p { margin: 0 0 6px; }
.press-quote cite,
.video-caption cite { font-style: normal; }
.press-quote cite a,
.video-caption cite a { text-decoration: none; }
.press-quote cite a:hover,
.video-caption cite a:hover { text-decoration: underline; text-underline-offset: 3px; }
.video-caption {
  max-width: 780px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 14.4px;
  font-style: italic;
  line-height: 1.7;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 483fr 582fr;
  gap: 110px;
  align-items: start;
  padding-top: 24px;
}
.about img { width: 100%; aspect-ratio: 483 / 793; object-fit: cover; }
.about h1 { margin-bottom: 32px; }
.about p { font-size: 17.5px; line-height: 1.6; margin-bottom: 1.6em; color: #fff; }

/* ---------- Performance ---------- */
.video-grid {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 30px;
  max-width: 1085px;
  margin-inline: auto;
}
.video-grid h2 {
  font-size: 19px;
  line-height: 1.3;
  margin: 28px 0 10px;
}
.video-grid p { font-size: 14.4px; color: var(--ink); line-height: 1.6; margin: 0; }

/* Click-to-play YouTube (loads the player only when clicked: faster + more private) */
.yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.yt img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .2s;
}
.yt:hover img { opacity: .85; }
.yt .play {
  position: absolute; inset: 0; margin: auto;
  width: 68px; height: 48px;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Discography ---------- */
/* Matches the Squarespace layout: text on the left, Spotify player on the right */
.discography {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1085px;
  margin: 0 auto;
  padding-top: 24px;
}
.discography h1 { font-size: 37px; margin-bottom: 24px; }
.discography p { font-size: 17.5px; margin: 0; }
.spotify {
  display: block;
  width: 100%;
  height: 452px;
  border: 0;
  border-radius: 12px;
  background: #1d3b20; /* shows a dark panel, not a gap, while Spotify loads */
}
.spotify-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14.4px;
  color: var(--ink);
  text-decoration: none;
}
.spotify-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact { max-width: 582px; margin: 0 auto; text-align: center; padding-top: 24px; color: var(--body-solid); }
.contact > p { font-size: 17.5px; margin-bottom: .6em; }
.contact form { text-align: left; margin: 40px 0 56px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { margin-bottom: 22px; }
/* Field titles match Squarespace: Marcellus in black, "(required)" in Palatino */
.field > label,
.name-group legend {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}
.field > label span,
.name-group legend span { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.name-group { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.name-group legend { padding: 0; }
.name-group .caption {
  display: block;
  font-size: 12px;
  color: var(--body-solid);
  margin: 4px 0 6px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: #000;
  background: #fafafa;
  border: 1px solid #a9a9a9;
  border-radius: 0;
  padding: 12px;
}
.field textarea { min-height: 100px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.btn {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .02em;
  background: #000;
  color: var(--bg);
  border: 0;
  padding: 18px 32px;
  cursor: pointer;
}
.btn:hover { opacity: .85; }
.form-status { margin-top: 16px; min-height: 1.6em; }
.contact > p { color: var(--body-solid); }
.contact h2.display { font-size: 24.6px; }
.contact h2 a { text-decoration: none; color: var(--body-solid); }
.contact h2 a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Footer ---------- */
/* Matches the Squarespace footer: crane drawing centered above the email, thin rule below.
   The crane is a plain transparent image: no frame, shadow or hover effect. */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  padding: 24px var(--gutter) 30px;
  color: var(--body);
}
.footer-crane {
  display: block;
  width: 214px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 12px;
}
.site-footer p { margin: 0; font-size: 17.4px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer hr {
  margin: 34px 0 0;
  border: 0;
  border-top: 1px solid rgba(73, 44, 44, .25);
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  :root { --gutter: 6vw; }
  .site-header { grid-template-columns: auto 1fr auto; padding-top: 20px; padding-bottom: 20px; }
  .menu-toggle { display: inline-flex; grid-column: 1; grid-row: 1; }
  .site-title { grid-column: 2; grid-row: 1; font-size: 26px; white-space: normal; }
  .social { grid-column: 3; grid-row: 1; }
  /* Menu rolls down smoothly when opened and back up when closed */
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .45s cubic-bezier(.65, 0, .35, 1), padding .45s cubic-bezier(.65, 0, .35, 1),
                opacity .3s ease, visibility 0s linear .45s;
  }
  .site-nav a { font-size: 22px; }
  .site-header.open .site-nav {
    max-height: 340px;
    padding: 18px 0 8px;
    opacity: 1;
    visibility: visible;
    transition: max-height .45s cubic-bezier(.65, 0, .35, 1), padding .45s cubic-bezier(.65, 0, .35, 1),
                opacity .35s ease .05s, visibility 0s;
  }
  .site-header { row-gap: 0; }

  .display { font-size: 26px; }
  .photo-row { grid-template-columns: 1fr; gap: 16px; max-width: 420px; margin: 0 auto; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about .frame { max-width: 420px; width: 100%; margin: 0 auto; }
  .video-grid { grid-template-columns: 1fr; gap: 44px; }
  .discography { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .discography h1 { font-size: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .site-nav, .bars span { transition: none !important; }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .about { gap: 56px; }
}
