/* Federico Taiano — minimal moderno
   Tokens: white #FFFFFF · ink #101317 · gray #70767D · hairline #EBEDEF · accent #1D4ED8 */

:root {
  --bg: #FFFFFF;
  --ink: #101317;
  --gray: #70767D;
  --hairline: #EBEDEF;
  --accent: #1D4ED8;
  --max: 42rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, system-ui, sans-serif;
  font-size: 1.03rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Header ── */
header.site { padding: 1.4rem 0; }
header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
nav.site a {
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: none;
  margin-left: 1.4rem;
  transition: color 120ms ease;
}
nav.site a:hover, nav.site a:focus-visible { color: var(--ink); }

/* ── Metadata ── */
.meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-transform: uppercase;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.meta .sep { color: var(--hairline); }
.meta .tag { color: var(--accent); }

/* ── Hero ── */
.hero { padding: 6rem 0 4.5rem; }
.hero h1 {
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 1.1rem 0 1.3rem;
}
.hero p.lede {
  font-size: 1.18rem;
  line-height: 1.6;
  max-width: 34rem;
  color: var(--gray);
  letter-spacing: -0.01em;
}

/* ── Sections ── */
section { padding: 3.2rem 0; }
section .wrap { border-top: 1px solid var(--hairline); padding-top: 3rem; }
section h2 {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  color: var(--gray);
  margin: 0.8rem 0 1.5rem;
}
section p { max-width: 38rem; }
section p + p { margin-top: 1.05rem; }

.en-note {
  margin-top: 2rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--hairline);
}
.en-note p { font-size: 0.95rem; color: var(--gray); }

/* ── Insights list ── */
.insight { padding: 1.5rem 0; border-top: 1px solid var(--hairline); }
.insight:first-of-type { border-top: none; padding-top: 0; }
.insight h3 {
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0.5rem 0 0.4rem;
}
.insight h3 a { color: var(--ink); text-decoration: none; transition: color 120ms ease; }
.insight h3 a:hover, .insight h3 a:focus-visible { color: var(--accent); }
.insight p { font-size: 0.95rem; color: var(--gray); max-width: 36rem; }

/* ── Article pages ── */
article.post { padding: 4.5rem 0 2.5rem; }
article.post h1 {
  font-weight: 600;
  font-size: clamp(1.8rem, 5.5vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 1.1rem 0 2rem;
}
article.post h2 {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin: 2.4rem 0 0.9rem;
}
article.post p { max-width: 38rem; }
article.post p + p { margin-top: 1.05rem; }
article.post .back {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
}
article.post .back:hover { color: var(--accent); }

/* ── Contact / footer ── */
.contact a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hairline); transition: text-decoration-color 120ms ease; }
.contact a:hover, .contact a:focus-visible { text-decoration-color: var(--accent); }

footer.site { margin-top: 3rem; padding: 2rem 0 3rem; }
footer.site .wrap {
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
footer.site p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--gray);
}

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