/* raquelvelho.co — static rebuild
   Layout copied from the structure of the current Squarespace site:
   fixed left sidebar (title + nav), fixed 50px from top/left, content
   column offset to clear it and scrolling independently underneath.
   Palette: stark black/white, high contrast — deliberately more
   accessible than the original's soft grays. */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --indigo: #203250;    /* Twilight Indigo — Atacama sky */
  --spruce: #314F30;    /* Dark Spruce — Arecibo forest */
  --slate: #B1B5BE;     /* Pale Slate — Arecibo dish */
  --muted: #3f4854;     /* dark indigo-gray, for readable captions/meta text */
  --line: #000000;
  --sidebar-w: 200px;
  --gutter: 50px;
  --content-max: 700px;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--spruce); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }

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

/* ---------- fixed left sidebar ---------- */

header.site-sidebar {
  position: fixed;
  top: var(--gutter);
  left: var(--gutter);
  width: var(--sidebar-w);
  max-height: calc(100vh - 2 * var(--gutter));
  overflow-y: auto;
}

.site-title {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}
.site-title a { text-decoration: none; }

nav.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.primary-nav li { margin: 0 0 0.15rem; }

nav.primary-nav > ul > li > a,
nav.primary-nav > ul > li > span.nav-label {
  display: block;
  padding: 0.2rem 0;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
nav.primary-nav > ul > li > a.active,
nav.primary-nav > ul > li.has-sub.is-current > span.nav-label {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--indigo);
}
nav.primary-nav > ul > li > a:hover {
  color: var(--spruce);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--spruce);
}

nav.primary-nav .submenu {
  list-style: none;
  margin: 0.1rem 0 0.5rem;
  padding: 0 0 0 0.9rem;
  border-left: 1px solid var(--slate);
}
nav.primary-nav .submenu a {
  display: block;
  padding: 0.15rem 0;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}
nav.primary-nav .submenu a.active {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--indigo);
}
nav.primary-nav .submenu a:hover {
  color: var(--spruce);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--spruce);
}

/* mobile: sidebar collapses to a static top block, content follows below */
@media (max-width: 780px) {
  header.site-sidebar {
    position: static;
    width: auto;
    max-height: none;
    padding: 1.25rem var(--gutter) 0.5rem;
    border-bottom: 2px solid #000;
  }
  nav.primary-nav ul { display: block; }
}

/* ---------- content column ---------- */

main {
  margin-left: calc(var(--sidebar-w) + var(--gutter) * 2);
  max-width: var(--content-max);
  padding: var(--gutter) var(--gutter) 4rem 0;
}
@media (max-width: 780px) {
  main { margin-left: 0; padding: 1.5rem var(--gutter) 3rem; max-width: 100%; }
}

h1 {
  font-size: 1.9rem;
  margin: 0 0 0.3rem;
}
h2 {
  clear: both;
  font-size: 1.2rem;
  margin-top: 2.2rem;
  border-bottom: 2px solid var(--indigo);
  padding-bottom: 0.3rem;
}
h3 {
  font-size: 1.02rem;
  margin-top: 1.6rem;
  color: var(--spruce);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

/* ---------- hero (oval portrait + intro text, side by side) ---------- */

.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 0 2.5rem;
}
.hero .hero-portrait {
  flex: 0 0 auto;
  width: 220px;
}
.hero .hero-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 50% / 18%;
}
.hero-overlay {
  flex: 1 1 auto;
}
.hero-overlay h1 {
  color: var(--indigo);
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
}
.hero-overlay p {
  color: var(--ink);
  font-style: italic;
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 560px) {
  .hero { flex-direction: column; align-items: center; text-align: center; }
  .hero .hero-portrait { width: 60%; }
}

/* ---------- wide oval (stadium) crop, e.g. the Atacama dish photo ---------- */

.oval-wide {
  margin: 1.6rem 0;
}

/* ---------- book cover: floats right, body text wraps to its left ---------- */

.book-cover {
  float: right;
  width: 220px;
  margin: 0 0 1.2rem 1.5rem;
}
.book-cover img { border: 1px solid var(--slate); border-radius: 10px; }
@media (max-width: 560px) {
  .book-cover { float: none; width: 60%; margin: 0 auto 1.5rem; }
}
.oval-wide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 78% 50%;
  border-radius: 9999px;
}

figure { margin: 1.6rem 0; }
figure img { border: 1px solid var(--slate); border-radius: 10px; }
figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.bandcamp-embed {
  clear: both;
  margin: 1.6rem 0;
}
.bandcamp-embed iframe { max-width: 100%; 
                       filter: grayscale(1) sepia(0.8) hue-rotate(190deg) saturate(0.7) contrast(1.05) brightness(0.97);
                       }
/* small float figures: image left or right, body text wraps around it */
figure.float-left,
figure.float-right {
  width: 260px;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
}
figure.float-left { float: left; margin-right: 1.5rem; }
figure.float-right { float: right; margin-left: 1.5rem; }
@media (max-width: 560px) {
  figure.float-left, figure.float-right {
    float: none;
    width: 70%;
    margin: 0 auto 1.5rem;
  }
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--spruce);
  font-style: italic;
}

.callout {
  background: #fff;
  border: 2px solid var(--indigo);
  padding: 0.9rem 1.1rem;
  margin: 1.6rem 0;
  font-size: 0.95rem;
}
.callout p { margin: 0.3rem 0; }

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: 0.5rem; }

.pub-list { padding-left: 1.2rem; }
.pub-list li { margin-bottom: 0.9rem; }

.pres-list { list-style: none; padding: 0; margin: 0; }
.pres-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--slate);
  font-size: 0.95rem;
}
.pres-list .when {
  color: var(--indigo);
  font-weight: 600;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.1rem;
}

.podcast-grid {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}
.podcast-grid a { display: block; width: 140px; }
.podcast-grid img { border: 1px solid var(--slate); }
.podcast-grid span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.bio-portrait {
  float: right;
  width: 200px;
  margin: 0 0 1rem 1.5rem;
  border: 1px solid var(--slate);
}
@media (max-width: 560px) {
  .bio-portrait { float: none; width: 60%; margin: 0 auto 1.5rem; }
}

footer.site-footer {
  border-top: 1px solid var(--slate);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}
