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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height);
  min-height: 100vh;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 8%;
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ─── Page ─────────────────────────────────────────────── */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Shared outer padding applied to header/content/footer */
.header,
.section,
.footer {
  padding-inline: var(--spacing-h);
}

/* Centered inner wrapper caps content at max-width */
.header__inner,
.section__inner,
.footer__inner {
  max-width: var(--max-content-width);
  margin-inline: auto;
  width: 100%;
}

/* ─── Header ────────────────────────────────────────────── */

.header__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: var(--spacing-header-v);
  border-bottom: 1px solid var(--color-border);
}

.header__name {
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-light);
  line-height: normal;
}

.header__subtitle {
  font-size: var(--font-size-l);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height);
}

/* ─── Content ───────────────────────────────────────────── */

.content {
  flex: 1;
}

/* ─── Section (shared) ──────────────────────────────────── */

.section__inner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-section-gap);
  padding-block: var(--spacing-section-v);
  border-bottom: 1px solid var(--color-border);
}

.section:last-child .section__inner {
  border-bottom: none;
}

.section__label {
  font-size: var(--font-size-l);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height);
}

/* ─── Contact ───────────────────────────────────────────── */

.contact__columns {
  display: flex;
  gap: var(--spacing-col-gap);
  align-items: flex-start;
}

.contact__col {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height);
}


/* ─── Publications ──────────────────────────────────────── */

.publications {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-pub-gap);
}

.publication {
  display: flex;
  flex-direction: column;
}

.publication__title {
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height);
}

.publication__source {
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height);
}

/* ─── Footer ────────────────────────────────────────────── */

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: var(--spacing-footer-top);
  padding-bottom: var(--spacing-footer-v);
  border-top: 1px solid var(--color-border);
}

.footer__nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer__nav-item {
  font-size: var(--font-size-s);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height);
}

.footer__copyright {
  font-size: var(--font-size-s);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height);
}

/* ─── Header logo link ──────────────────────────────────── */

.header__logo-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.header__logo-link:hover {
  text-decoration: none;
}

/* ─── Section text body ─────────────────────────────────── */

.section__text {
  width: 100%;
}

.section__text p {
  margin-bottom: 1.4em;
}

.section__text p:last-child {
  margin-bottom: 0;
}

/* ─── Bullet list ───────────────────────────────────────── */

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  padding-bottom: 6px;
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height);
}

.bullet-list li::before {
  content: '•';
  flex: 0 0 40px;
  line-height: var(--line-height);
}

.bullet-list li:last-child {
  padding-bottom: 0;
}

/* ─── Mobile ────────────────────────────────────────────── */

@media (max-width: 959px) {
  .contact__columns {
    flex-wrap: wrap;
    --spacing-col-gap: 40px;
  }

  .contact__col {
    min-width: 200px;
  }
}

@media (max-width:569px) {
  .bullet-list li{
    padding-bottom: 0px;
  }
  .bullet-list li::before {
    flex: 0 0 24px;
  }
  .contact__columns {
    flex-direction: column;
  }
}
