/* schurkus.com: static rebuild of the WordPress front page (theme zerif-lite +
   child theme MinimalZerif). Sizes and colors follow the original theme CSS.
   Fonts are self-hosted, so visitors no longer contact Google Fonts. */

@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/Lato-300.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/Lato-400.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/Lato-400i.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/Lato-700.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/Montserrat-700.woff2) format("woff2"); }
@font-face { font-family: "Homemade Apple"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/HomemadeApple-400.woff2) format("woff2"); }

:root {
  --text: #404040;
  --muted: #808080;
  --light: #909090;
  --hand: "Homemade Apple", cursive;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 300 15px/1.6 var(--sans);
  color: var(--muted);
  background: #fff url(/img/crest-1400.webp) no-repeat center top fixed;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* small crest + name below the quote, in place of the old "Projects" button */
.brand {
  display: inline-block; margin-top: 45px;
  padding: 6px 12px; border-radius: 4px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid #fff;
  transition: background .2s;
}
.brand:hover { background: #fff; }
.brand img { height: 48px; width: auto; display: block; }

/* --- hero: crest shows through a 50% black veil ------------------------ */
.hero {
  background: rgba(0, 0, 0, .5);
  text-align: center;
  padding: clamp(120px, 22vh, 285px) 20px clamp(90px, 17vh, 210px);
}
.hero h1 {
  max-width: 1170px; margin: 0 auto;
  color: #fff;
  font: 400 clamp(30px, 4.3vw, 55px)/1.18 var(--sans);
  text-transform: uppercase;
}

/* --- sections ---------------------------------------------------------- */
main > section { background: #fff; padding: 100px 20px 70px; text-align: center; }
h2 {
  margin: 15px 0 75px;
  font: 400 30px/40px var(--hand);
  text-transform: lowercase;
  color: var(--text);
}
/* the dark rule between projects and the person */
main > .focus { position: relative; }
main > .focus::after {
  content: ""; position: absolute; left: 30px; right: 30px; bottom: 0;
  height: 2px; background: var(--text);
}

/* projects */
.boxes { display: flex; justify-content: center; max-width: 1170px; margin: 0 auto; }
.box {
  flex: 0 1 292px; padding: 0 15px 25px;
  border-right: 1px solid #eee;
  text-decoration: none;
}
.box img {
  width: 145px; height: 145px; object-fit: cover;
  border-radius: 50%; border: 10px solid #ececec;
  display: block; margin: 0 auto 20px;
  transition: border-color .2s ease-in-out;
}
.box:nth-child(1):hover img { border-color: #808080; }
.box:nth-child(2):hover img { border-color: #8e44ad; }
.box:nth-child(3):hover img { border-color: #3ab0e2; }
.box h3, .member h3 {
  position: relative; display: inline-block;
  margin: 0 0 30px;
  font: 700 17px var(--sans); text-transform: uppercase; color: var(--text);
}
.box h3::before, .member h3::before {
  content: ""; position: absolute; left: 12.5%; bottom: -9px;
  width: 75%; height: 2px; background: var(--text);
}
.box p { margin: 0; font-size: 14px; color: var(--muted); }

/* the person */
.person { padding-bottom: 66px; }
.member { display: inline-block; outline-offset: 8px; }
.photo {
  position: relative; width: 174px; height: 174px; margin: 0 auto 25px;
  border-radius: 50%; overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.details {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: #333; color: #fff; font-size: 13px; line-height: 20px;
  opacity: 0; transform: translateY(-100%);
  transition: opacity .5s, transform .5s;
}
.details a { color: #fff; }
.member:hover .details, .member:focus-within .details { opacity: 1; transform: none; }
.member h3 { font-size: 13px; margin-bottom: 20px; }

/* recent research */
main > .research { background: var(--text); padding-bottom: 90px; }
.research h2 { color: #fff; }
.cards {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 26px; max-width: 1170px; margin: 0 auto;
}
.card {
  flex: 0 1 calc(30% + 13px);
  background: #fff; border-radius: 4px; padding: 25px;
  text-align: left; text-decoration: none;
}
.message { margin: 0; font-size: 15px; color: var(--light); }
.message em { font-style: italic; }
.client { display: flex; align-items: flex-start; gap: 12px; margin-top: 30px; }
.client > div { flex: 1; }
.journal { display: block; font-family: var(--hand); font-size: 14px; line-height: 1.7; color: var(--text); }
.authors { display: block; font-size: 13px; color: var(--text); font-weight: 400; }
.client img {
  width: 73px; height: 73px; flex: none; object-fit: cover;
  border-radius: 50%; border: 1px solid #eee; margin-top: 30px;
}
.card:hover .message { color: var(--text); }
.profiles { margin: 45px 0 0; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.profiles a {
  padding: 10px 26px; border: 1px solid #fff; border-radius: 4px;
  color: #fff; text-decoration: none; font: 400 13px var(--sans); text-transform: uppercase;
  transition: background .2s, color .2s;
}
.profiles a:hover { background: #fff; color: var(--text); }

/* contact: the crest shows through again */
main > .contact { background: rgba(0, 0, 0, .5); padding-bottom: 95px; }
.contact h2 { color: #fff; }
address { font-style: italic; color: #fff; font-size: 15px; line-height: 1.7; }
address strong { font-weight: 700; }
address a { color: #fff; }

footer {
  background: #272727; color: #939393;
  text-align: center; font-size: 13px;
  padding: 30px 20px;
}

@media (max-width: 767px) {
  .boxes { flex-direction: column; align-items: center; }
  .box { border-right: 0; flex-basis: auto; padding-bottom: 45px; }
  .card { flex-basis: 100%; }
  h2 { margin-bottom: 50px; }
  main > section { padding-top: 70px; }
  body { background-size: 140% auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
