/* janinerainforth.com — shared styles */

/* Fonts are stored on the site itself (no Google connection).
   Both are free fonts under the SIL Open Font License. */
@font-face {
  font-family: "Bakbak One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bakbak-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bakbak One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bakbak-one-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Maven Pro";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/maven-pro-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Maven Pro";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/maven-pro-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #0b0c0c;
  --panel: #161718;
  --text: #ececec;
  --muted: #a9a9a9;
  --pink: #fb56c3;
  --yellow: #ecc119;
  --green: #8cf25c;
  --max: 960px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--pink); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 6px 10px; z-index: 10; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 12, 12, 0.95);
  border-bottom: 1px solid #222;
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-name {
  font-family: "Maven Pro", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--yellow);
  font-size: 17px;
}
/* Menu. Without JavaScript the links simply show in a row. */
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { text-transform: uppercase; font-size: 15px; }
.site-nav a[aria-current="page"] { color: var(--yellow); }
.menu-toggle, .menu-close { display: none; }

/* With JavaScript: three-line button that opens a full-screen menu */
.js .menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.js .menu-toggle span { display: block; height: 3px; background: var(--yellow); border-radius: 2px; }
.js .menu-toggle:hover span, .js .menu-toggle:focus-visible span { background: var(--pink); }
.js .site-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(11, 12, 12, 0.96);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.js .site-nav.open { display: flex; }
.js .site-nav a { font-family: "Maven Pro", sans-serif; font-size: 34px; font-weight: 500; letter-spacing: 0.06em; }
.js .menu-close {
  display: block;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  color: var(--yellow);
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}
.js .menu-close:hover, .js .menu-close:focus-visible { color: var(--pink); }
body.menu-open { overflow: hidden; }

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 32px 16px 48px; }
section { margin: 0 0 56px; }
.center { text-align: center; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }

h1, h2, h3 { font-family: "Maven Pro", sans-serif; line-height: 1.2; }
h2 { font-size: 26px; margin: 0 0 16px; }
.page-title { font-family: "Maven Pro", sans-serif; color: var(--pink); font-size: 34px; letter-spacing: 0.08em; font-weight: 500; margin: 0 0 24px; }
.page-title a { color: inherit; }

figure { margin: 0 auto 16px; }
figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 8px; }

/* Hero */
.hero {
  min-height: 70vh;
  background: url("images/hero-gold-cape.jpg") center / cover no-repeat;
}

/* Header on every page: sits over the top of the page, with a see-through band
   that fades from dark at the top to clear */
.site-header {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 0;
  background: linear-gradient(to bottom, rgba(11, 12, 12, 0.85) 0%, rgba(11, 12, 12, 0.55) 55%, rgba(11, 12, 12, 0) 100%);
}
.site-header .inner { padding-top: 22px; padding-bottom: 56px; }
.site-name { font-size: 40px; letter-spacing: 0.03em; line-height: 1.1; }
.home .hero-feature { min-height: 100vh; }
/* Other pages: leave room at the top for the header */
body:not(.home) main { padding-top: 130px; }
/* Pages with a big photo at the top (the header fades over it) */
.page-hero { min-height: 75vh; background-position: center top; background-size: cover; background-repeat: no-repeat; }
body.has-hero main { padding-top: 24px; }
body.has-hero .page-title { margin-bottom: 8px; }
/* "Of Maximum Joy" lettering on the About page */
.founder-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.omj-title { display: inline-block; line-height: 0; }
.omj-title img { height: 1.75em; width: auto; }

/* Home page: album cover sitting on top of the big photo */
.hero-feature {
  position: relative;
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 32px 4vw 10vh;
}
/* Album link: pink words on separate lines, small cover below on the left
   (matches the old WordPress home page) */
.album-card {
  display: block;
  width: 310px;
  color: var(--pink);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  animation: float-in 1.5s ease-out 0.3s both;
}
.album-text { display: block; text-align: left; padding-left: 162px; }
/* See-through green strip behind each line, taken from the leaves in the album artwork */
.album-text span, .album-buy { background: rgba(48, 92, 48, 0.82); padding: 3px 10px; border-radius: 2px; }
.album-text span { display: block; width: fit-content; margin: 0 0 12px; white-space: nowrap; }
.album-row { display: flex; justify-content: flex-start; align-items: flex-start; gap: 12px; }
.album-card img { width: 150px; flex: none; }
.album-buy { white-space: nowrap; }
.album-card:hover, .album-card:focus { text-decoration: none; }
.album-card:hover .album-buy, .album-card:focus .album-buy { text-decoration: underline; }

