/* paoloderosa.eu
   Token allineati a cyberverso-theme, pesi invertiti: qui il corpo è mono
   e il serif compare una volta sola, sul nome. Nessun JavaScript. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-variable.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --cv-ink: #0c0a08;
  --cv-cream: #e8e4d9;
  --cv-amber: #ff8c42;
  --cv-body: rgba(232, 228, 217, 0.86);
  --cv-muted: rgba(232, 228, 217, 0.52);
  --cv-rule: rgba(232, 228, 217, 0.13);
  --cv-underline: rgba(232, 228, 217, 0.2);

  --cv-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --cv-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --cv-gutter: 2.4rem;
}

html { font-size: 62.5%; }
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cv-ink);
  color: var(--cv-cream);
  font-family: var(--cv-mono);
  font-size: 1.5rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 92rem;
  margin: 0 auto;
  padding: var(--cv-gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--cv-underline);
  transition: color 140ms ease, border-color 140ms ease;
}
a:hover, a:focus-visible {
  color: var(--cv-amber);
  border-bottom-color: var(--cv-amber);
}
a:focus-visible {
  outline: 2px solid var(--cv-amber);
  outline-offset: 3px;
}
a.accent { color: var(--cv-amber); border-bottom-color: var(--cv-amber); }

.slash { color: var(--cv-amber); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.6rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--cv-muted);
  padding-bottom: 3rem;
}
.topbar a { border-bottom: none; }
.topbar .here { color: var(--cv-cream); }

.name {
  font-family: var(--cv-serif);
  font-weight: 500;
  font-size: clamp(4.2rem, 11vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 3.4rem;
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 4.4rem;
  align-items: start;
  padding-bottom: 4.8rem;
}

.bio p {
  margin: 0 0 1.5rem;
  max-width: 52ch;
  color: var(--cv-body);
}
.bio p:last-child { margin-bottom: 0; }

.attrs {
  border-top: 1px solid var(--cv-rule);
  padding-top: 1.7rem;
}
.attrs dl {
  margin: 0;
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.9rem 1.5rem;
  font-size: 1.4rem;
}
.attrs dt {
  color: var(--cv-muted);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
}
.attrs dd { margin: 0; overflow-wrap: anywhere; }

.foot {
  margin-top: auto;
  border-top: 1px solid var(--cv-rule);
  padding-top: 1.6rem;
  font-size: 1.2rem;
  line-height: 1.65;
  color: rgba(232, 228, 217, 0.5);
}
.foot p { margin: 0; max-width: 66ch; }

@media (max-width: 46rem) {
  :root { --cv-gutter: 1.8rem; }
  .cols { grid-template-columns: 1fr; gap: 3.2rem; }
  .attrs dl { grid-template-columns: 7.2rem minmax(0, 1fr); }
  .bio p { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; }
}
