:root {
  --accent: #b21f24;
  --accent-soft: #f5e1dc;
  --bg: #f6f2ea;
  --card: #fffdf9;
  --text: #1f1b17;
  --muted: #675f55;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(20, 10, 8, 0.07);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 420px at 95% -5%, var(--accent-soft), transparent 55%),radial-gradient(800px 400px at 5% 5%, #f1e8d9, transparent 55%),url('../assets/img/background.jpg'),var(--bg);
  background-size: auto, auto, auto, auto;
  background-position: 95% -5%, 5% 5%, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  font-family: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1050px, 92vw);
  margin: 0 auto;
  padding: 24px 0 52px;
}

.hero {
  background: transparent;
  border: 1px solid #eadfd4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #ffffff, #fff6ef);
  opacity: 1.000;
  z-index: 0;
  pointer-events: none;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
}
.hero .headline {
  color: var(--muted);
  margin-top: 8px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.pill {
  border: 1px solid #d9cbc0;
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  font-size: 0.95rem;
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}
.quick-nav a {
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--accent-soft);
  color: #5e1c1e;
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 16px;
}
.card {
  background: transparent;
  border: 1px solid #e9ddd2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card);
  opacity: var(--section-bg-opacity, 1);
  z-index: 0;
  pointer-events: none;
}
.card > * {
  position: relative;
  z-index: 1;
}
.grid > .card:nth-child(odd) {
  --tilt: -0.45deg;
}
.grid > .card:nth-child(even) {
  --tilt: 0.45deg;
}
.card:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 22px 44px rgba(20, 10, 8, 0.10);
}
.card h2 {
  margin: 0 0 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  border-bottom: 1px solid #eadfd4;
  padding-bottom: 8px;
}
.entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  margin-top: 10px;
}
.entry-right { color: var(--muted); }
.subentry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #36322d;
  margin: 2px 0 6px;
}
ul { margin: 8px 0; padding-left: 20px; }
li { margin: 6px 0; }
.pub-list { margin: 10px 0; padding-left: 24px; }
.item-title { font-style: italic; }
.title-link .item-title { text-decoration: underline; text-underline-offset: 2px; }
.section-media {
  margin: 0 auto 14px;
  width: 360px;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8dbcf;
}
.section-media img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  display: block;
}
.footer {
  text-align: center;
  color: #4a453e;
  margin: 18px auto 0;
  font-size: 0.9rem;
  background: rgba(255, 253, 249, 1.000);
  border: 1px solid #e4d7ca;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(20, 10, 8, 0.08);
  padding: 10px 14px;
  display: block;
  width: fit-content;
  max-width: 100%;
}

@media (max-width: 760px) {
  .grid > .card:nth-child(odd),
  .grid > .card:nth-child(even) {
    --tilt: 0deg;
  }
  .entry, .subentry {
    flex-direction: column;
    gap: 2px;
  }
}
