/* values mirror the neve customizer settings exported from wordpress;
   breakpoints follow neve: tablet below 960px, mobile below 576px */
:root {
  --text: #000;
  --link: #0a0a0a;
  --link-hover: #4f4f4f;
  --light-bg: #ededed;
  --dark-bg: #14171c;
  --container: 1170px;
  --narrow: 790px;
}

* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.7 Poppins, system-ui, sans-serif; color: var(--text); }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: 75px; }
h2 { font-size: 50px; }
h3 { font-size: 30px; line-height: 1.6; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
p, ul, ol, table, figure, blockquote { margin: 0 0 1.4em; }
li { margin-bottom: 0.5em; }
figure { margin-left: 0; margin-right: 0; }
figcaption, figure + p > em:only-child { font-size: 14px; color: var(--link-hover); }
hr { border: 0; border-top: 2px solid var(--text); margin: 2em 0; }
hr.dots { border: 0; text-align: center; }
hr.dots::before { content: "\00b7 \00b7 \00b7"; font-size: 40px; line-height: 1; letter-spacing: 0.4em; }
blockquote { border-left: 4px solid var(--text); padding-left: 1em; font-style: italic; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
td, th { border: 1px solid var(--light-bg); padding: 0.4em 0.6em; text-align: left; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.narrow { max-width: var(--narrow); }
main { padding: 50px 0 80px; }

/* header */
.site-header { padding: 20px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 24px; }
.brand img { width: 115px; height: 115px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.site-nav li { position: relative; }
.site-nav li a { text-decoration: none; font-weight: 500; font-size: 16px; }
.has-children > a::after { content: ""; display: inline-block; width: 4px; height: 4px; margin-left: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.site-nav li ul { display: none; position: absolute; top: 100%; left: -15px; flex-direction: column; gap: 0; background: #fff; min-width: 180px; padding: 8px 0; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); z-index: 10; }
.site-nav li ul a { display: block; padding: 6px 15px; }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: flex; }
.nav-toggle, .nav-burger { display: none; }

/* buttons: the first link in a row is filled, the rest outlined */
.button, .buttons a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--link);
  border-radius: 3px;
  background: var(--link);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.button:hover, .buttons a:hover { background: var(--link-hover); border-color: var(--link-hover); color: #fff; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 1.4em; }
.buttons a ~ a { background: transparent; color: var(--link); }
.buttons a ~ a:hover { background: var(--light-bg); color: var(--link); }
.align-center { justify-content: center; }

/* home */
.home .portrait { border-radius: 50%; display: block; margin: 0 0 40px; width: 488px; }
.home h3 { font-size: 22px; line-height: 1.2; margin-top: 3em; }
.home .content > p > img { max-width: 560px; display: block; }
.page-title { margin-bottom: 30px; }

/* single */
.featured { display: block; width: 100%; margin: 0 0 50px; }
.content h3 { font-size: 24px; line-height: 1.2; margin-top: 1.4em; }
.content h4 { margin-top: 1.4em; }
.content img { display: block; }
.pdf object { border: 1px solid var(--light-bg); }
.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin: 0 0 1.4em; }
.media-text figure { margin: 0; }
.media-text img { width: 100%; }
.media-right figure { order: 2; }

/* listings */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.card { margin-bottom: 20px; }
.card-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-title { margin: 15px 0 40px; }
.card-title a { text-decoration: none; }
.card-excerpt { font-size: 15px; }
.card-excerpt .more { text-decoration: none; }
.terms { columns: 2; }

/* footer */
.site-footer { background: var(--dark-bg); color: #fff; padding: 20px 0; font-size: 16px; }
.site-footer a { color: #fff; }

@media (max-width: 960px) {
  body { font-size: 16px; }
  h1 { font-size: 80px; }
  h3 { font-size: 25px; line-height: 1.2; }
  .site-header { border-bottom: 1px solid var(--light-bg); }
  .card-title { margin-bottom: 25px; }
  .card-excerpt { font-size: 16px; }
  .nav-burger { display: block; border: 1px solid; border-radius: 3px; padding: 0 10px; font-size: 24px; line-height: 1.3; cursor: pointer; }
  .nav-burger::before { content: "\2261"; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 8px; }
  .site-nav li ul { display: flex; position: static; box-shadow: none; padding: 4px 0 0 15px; }
  .media-text { grid-template-columns: 1fr; }
  .media-right figure { order: 0; }
  .site-footer { text-align: center; font-size: 14px; }
}

@media (max-width: 576px) {
  body { font-size: 15px; }
  h1 { font-size: 50px; }
  h2 { font-size: 30px; }
  .cards { grid-template-columns: 1fr; }
}
