/* Ettore Arpini — personal site */
:root {
  --bg: #faf7f2;
  --ink: #1c1a17;
  --muted: #7a746a;
  --line: #e3ddd2;
  --accent: #C0512E; /* terracotta accent */
  --titles: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; width: 100%; }
main { flex: 1; }
body.home main { display: flex; align-items: center; }
body.home .hero { padding: 60px 0 90px; }
body.home .hero h1 {
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.55;
  max-width: 26em;
}
.hero .aside {
  margin-top: 40px;
  font-size: 18px; font-style: italic;
  color: var(--muted);
}
.hero .aside a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.hero .aside a:hover { color: var(--accent); }

/* ---- Nav ---- */
header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 40px 0 0;
}
.brand {
  font-family: var(--titles);
  font-size: 14px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
nav { display: flex; gap: 28px; align-items: baseline; }
nav a {
  font-family: "Inter", sans-serif;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .15s;
}
nav a:hover { color: var(--ink); }
nav a.active { color: var(--accent); }
.lang-toggle {
  font-family: "Inter", sans-serif;
  font-size: 12px; letter-spacing: .12em;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; cursor: pointer; color: var(--muted);
  transition: color .15s, border-color .15s;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--muted); }

/* ---- Hero (home) ---- */
.hero { padding: 120px 0 90px; }
.hero h1 {
  font-family: var(--titles);
  font-weight: 400;
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 21em;
}
.hero h1 em { font-style: italic; }
.hero .email {
  display: inline-block; margin-top: 36px;
  font-size: clamp(22px, 3vw, 30px); font-style: italic;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.hero .email:hover { border-color: var(--accent); }

/* ---- Page sections ---- */
section { padding: 70px 0; }
section + section { border-top: 1px solid var(--line); }
.page-title {
  font-family: var(--titles);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 46px);
  letter-spacing: -0.015em;
  padding: 80px 0 0;
}
.label {
  font-family: "Inter", sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}

/* Lead paragraph + button */
.lead { max-width: 640px; font-size: 20px; margin-bottom: 28px; }
.btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 10px 22px;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent); color: var(--bg); }

/* Inline links in prose */
.about a, .hero a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .15s;
}
.about a:hover, .hero a:hover { color: var(--accent); }

/* Writing list */
.writing-list { list-style: none; }
.writing-list li { border-bottom: 1px solid var(--line); }
.writing-list li:last-child { border-bottom: none; }
.writing-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 20px 0;
  color: var(--ink); text-decoration: none;
}
.writing-list .title {
  font-family: var(--titles);
  font-size: 22px; font-weight: 400;
  transition: color .15s;
}
.writing-list a:hover .title { color: var(--accent); }
.writing-list .meta {
  font-family: "Inter", sans-serif;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

/* About */
.about p { max-width: 620px; font-size: 20px; margin-bottom: 22px; }
.about p:last-child { margin-bottom: 0; }

/* Experience — arrow lines */
.exp { list-style: none; max-width: 640px; }
.exp li { padding: 10px 0; font-size: 19px; }
.exp .role { font-weight: 500; }
.exp .arrow { color: var(--muted); padding: 0 6px; }
.exp .where { color: var(--muted); }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 60px 0 80px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.sig {
  font-family: var(--titles);
  font-size: 21px; line-height: 1.5;
}
.socials { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.socials a {
  font-family: "Inter", sans-serif;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .15s;
}
.socials a:hover { color: var(--ink); }
.copyright {
  margin-top: 48px;
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 640px) {
  .hero { padding: 80px 0 60px; }
  .page-title { padding: 56px 0 0; }
  nav { gap: 16px; }
  .writing-list a { flex-direction: column; gap: 4px; align-items: flex-start; }
  .socials { align-items: flex-start; }
}