/* The box floats down and fades in when the page opens */
@keyframes float-in {
  from { opacity: 0; transform: translateY(-60px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .album-card { animation: none; }
}

/* Quotes */
.quote {
  font-family: "Bakbak One", sans-serif;
  font-size: 22px;
  line-height: 1.45;
  text-align: center;
  margin: 0 auto 40px;
  max-width: 820px;
}
.quote.green { color: var(--green); }
/* Quotes are slanted, except the green ones */
.quote:not(.green) { font-style: italic; }
.quote.quote-small { font-size: 18px; max-width: 720px; }

/* Album block */
.album { text-align: center; }
.album h2 { margin: 0 0 8px; }
.album img { width: 300px; margin: 16px auto; }
.button {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid var(--pink);
  border-radius: 4px;
  font-weight: 700;
}
.button:hover { background: var(--pink); color: #000; text-decoration: none; }
.button-icon { display: inline-flex; align-items: center; gap: 8px; }
.button-icon svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* Embeds (music and video players) */
.embed { margin: 0 auto 24px; }
.embed iframe { border: 0; width: 100%; display: block; }
.embed.bandcamp { max-width: 350px; }
.embed.submithub { max-width: 500px; }
.embed.video { position: relative; aspect-ratio: 16 / 9; }
.embed.video iframe { position: absolute; inset: 0; height: 100%; }
.embed.soundcloud iframe { height: 450px; }
video { display: block; width: 100%; background: #000; margin: 0 auto 8px; }

/* Press cuttings */
.press { display: block; max-width: 300px; margin: 16px auto; }
.press.press-small { max-width: 150px; margin: 0 0 16px auto; }
/* About: first paragraph with the Stereogum picture beside it */
.cols-intro { align-items: center; margin-bottom: 32px; }
.cols-intro p { margin: 0; }
.cols-intro .press-small { margin: 0; }
/* About: small P.E.A.C.E. album cover between the reviews */
.album-cover { display: block; width: 180px; margin: 0 auto 40px; }
.album-cover img { width: 100%; }
/* About: live photo after the "performing with her band" paragraph */
.stage-photo { max-width: 360px; margin: 24px auto; }
.press-title { font-family: "Bakbak One", sans-serif; font-size: 20px; text-align: center; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery a { display: block; }
.gallery-item { margin: 0; }
.gallery-item figcaption { font-size: 13px; line-height: 1.4; text-align: left; margin-top: 6px; }
.gallery-item figcaption a { display: inline; }
.gallery img { width: 100%; height: 260px; object-fit: cover; }

/* Two columns that stack on phones */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* Sign up */
.signup {
  background: var(--panel);
  border-radius: 6px;
  padding: 24px 16px;
  text-align: center;
}
.signup h2 { font-size: 20px; margin: 0 0 16px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.contact-grid h2 { font-size: 20px; margin: 0 0 12px; }
.contact-info p { margin: 0 0 16px; }
.request { margin: 0 0 12px; }
.request summary {
  display: inline-block;
  cursor: pointer;
  padding: 10px 18px;
  background: var(--panel);
  border: 1px solid #333;
  border-radius: 4px;
  font-weight: 700;
  color: var(--pink);
  list-style: none;
}
.request summary::-webkit-details-marker { display: none; }
.request summary::after { content: " +"; }
.request[open] summary::after { content: " –"; }
.mail-form { display: grid; gap: 12px; margin: 16px 0 8px; max-width: 520px; }
.mail-form label { display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.mail-form input, .mail-form select, .mail-form textarea {
  font: inherit;
  color: var(--text);
  background: #1d1e20;
  border: 1px solid #3a3b3d;
  border-radius: 4px;
  padding: 9px 10px;
}
.mail-form input:focus, .mail-form select:focus, .mail-form textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.mail-form .button { justify-self: start; background: none; color: var(--pink); font: inherit; font-weight: 700; cursor: pointer; }
.form-note { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid #222;
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
.social a { display: inline-flex; padding: 6px; color: var(--pink); }
.social a:hover, .social a:focus { color: var(--yellow); }
.social svg { width: 24px; height: 24px; fill: currentColor; display: block; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cols, .contact-grid { grid-template-columns: 1fr; }
  .quote { font-size: 18px; }
  .quote.quote-small { font-size: 15.5px; }
  .page-title { font-size: 26px; }
  .founder-line { font-size: 21px; gap: 6px 10px; }
  .hero { min-height: 45vh; }
  .hero-feature { min-height: 80vh; padding: 24px 16px; background-position: 40% center; }
  .album-card { width: 230px; font-size: 17px; }
  .album-text span { margin-bottom: 10px; }
  .album-card img { width: 110px; }
  .album-text { padding-left: 122px; }
  .site-name { font-size: 25px; }
  .js .site-header .inner { flex-wrap: nowrap; gap: 12px; }
  .site-header .inner { padding-top: 14px; padding-bottom: 40px; }
  .home .hero-feature { min-height: 90vh; }
  body:not(.home) main { padding-top: 96px; }
  .page-hero { min-height: 60vh; background-position: 20% 20%; }
  body.has-hero main { padding-top: 20px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery img { height: 180px; }
}
