@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400&family=Barlow:wght@600&family=Hanken+Grotesk:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Variables ── */

:root {
  --masthead-h: 47px;
  --black:      #000000;
  --white:      #ffffff;
  --sage-light: #D9E3DA;
  --sage:       #A7BEA9;
  --sage-dark:  #3d6b50;
  --sidebar-w:  280px;
}

/* ── Reset & Base ── */

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

body {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--black);
  line-height: 1.7;
  font-size: 17px;
}

/* ── Headings ── */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
}

h1 { font-size: 2.2rem; margin-top: 0; margin-bottom: 0.5rem; }
h2 { font-size: 1.4rem; border-bottom: 2px solid var(--sage); padding-bottom: 0.35rem; margin-top: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }

p { margin: 0 0 1rem; }

strong { font-weight: 400; }

a {
  color: var(--sage-dark);
  text-decoration: none;
  font-weight: 400;
}

a:hover {
  color: var(--black);
}

ul, ol { padding-left: 1.4rem; margin: 0 0 1rem; }
li { margin-bottom: 0.3rem; }

/* ── Masthead ── */

.masthead {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--masthead-h);
  display: flex;
  align-items: stretch;
}

.masthead-nav {
  display: flex;
  align-items: stretch;
  padding: 0 1rem;
}

.masthead-nav a {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.masthead-nav a:hover {
  color: var(--white);
  border-bottom-color: var(--sage);
}

/* ── Full-width wrapper ── */

.wrapper {
  display: flex;
  min-height: calc(100vh - var(--masthead-h));
}

/* ── Sidebar ── */

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sage-light);
  padding: 2.5rem 1.5rem;
  position: sticky;
  top: var(--masthead-h);
  height: calc(100vh - var(--masthead-h));
  overflow-y: auto;
}

.author-profile {
  text-align: center;
}

.author__avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
}

.author__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
}

.author__bio {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

/* Social links list */

.author__urls {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.author__urls li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author__urls li.author__info {
  color: #555;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 300;
}

.author__urls li a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 300;
  transition: color 0.15s;
}

.author__urls li a:hover {
  color: var(--black);
  text-decoration: none;
}

.author__urls i {
  color: var(--sage);
  width: 1.2em;
  text-align: center;
  flex-shrink: 0;
}

/* ── Main content ── */

.main-content {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 3.5rem;
}

/* ── News table ── */

.news-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}

.news-table tr:last-child td {
  border-bottom: none;
}

.news-table td {
  padding: 0.5rem 0;
  vertical-align: top;
  border-bottom: 1px solid #efefef;
  font-size: 0.95rem;
}

.news-table td:first-child {
  white-space: nowrap;
  color: var(--sage);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-right: 1.5rem;
  min-width: 90px;
}

/* ── Publications ── */

.publication {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ebebeb;
}

.publication:last-child {
  border-bottom: none;
}

.publication__title {
  font-weight: 400;
  font-size: 1rem;
  margin: 0 0 0.2rem;
  color: var(--black);
  line-height: 1.4;
}

.publication__authors {
  font-size: 0.88rem;
  color: #555;
  margin: 0 0 0.15rem;
}

.publication__venue {
  font-size: 0.88rem;
  color: #777;
  font-style: italic;
  margin: 0 0 0.5rem;
}

.publication__links a {
  display: inline-block;
  margin-right: 0.4rem;
  margin-bottom: 0.2rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border: 1px solid var(--sage-dark);
  border-radius: 2px;
  color: var(--sage-dark);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.publication__links a:hover {
  background: var(--sage-dark);
  color: var(--white);
  text-decoration: none;
}

/* ── Button ── */

a.button {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: var(--black);
  color: var(--white) !important;
  border-radius: 2px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none !important;
  transition: background 0.15s;
  margin-top: 0.25rem;
}

a.button:hover {
  background: var(--sage);
  color: var(--white) !important;
}

/* ── Contact page ── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-intro h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.contact-intro p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.75;
}

/* Contact form */

.contact-form .form-group {
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid #ccc;
  border-radius: 2px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(167, 190, 169, 0.25);
}

.form-submit {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 2px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.25rem;
}

.form-submit:hover {
  background: var(--sage);
}

/* ── CV page ── */

.cv-downloads {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cv-entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 1.5rem;
  margin-bottom: 1.25rem;
}

.cv-entry__date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  padding-top: 0.15rem;
  white-space: nowrap;
}

.cv-entry__body p {
  margin: 0 0 0.15rem;
}

.cv-entry__title {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 0.2rem;
}

.cv-entry__sub {
  font-size: 0.88rem;
  color: #555;
}

.cv-entry__detail {
  font-size: 0.88rem;
  color: #666;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: unset;
    position: static;
    height: auto;
  }

  .main-content {
    padding: 1.5rem;
  }

  .masthead-nav a {
    padding: 0 0.65rem;
    font-size: 0.78rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
