/* Raul Rosello theme for LinkStack: same visual language as https://raulrosello.com
   (dark cinematic art backdrop, night/coal/cream/ochre palette, P052 serif like the book covers). */
@font-face { font-family: "P052"; src: url("extra/custom-assets/P052-Roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "P052"; src: url("extra/custom-assets/P052-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "P052"; src: url("extra/custom-assets/P052-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --night: #0b0c0e;
  --coal: #131518;
  --ash: #23262b;
  --smoke: #8f897f;
  --cream: #efe7d8;
  --cream-dim: color-mix(in oklab, #efe7d8 75%, transparent);
  --ochre: #b8955c;
  --ochre-light: #d2b27a;
  --serif: "P052", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  /* used by LinkStack's own markup */
  --accentColor: var(--cream);
  color-scheme: dark;
}

html {
  overflow-x: clip;
  background: var(--night);
}
body {
  position: relative;
  z-index: 0; /* own stacking context: backdrop pseudo-elements sit behind content */
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: transparent;
}

/* Backdrop, like the website hero: the Vol. I illustration, darkened and melting into night.
   Fixed pseudo-elements (works on iOS, where background-attachment: fixed does not). */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("extra/custom-assets/vol1.jpg") 50% 60% / cover no-repeat;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(11 12 14 / 0.72), rgb(11 12 14 / 0.55) 35%, rgb(11 12 14 / 0.82) 75%, var(--night));
}
/* Desktop: keep the art but darken the sides so the link column stays the focus */
@media (min-width: 1024px) {
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 90% at 50% 45%, transparent, rgb(11 12 14 / 0.6));
  }
}

::selection { background: var(--ochre); color: var(--night); }
:focus-visible { outline: 2px solid var(--ochre-light); outline-offset: 3px; }
a { color: var(--cream); text-decoration-color: var(--ochre); }
a:hover { color: var(--ochre-light); }

/* Layout */
.container {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}
.column { width: 100%; margin-top: 56px !important; }
.row::after { content: ""; display: table; clear: both; }

/* Avatar: a portrait or book cover, framed like the covers on the website */
#avatar {
  width: 112px !important;
  height: 112px !important;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 60px -15px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(239 231 216 / 0.15);
  margin-bottom: 20px;
}

/* Name */
h1 {
  margin: 0 0 10px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}
.badge { width: 18px; height: 18px; margin-left: 6px; vertical-align: 2px; filter: sepia(1) saturate(0.6); }

/* Bio */
.description-parent { padding-bottom: 32px !important; color: var(--cream-dim); font-size: 1.05rem; font-style: italic; }
.description-parent p:empty { display: none; }
.description-parent * { margin-bottom: 0.75em !important; }

/* Social icon row (if used) */
.social-icon-div { padding-bottom: 28px; }
.social-icon { color: var(--cream-dim); font-size: 22px; padding: 8px; }
.social-icon:hover { color: var(--ochre-light); }

/* Footer */
.footer, .footer a { color: var(--smoke); font-family: var(--serif); font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; text-decoration: none; }
.footer a:hover { color: var(--cream); }

/* Generic headings/text that blocks (heading/text links) can output: small ochre labels like the website */
h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ochre-light); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
p { color: var(--cream-dim); }
hr { border: 0; border-top: 1px solid var(--ash); margin: 24px 0; }

@media (max-width: 480px) {
  .column { margin-top: 36px !important; }
  h1 { font-size: 2rem; }
}
