@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/playfair.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/playfair-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Caudex";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/caudex-400.woff2") format("woff2");
}
@font-face {
  font-family: "Caudex";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/caudex-700.woff2") format("woff2");
}
@font-face {
  font-family: "Caudex";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/caudex-italic-400.woff2") format("woff2");
}
@font-face {
  font-family: "Caudex";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/caudex-italic-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/nunito-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("/fonts/nunito-sans-italic.woff2") format("woff2");
}

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #515151;
  --soft: #f5f5f5;
  --line: #e6e6e6;
  --coral: #ff5c5c;
  --serif: "Playfair Display", "Times New Roman", Times, serif;
  --body: "Caudex", Palatino, "Palatino Linotype", "Book Antiqua", serif;
  --sans: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 42rem;
  --page: 980px;
  --header-offset: 0px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

a:hover { color: #9d1c1c; }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0;
  transform: translateY(-120%);
  background: #000;
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 10;
  text-decoration: none;
}
.skip:focus { transform: none; }

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

.site-header {
  background: #fff;
  color: #000;
}

.header-top,
.nav-row,
.band,
.essay,
.substack,
.recent,
.archive-inner,
.contact-inner,
.page-wrap,
.post,
.blog-wrap {
  width: min(var(--page), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.35rem 0 0.85rem;
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  text-decoration: none;
  color: #000;
  display: inline-block;
}
.wordmark:hover { color: #000; }

.tagline {
  margin: 0.35rem 0 0;
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 400;
}
.tagline span { display: block; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 0 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-switch a.current {
  color: var(--ink);
  border-bottom-color: #7d1e1e;
}
.lang-switch a:hover { color: #7d1e1e; }
.lang-switch .sep {
  color: #8a8a8a;
  padding: 0 0.15rem;
}

.header-rule {
  border: 0;
  border-top: 1px solid #000;
  margin: 0;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0 0.85rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.92rem;
  color: #2e2e2e;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-list a:hover { color: #000; }
.nav-list a[aria-current="page"] {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.btn {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
}
.btn:hover { background: #000; color: #fff; }
.btn-coral {
  background: var(--coral);
  border-color: var(--coral);
  color: #1a1a1a;
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  font-style: italic;
}
.btn-coral:hover { background: #e14b4b; color: #1a1a1a; border-color: #e14b4b; }
.btn-light {
  background: #fff;
  color: #000;
  border-color: #fff;
  min-width: min(100%, 28rem);
  text-align: center;
}
.btn-light:hover { background: var(--coral); border-color: var(--coral); color: #1a1a1a; }

.hero {
  position: relative;
  height: clamp(280px, 42vw, 560px);
  display: grid;
  place-items: center;
  background: #1b1b1b;
  overflow: hidden;
}
.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-quote {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero h1 {
  margin: 0 auto;
  padding: 1rem;
  max-width: 16ch;
  text-align: center;
  color: #fff;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
html[lang="en"] .hero h1 {
  font-size: clamp(1.45rem, 3.3vw, 3.15rem);
  max-width: min(27ch, 92vw);
}
.hero-original {
  margin: 0.55rem auto 1rem;
  max-width: 34ch;
  padding: 0 1rem;
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
html[lang="it"] .hero h1 {
  font-size: clamp(1.3rem, 3.1vw, 2rem);
  max-width: min(36ch, 92vw);
  padding: 0.5rem 1rem 0.15rem;
  line-height: 1.2;
}
html[lang="it"] .hero-original {
  font-size: clamp(1.12rem, 2.5vw, 1.55rem);
  max-width: min(40ch, 92vw);
  margin: 0.25rem auto 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.substack,
.essay { text-align: center; }

.substack { padding: 3.2rem 0 1rem; }
.substack h2,
.essay h2,
.bio h2,
.page-wrap h1,
.archive-inner h1,
.contact-inner h1,
.blog-wrap h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.substack h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
}
.kicker {
  font-family: var(--body);
  font-style: italic;
  font-size: 1.2rem;
  margin: 0.2rem 0 0.4rem;
}
.substack .kicker { font-size: 1.25rem; }
.substack-url {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--muted);
}

.vitruvian {
  width: min(220px, 58vw);
  height: min(220px, 58vw);
  object-fit: cover;
  border-radius: 50%;
  margin: 2.2rem auto 1.4rem;
  display: block;
}

.essay { padding-bottom: 2.5rem; }
.essay h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin: 0.4rem 0 0.2rem;
  letter-spacing: 0.04em;
}
.prose.centered,
.essay .prose,
.bio .prose,
.archive-inner .prose,
.contact-inner,
.page-links .page-wrap,
.page-subscribe .page-wrap {
  text-align: center;
}
.essay .prose,
.bio .prose {
  max-width: 46rem;
  margin: 0.8rem auto 0;
  font-size: 1rem;
  line-height: 1.55;
}
.essay .prose p,
.bio .prose p { margin: 0 0 1rem; }

.recent { padding: 0.5rem 0 3rem; position: relative; }
.recent-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.recent-bar button {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #000;
  background: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.recent-bar button:hover { background: #000; color: #fff; }
.recent-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.card {
  flex: 0 0 min(440px, 82vw);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #111;
}
.card-title {
  display: block;
  margin-top: 0.65rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.35;
}

.bio {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 3.5rem 1rem 4rem;
}
.bio h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.16em;
  margin: 0.4rem 0 0.2rem;
}
.bio .kicker { color: #fff; }
.portrait {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1rem;
}

main.theme-dark {
  background: #000;
  color: #fff;
}
main.theme-dark a { color: #fff; }
main.theme-dark a:hover { color: var(--coral); }

.emblem { text-align: center; margin: 0; padding: 3rem 1rem 0.5rem; }
.emblem img { width: min(280px, 68vw); height: auto; }

.theme-dark .band,
.page-wrap,
.archive-inner,
.contact-inner {
  padding: 2.5rem 0 4.5rem;
}
.theme-dark h1,
.page-wrap h1,
.archive-inner h1,
.contact-inner h1,
.blog-wrap h1 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.4rem 0 0.35rem;
}
.theme-dark .kicker { color: #fff; }
.theme-dark .prose {
  max-width: 46rem;
  margin: 1rem auto 0;
  font-size: 1rem;
  line-height: 1.55;
}

.page-wrap { padding-top: 3rem; padding-bottom: 4rem; }
.writing-list {
  list-style: none;
  margin: 1.6rem auto 0;
  padding: 0;
  max-width: 40rem;
}
.writing-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.writing-list li:last-child { border-bottom: 1px solid var(--line); }
.writing-list a {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  text-decoration: none;
}
.writing-list a:hover { text-decoration: underline; }
.writing-list time {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}
.page-wrap .prose,
.archive-inner .prose {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}
.page-cdc .prose,
.page-subscribe .prose { text-align: left; }
.page-cdc h1,
.page-subscribe h1,
.page-blog h1 { text-align: center; }
.page-subscribe .prose { text-align: center; }

.prose { overflow-wrap: anywhere; }
.prose h2, .prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
  margin: 1.8rem 0 0.6rem;
}
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { text-align: left; margin: 0 auto 1rem; padding-left: 1.25rem; max-width: 40rem; }
.prose li { margin: 0.35rem 0; }
.prose blockquote {
  margin: 1.2rem auto;
  max-width: 40rem;
  font-style: italic;
}
.prose a { text-underline-offset: 0.15em; }
.prose figure { margin: 1.4rem auto; }
.prose figcaption,
figcaption {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.4rem;
}
main.theme-dark figcaption { color: #cfcfcf; }
.prose img { display: block; margin: 0 auto; }
.fn a, .fn-def { text-decoration: none; }
.fn a { font-family: var(--sans); font-size: 0.75rem; }

.pdf-list, .archive-inner ul {
  text-align: left;
  max-width: 40rem;
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
}
.archive-inner li { margin: 0.7rem 0; }
.archive-inner a { text-underline-offset: 0.18em; }

.page-links .prose h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 0.85rem 0;
}
.page-links .prose h2 a { text-decoration: none; }
.page-links .prose h2 a:hover { text-decoration: underline; }

.contact-inner address {
  font-style: normal;
  margin: 1.4rem 0;
  line-height: 1.7;
}
.contact-inner address a { text-decoration: none; }
.contact-inner address a:hover { text-decoration: underline; }
.xid {
  margin: 1.8rem 0 0;
  line-height: 1.7;
}
.xid p { margin: 0.15rem 0; }
.xid a { text-decoration: none; }
.xid a:hover { text-decoration: underline; }
.map-wrap {
  margin: 1.5rem auto 0;
  max-width: 720px;
}
.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  background: #222;
}
.social {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}
.social a {
  display: inline-flex;
  width: 1.6rem;
  height: 1.6rem;
  color: inherit;
}
.social svg { width: 100%; height: 100%; fill: currentColor; }

.blog-wrap { padding: 2.5rem 0 4rem; }
.blog-tools {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 1.5rem;
}
.blog-tools input {
  font-family: var(--sans);
  font-size: 1rem;
  width: min(28rem, 100%);
  padding: 0.55rem 0.7rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
}
.post-list { list-style: none; margin: 0; padding: 0; }
.post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.post-card:last-child { border-bottom: 1px solid var(--line); }
.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #eee;
}
.post-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}
.post-card p { margin: 0 0 0.45rem; color: #2e2e2e; font-size: 0.98rem; }
.post-card time, .meta {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--muted);
}
.filter-empty { text-align: center; color: var(--muted); }

.post { padding: 2.6rem 0 4rem; }
.post-header h1 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 0.6rem;
}
.post .meta { margin: 0 0 1.2rem; }
.post .prose { max-width: 40rem; font-size: 1.05rem; line-height: 1.7; }
.post .prose h2 { font-size: 1.45rem; }
.post .back {
  margin-top: 2rem;
  font-family: var(--sans);
  font-weight: 300;
}
.alt-lang {
  display: inline-block;
  margin-left: 0.8rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.now {
  text-align: center;
  padding: 2.4rem 0 0.4rem;
}
.now .kicker { margin-bottom: 0.6rem; }
.project-links {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  margin: 1rem 0 0;
}
.project-links a { text-underline-offset: 0.18em; }

.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.6rem 0 1.2rem;
  text-align: left;
}
.feed-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.feed-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #111;
}
.feed-card .card-title {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
}
.feed-card .card-date {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-page .page-wrap .prose h1,
.page-archive-home .archive-inner h1 {
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.2rem;
  padding: 1.2rem 1rem 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.footer-nav a {
  text-decoration: none;
  padding: 0 0.45rem;
}
.footer-nav a:hover { text-decoration: underline; }

.site-footer { background: #fff; color: #000; }
.footer-social { padding: 1.4rem 1rem 1.2rem; }
.copyright {
  background: #000;
  color: #fff;
  text-align: center;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 0.7rem 1rem;
}

.not-found {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}
.not-found h1 { font-family: var(--serif); font-weight: 500; font-size: 2.4rem; }

@media (max-width: 720px) {
  .header-top { flex-wrap: wrap; }
  .nav-row { align-items: flex-start; flex-direction: column; }
  .feed-grid { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .writing-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .essay .prose, .bio .prose, .theme-dark .prose { text-align: left; }
  .substack, .essay, .page-links .page-wrap, .page-subscribe .page-wrap, .contact-inner, .archive-inner { text-align: left; }
  .substack h2, .essay h2, .contact-inner h1, .archive-inner h1, .page-wrap h1, .blog-wrap h1, .theme-dark h1 {
    text-align: left;
  }
  .page-links .prose h2 { text-align: left; }
  .btn-light { min-width: 0; width: 100%; }
}

@media print {
  .site-header, .site-footer, .recent-bar, .skip, .blog-tools { display: none; }
  body { font-size: 12pt; }
  a { text-decoration: underline; }
}
