@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-latin-700-normal.woff2") format("woff2");
}

:root {
  --journal-olive: #62602d;
  --journal-charcoal: #333;
  --journal-rule: #888;
  --journal-light: #eee;
  --journal-max: 1170px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--journal-charcoal);
  background: #fff;
  font-family: Lato, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: #454520;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: #000;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  color: #000;
  background: #fff;
  border: 2px solid #000;
}

.skip-link:focus {
  transform: none;
}

.site-utility {
  min-height: 34px;
  color: #eee;
  background: #303030;
  font-size: 0.88rem;
}

.site-utility__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(calc(100% - 2rem), var(--journal-max));
  min-height: inherit;
  margin: 0 auto;
}

.site-utility a {
  color: #fff;
  text-decoration: none;
}

.site-utility a:hover,
.site-utility a:focus-visible {
  text-decoration: underline;
}

.site-header__hero {
  min-height: clamp(110px, 8.1579vw, 155px);
  color: #fff;
  background-color: var(--journal-olive);
  background-image: url("../images/homeHeaderTitleImage_en_US.jpg");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.site-header__overlay {
  min-height: inherit;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(calc(100% - 2rem), var(--journal-max));
  min-height: inherit;
  margin: 0 auto;
  gap: 2rem;
}

.journal-brand {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(43%, 510px);
}

.journal-brand__university,
.journal-brand__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.primary-menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 1.35rem;
  list-style: none;
}

.primary-menu a {
  color: #fff;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
  text-decoration: underline;
}

.mobile-navigation {
  display: none;
}

.site-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(230px, 1fr);
  width: min(calc(100% - 2rem), var(--journal-max));
  margin: 0 auto;
  gap: 2.5rem;
}

.site-main,
.journal-sidebar {
  padding-block: 1.5rem 3rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.22;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
}

h1 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--journal-light);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
}

h2 {
  font-size: 1.55rem;
}

h3 {
  font-size: 1.3rem;
}

h4 {
  font-size: 1.05rem;
}

.entry-content {
  max-width: 75ch;
}

.entry-content,
.article-section {
  overflow-wrap: anywhere;
}

.entry-content img,
.article-section img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.entry-content table,
.article-section table {
  width: 100%;
  border-collapse: collapse;
}

.current-issue {
  margin-top: 3.25rem;
}

.table-of-contents-title {
  margin-bottom: 0;
  padding: 0.28rem 0.4rem;
  background: var(--journal-light);
}

.issue-section-title {
  margin: 0.9rem 0 0;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--journal-light);
}

.issue-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.7rem 0.25rem;
  gap: 1rem;
}

.issue-article__title,
.article-authors {
  margin: 0;
}

.article-authors {
  margin-top: 0.35rem;
}

.article-galleys {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.galley-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid #bbb;
  border-radius: 0.2rem;
  text-decoration: none;
}

.journal-sidebar {
  font-size: 0.95rem;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h2 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 4px solid var(--journal-rule);
  font-size: 1.25rem;
}

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

.journal-search label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.journal-search__controls {
  display: flex;
  gap: 0.4rem;
}

.journal-search input {
  min-width: 0;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #bbb;
}

.journal-search button {
  padding: 0.5rem 0.7rem;
  color: #fff;
  background: #777;
  border: 0;
}

.site-footer {
  color: #eee;
  background: #303030;
}

.site-footer a {
  color: #fff;
}

.site-footer__links,
.site-footer__legal {
  width: min(calc(100% - 2rem), var(--journal-max));
  margin: 0 auto;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 1.8rem;
  gap: 2rem;
}

.site-footer__links h2 {
  margin: 0 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #777;
  color: #aaa;
  font-size: 1.2rem;
}

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

.site-footer__legal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  background: #050505;
  box-shadow: 0 0 0 100vmax #050505;
  clip-path: inset(0 -100vmax);
  gap: 2rem;
}

.site-footer__legal::before {
  content: none;
}

.site-footer__legal > * {
  position: relative;
  z-index: 1;
}

.footer-marks {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-marks img {
  width: auto;
  max-width: 100px;
  max-height: 38px;
  object-fit: contain;
}

.issue-archive__year {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.issue-card,
.content-card {
  padding: 1rem;
  border: 1px solid #ddd;
}

.article-index,
.author-index {
  display: grid;
  gap: 0.75rem;
}

.site-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.author-index {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}

.author-index li {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #ddd;
}

.article-issue {
  margin: 0 0 0.5rem;
}

.article-section {
  margin-top: 2rem;
}

.article-metadata {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem 0;
  gap: 0.8rem 2rem;
}

.article-metadata div {
  display: flex;
  gap: 0.4rem;
}

.article-metadata dt {
  font-weight: 700;
}

.article-metadata dd {
  margin: 0;
}

.article-license {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .desktop-navigation {
    display: none;
  }

  .mobile-navigation {
    display: block;
  }

  .mobile-navigation summary {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(255 255 255 / 60%);
    cursor: pointer;
  }

  .mobile-navigation .primary-menu {
    position: absolute;
    right: 1rem;
    z-index: 10;
    display: grid;
    min-width: 220px;
    padding: 0.75rem;
    background: #3d3c1e;
    gap: 0.6rem;
  }

  .site-layout {
    grid-template-columns: 1fr;
  }

  .journal-sidebar {
    padding-top: 0;
  }
}

@media (max-width: 650px) {
  .site-header__hero {
    background-position: right center;
  }

  .site-header__inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .journal-brand {
    position: static;
    width: min(65%, 250px);
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 2px rgb(0 0 0 / 80%);
  }

  .journal-brand__university,
  .journal-brand__name {
    position: static;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  .journal-brand__university {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .journal-brand__name {
    margin-top: 0.2rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.1;
  }

  .mobile-navigation {
    margin-left: auto;
  }

  .mobile-navigation summary {
    background: rgb(61 60 30 / 94%);
  }

  .site-footer__legal {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-layout {
    width: min(calc(100% - 1.25rem), var(--journal-max));
  }

  .issue-article {
    grid-template-columns: 1fr;
  }

  .issue-archive__year,
  .author-index,
  .site-map-grid,
  .site-footer__links {
    grid-template-columns: 1fr;
  }

  .site-footer__legal {
    min-height: 165px;
  }

  .site-footer__legal::before {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
