:root {
  --ink: #181b1f;
  --muted: #5f6872;
  --line: #d9ded8;
  --paper: #fbfaf7;
  --accent: #7a2539;
  --accent-dark: #541a28;
  --green: #22483f;
  --green-soft: #edf3ef;
  --gold: #a9781f;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.58;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-dark);
}

.page-shell {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
  padding: 54px 0 34px;
  border-bottom: 2px solid var(--ink);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.portrait {
  width: 210px;
  height: auto;
  aspect-ratio: 534 / 800;
  object-fit: contain;
  object-position: center top;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  font-weight: 750;
}

.quick-links a {
  color: var(--ink);
  text-decoration-color: rgba(24, 27, 31, 0.25);
}

.quick-links a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section-title,
.two-column {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 1.12rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 12px;
}

.bio-copy {
  max-width: 720px;
}

.bio-copy p {
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.filter:hover,
.filter.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.paper-group {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  padding-top: 28px;
}

.paper-group[hidden],
.paper[hidden],
.empty-state[hidden] {
  display: none;
}

.papers {
  margin: 0;
  padding-left: 1.45rem;
}

.paper {
  margin-bottom: 18px;
  padding-left: 4px;
}

.paper::marker {
  color: var(--accent);
  font-weight: 800;
}

.paper-title {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.paper-title:hover {
  color: var(--accent);
}

.paper p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.97rem;
}

.paper-note {
  color: var(--green) !important;
}

.links,
.media {
  color: var(--ink);
}

.links a,
.media a {
  margin-left: 5px;
  font-weight: 750;
}

.empty-state {
  margin: 24px 0 0 224px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
}

.two-column p {
  color: var(--muted);
}

.cv-links,
.contact-list,
.profile-links {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-links {
  width: min(100%, 560px);
  gap: 10px;
}

.profile-links a {
  display: grid;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.profile-links a:hover {
  border-color: var(--accent);
}

.link-label {
  color: var(--accent);
  font-weight: 850;
}

.link-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  color: #fff;
}

.text-link {
  font-weight: 750;
}

address {
  color: var(--muted);
  font-style: normal;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .masthead,
  .section-title,
  .two-column,
  .paper-group,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .masthead {
    align-items: start;
  }

  .portrait {
    width: 160px;
    height: auto;
    grid-row: 1;
  }

  .empty-state {
    margin-left: 0;
  }

  .footer {
    flex-direction: column;
  }
}
