/* ---------------------------------------------------------------
   jasminmujanovic.com
   Palette sampled from the banner artwork.
   Colours and fonts are all in the :root block below.
   --------------------------------------------------------------- */

:root {
  --paper:    #f1f0e8;
  --paper-2:  #e9e8de;
  --ink:      #1f2320;
  --soft:     #565b52;
  --rule:     #d8d6c9;
  --blue:     #55697c;
  --blue-lt:  #8b9aa8;
  --sage:     #7c876c;
  --clay:     #a3805f;

  --body: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --display: var(--body);   /* one family across the whole site */

  --measure: 34rem;
  --gutter: clamp(1.5rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.25rem;
  line-height: 1.66;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- banner ---------- */

.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper-2);
}

.banner img {
  width: 100%;
  height: clamp(150px, 26vw, 330px);
  object-fit: cover;
  object-position: center 12%;
}

.banner::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 38%;
  background: linear-gradient(to bottom, rgba(241,240,232,0), var(--paper) 92%);
  pointer-events: none;
}

/* ---------- masthead ---------- */

.masthead {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 0;
}

.masthead__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0;
}

.masthead__name a { color: inherit; text-decoration: none; }
.masthead__name a:hover { color: var(--blue); }

/* ---------- nav ---------- */

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav a {
  color: var(--soft);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--clay); }

/* ---------- text ---------- */

.prose { max-width: var(--measure); margin: 0 auto; }

.prose--home {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  font-size: 1.3125rem;
  line-height: 1.64;
}
.prose p { margin: 0 0 1.35em; }
.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue-lt);
}

.prose a:hover { border-bottom-color: var(--blue); }

/* ---------- section ---------- */

/* content sits straight under the nav, same spacing as the homepage */
.prose--top { margin-top: clamp(2.5rem, 6vw, 3.5rem); }

/* headings kept for screen readers and search engines, not shown */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ---------- podcast artwork ---------- */

.showcard {
  max-width: var(--measure);
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
}

.showcard img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 24px -14px rgba(31, 35, 32, 0.5);
}

/* ---------- book entries (books page) ---------- */

.book {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: start;
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  border-bottom: 1px solid var(--rule);
}

.book:first-of-type { padding-top: clamp(2.5rem, 6vw, 3.5rem); }

.book__cover img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 24px -14px rgba(31, 35, 32, 0.5);
}

.book__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  line-height: 1.15;
  margin: 0;
}

.book__sub {
  font-family: var(--display);
  font-style: italic;
  color: var(--soft);
  font-size: 1.1875rem;
  margin: 0.4rem 0 0;
}

.book__meta {
  font-family: var(--display);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0.9rem 0 0;
}

.book__text p { margin: 1.15rem 0 0; }

/* ---------- quoted publisher copy ---------- */

.book__source {
  font-family: var(--display);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 1.5rem 0 0.75rem;
}

.quote {
  margin: 0;
  padding-left: 1.35rem;
  border-left: 2px solid var(--rule);
  color: var(--soft);
}

.quote p {
  margin: 0 0 1.05em;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.quote p:last-child { margin-bottom: 0; }

.book__avail { margin: 1.35rem 0 0; }

.book__avail a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue-lt);
}

.book__avail a:hover { border-bottom-color: var(--blue); }

/* ---------- footer ---------- */

.social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.social a {
  display: inline-flex;
  color: var(--soft);
  border-bottom: 0;
  transition: color 0.2s ease;
}

.social a:hover { color: var(--blue); border-bottom: 0; }

.social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer {
  margin-top: clamp(3.5rem, 8vw, 5rem);
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 3rem;
  text-align: center;
  font-family: var(--display);
  font-size: 0.875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--soft);
}

.footer a { color: var(--soft); text-decoration: none; border-bottom: 1px solid transparent; }
.footer a:hover { color: var(--ink); border-bottom-color: var(--clay); }

/* ---------- focus + motion ---------- */

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- small screens ---------- */

@media (max-width: 42rem) {
  body { font-size: 1.1875rem; }
  .nav { gap: 1.5rem; font-size: 0.875rem; letter-spacing: 0.14em; }
  .book { grid-template-columns: 1fr; }
  .book__cover { max-width: 12rem; }
}
