:root {
  --ink: #111;
  --ink-soft: #444;
  --rule: #111;
  --paper: #fff;
  --wash: rgba(255, 255, 255, 0.74);
  --serif: "EB Garamond", "Garamond", "Times New Roman", Georgia, serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  font-size: 20px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- Front page ---------- */

.home {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wash);
}

.home-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  text-align: center;
}

.home h1 {
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.01em;
  margin: 0 0 0.2rem;
  line-height: 1.1;
}

.tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
  font-style: italic;
}

.boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 auto 2.5rem;
  max-width: 720px;
}

.box {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.72);
  padding: 2.2rem 1rem;
  font-size: 1.45rem;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
}

.box:hover, .box:focus-visible {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.bio {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.bio p { margin: 0 0 0.6rem; }

.bio a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-color: #999; }
.bio a:hover { text-decoration-color: var(--ink); color: var(--ink); }

.social {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.social a { margin: 0 0.5rem; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .boxes { grid-template-columns: 1fr; max-width: 360px; gap: 0.75rem; }
  .box { padding: 1.4rem 1rem; font-size: 1.3rem; }
  .tagline { margin-bottom: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bg video { display: none; }
  .bg { background: url("../video/poster.jpg") center / cover no-repeat; }
}

/* ---------- Inner pages ---------- */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.8rem;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.topnav .name { font-size: 1.35rem; }

.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
  font-size: 1.05rem;
}

.topnav li.current a { text-decoration: underline; text-underline-offset: 0.2em; }

.page h1 {
  font-weight: 400;
  font-size: 2.2rem;
  margin: 0 0 2rem;
  line-height: 1.1;
}

/* Books */

.book {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.75rem;
  margin-bottom: 3rem;
  align-items: start;
}

.book .cover {
  display: block;
  width: 150px;
}

.book .cover img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd;
}

.book h2 {
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.book .meta {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.book p { margin: 0 0 0.75rem; }

.book .links { font-size: 1rem; }
.book .links a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-color: #999; margin-right: 1rem; }
.book .links a:hover { text-decoration-color: var(--ink); }

@media (max-width: 560px) {
  .book { grid-template-columns: 110px 1fr; gap: 1.1rem; }
  .book .cover { width: 110px; }
}

/* Articles and media lists */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid #e4e4e4;
}

.list li:first-child { border-top: 1px solid #e4e4e4; }

.list .title { display: block; }
.list .title:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.list .outlet {
  display: block;
  color: var(--ink-soft);
  font-size: 1rem;
  margin-top: 0.15rem;
}

.list .outlet a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-color: #bbb; }
.list .outlet a:hover { text-decoration-color: var(--ink); color: var(--ink); }

.section-label {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 2.5rem 0 0.6rem;
}

.section-label:first-of-type { margin-top: 0; }

.foot {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--ink-soft);
}
