/* Self-hosted Minion 3 (originally served via Adobe Typekit kit byd3dcy) */
@font-face {
  font-family: "minion-3-1";
  src: url("/fonts/minion-3-regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "minion-3-1";
  src: url("/fonts/minion-3-italic.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

:root {
  --core-black: #333333;
  --core-gray: #808080;
  --core-blue: #b31d1d;
  --core-middle-blue: #ecc9c9;
  --core-light-blue: #f3dcdc;
  --core-wash: #525769;
  --core-wash-reference: #526965;
  --core-light-gray: #E7E7E7;
  --core-ultralight-gray: #F9F9F9;
  --viewport-max: 1280px;
  --viewport-half: 768px;
  --viewport-para: 660px;
  --item-margin: 80px auto;
}

body {
  font-family: minion-3-1, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1.5;
  color: var(--core-black);
  -webkit-font-smoothing: antialiased;
  padding: 0;
  margin: 0;
  overflow-y: scroll;
}

.main-container {
  max-width: var(--viewport-max);
  margin: 0 auto;
  padding: 20px 20px 80px 20px;
}

.top-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: var(--viewport-max);
    margin: 44px auto 60px auto;
}

nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  gap: 10px 30px;
  padding: 0;
  margin: 0;
}

nav a {
  color: var(--core-gray);
  border: none;
}

nav a:hover {
  color: var(--core-black);
  border: none;
}

nav a.selected {
  border-bottom: 1px solid var(--core-black);
  color: var(--core-black);
}

nav.photos {
  justify-content: center;
  max-width: var(--viewport-para);
  font-size: 30px;
  margin: 50px auto;
}

nav.work {
  margin-top: 50px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Wordmark: same treatment as leerob.com (local Iowan Old Style, true bold) */
@font-face {
  font-family: "Iowan Old Style Local";
  font-style: normal; font-weight: 400; font-display: swap;
  src: local("Iowan Old Style"), local("IowanOldStyle-Roman"), local("Iowan Old Style BT");
}
@font-face {
  font-family: "Iowan Old Style Local";
  font-style: normal; font-weight: 700; font-display: swap;
  src: local("Iowan Old Style Bold"), local("IowanOldStyle-Bold");
}

.top-bar .logo-link {
  border: none;
  color: #282828;
  font-family: "Iowan Old Style Local", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.top-bar .logo-link:hover {
  border: none;
  opacity: 0.72;
}

.top-bar .logo-link .at {
  font-size: 1.1em;
  margin-right: 0.015em;
  line-height: 0;
  display: inline-block;
  position: relative;
  top: 0.015em;
}

/* Projects list (work page) */
.project {
  max-width: var(--viewport-para);
  margin: 100px auto 0 auto;
}

.top-bar + .project,
.top-bar + p,
.top-bar + h1.about-title {
  margin-top: 190px;
}

h1.about-title,
.page-about h2 {
  font-size: 36px;
}

h1.about-title {
  margin-bottom: 30px;
}

.project .project-hero {
  display: block;
  width: 100%;
  max-width: var(--viewport-max);
  margin: 0 auto;
}

.project .project-hero-dark {
  background: var(--core-wash);
  padding: 100px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project .project-hero-dark img {
  width: 100%;
  max-width: 480px;
}

.project .spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  max-width: var(--viewport-half);
  margin: 0 auto;
}

.project .spread img {
  width: 100%;
  display: block;
}

.project .project-metadata {
  max-width: var(--viewport-para);
  margin: 0 auto;
}

.project h2 {
  font-size: 36px;
  margin-top: 0;
  margin-bottom: 30px;
}

.project h2 a {
  color: var(--core-black);
  border-bottom: none;
}

.project h2 a:hover {
  color: var(--core-black);
  border-bottom: 1px solid var(--core-black);
}

.project h2 img {
  height: 0.75em;
  width: 0.75em;
  object-fit: contain;
  border-radius: 6px;
  vertical-align: -0.06em;
  margin-right: 0.3em;
}

.project p {
  margin: 30px auto;
}

.project p.years {
  margin: -20px auto 0 auto;
  color: var(--core-gray);
  font-size: 18px;
}

/* Horizontal page strip (magazine / tech packs) */
.strip-container {
  margin: var(--item-margin);
  background: none;
  padding: 0;
}

.strip {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip img {
  flex: 0 0 auto;
  height: 512px;
  width: auto;
  scroll-snap-align: start;
  display: block;
  background: #fff;
  box-shadow: 0 1px 10px rgb(0 0 0 / 8%);
}

.strip.landscape img,
.strip.landscape video {
  height: 384px;
}

.strip video {
  flex: 0 0 auto;
  width: auto;
  scroll-snap-align: start;
  display: block;
  background: #fff;
  box-shadow: 0 1px 10px rgb(0 0 0 / 8%);
}

.strip-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.strip-nav button {
  font-family: inherit;
  font-size: 20px;
  color: var(--core-black);
  background: none;
  border: 1px solid var(--core-light-gray);
  padding: 6px 20px;
  cursor: pointer;
}

.strip-nav button:hover {
  border-color: var(--core-black);
}

.strip-nav span {
  color: var(--core-gray);
  align-self: center;
}

/* two images side by side, click to enlarge */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 1024px;
  margin: var(--item-margin);
}

.pair a.zoom {
  border: none;
  display: block;
  cursor: zoom-in;
}

.pair img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 1px 10px rgb(0 0 0 / 8%);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 5px 50px rgb(0 0 0 / 20%);
}

.video-container video.auto {
  display: block;
}

.article-link {
  color: var(--core-gray);
}

nav.contact {
  max-width: var(--viewport-para);
  margin: 60px auto 0 auto;
}

p, h1, h2, h3, table, blockquote, ul {
  max-width: var(--viewport-para);
  margin-left: auto;
  margin-right: auto;

}

p {
  margin-top: 30px;
  margin-bottom: 30px;
}

blockquote {
  border-left: 1px solid var(--core-light-gray);
  padding-left: 15px;
  font-style: italic;
  box-sizing: border-box;
}

ul {
  list-style-image: url('/list-carrot.svg');
}

ul li {
  margin-bottom: 20px;
}

ul li span {
  position: relative;
  left: 10px;
}

ul.article-metadata {
  list-style: none;
  margin: 0 auto 60px auto;
  padding: 0;
  color: var(--core-gray);
}

ul.article-metadata li {
  margin: 0 0 5px 0;
}

img.full-bleed {
  display: block;
  height: auto;
  max-width: var(--viewport-max);
  width: 100%;
  margin: var(--item-margin);
}

img.half-bleed {
  display: block;
  height: auto;
  max-width: var(--viewport-half);
  width: 100%;
  margin: var(--item-margin);
}

img.para-bleed {
  display: block;
  height: auto;
  max-width: var(--viewport-para);
  width: 100%;
  margin: var(--item-margin);
}

.image-container {
  margin: var(--item-margin);
  max-width: 1024px;
}

.image-container-small {
  margin: var(--item-margin);
  max-width: 768px;
}

.image-reference {
  background: var(--core-wash-reference) !important;
}

.image-before {
  background: var(--core-gray) !important;
}

.image-background {
  max-width: 100%;
  background: none;
  padding: 0;
}

.image-box {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 1px 10px rgb(0 0 0 / 5%);
  top: 0;
  -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-box::after {
  content: "";
    border-radius: 10px;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 5px 50px rgb(0 0 0 / 20%);
    opacity: 0;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-box:hover {
  transform: scale(1.01, 1.01);
  top: -5px;
}

.image-background img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.image-container p, .image-container-small p, p.caption {
  max-width: 100%;
  color: var(--core-gray);
  font-size: 16px;
  text-align: center;
  font-style: normal;
}

p.caption {
  max-width: 660px;
  margin-top: -50px;
  margin-bottom: 80px;
}

.video-container {
  position: relative;
  margin: var(--item-margin);
  max-width: 768px;
}

.framed {
  padding: 100px;
  background: var(--core-wash);
  box-sizing: border-box;
}

.video-container video {
  max-width: 100%;
  min-width: 100%;
}

.video-container .play {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background-color: var(--core-wash);
  background-image: url("/play.svg");
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  text-decoration: none;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  cursor: pointer;
}

.video-container:hover .play {
  opacity: 1;
}

.video-container .playing {
  background-image: url("/pause.svg");
  display: none;
}

.video-container:hover .playing {
  display: block;
}

h1, h2, h3 {
  font-size: 60px;
  font-weight: 400;
  line-height: 1.3;
}

h1 {
  margin-top: 150px;
  margin-bottom: 60px;
}

h2 {
  font-size: 40px;
  margin-top: 80px;
  margin-bottom: 30px;
}

h3 {
  font-size: 30px;
  margin-top: 60px;
  margin-bottom: 30px;
}

table, th, td {
  border: 1px solid var(--core-light-gray);
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 10px;
  vertical-align: top;
}

a {
  text-decoration: none;
  color: var(--core-blue);
  border-bottom: 1px solid var(--core-light-blue);
}

a:hover {
  border-bottom: 1px solid var(--core-blue);
}

a:visited {
}

a.image-link {
  border-bottom: none;
}

.intro-section {
  max-width: 512px;
  width: 100%;
  margin: 96px auto 20px auto;
}


.photo-intro {
  max-width: 512px;
  text-align: center;
  margin: 150px auto 0 auto;
}

.headshot {
  display: block;
  width: 100%;
  max-width: 252px;
  margin: 0 auto 44px auto;
}

.headshot.plain {
  max-width: 270px;
}

.headshot.plain img {
  display: block;
  width: 100%;
  height: auto;
}

/* Polaroid frame, borrowed from myfavoriteapp.com's photo tiles */
.polaroid {
  --tilt: -1.2deg;
  --lift: 8px;
  background: #fff;
  padding: 12px 12px 32px 12px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.08), 0 6px 18px rgba(28, 25, 23, 0.06);
  transform: rotate(0deg);
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
  cursor: pointer;
}

.polaroid:hover {
  transform: translateY(calc(-1 * var(--lift))) rotate(var(--tilt));
}

.polaroid img {
  display: block;
  width: 100%;
  background: #f4f4f5;
}

.photo {
  text-align: center;
  margin: 80px 0 0 0;
  font-style: italic;
  font-size: 16px;
}

.photo img {
  width: 100%;
  max-width: 800px;
}

.photo .xpan {
  max-width: 1800px;
}

.work-item {
  margin-top: 150px;
  text-align: left;
}

.work-item .work-item-metadata {
  max-width: 660px;
  margin: 0 auto;
}

.work-item ul {
  margin: 0;
  padding: 0 0 0 10px;
}

.work-item img {
  width: 100%;
  max-width: 1280px;
}

.work-item img.readmill {
  max-width: 970px;
}

.work-item p {
  margin: 30px 0;
}

.work-item p.years {
  margin: -20px 0 0 0;
  color: #808080;
}

.work-item hr {
  margin-top: 50px;
  width: 50px;
  border: 0;
  height: 1px;
  background: #cccccc;
}

.work-item video {
  width: 100%;
  max-width: 1280px;
}

.big-b {
  display: inline-block;
  margin-top: 10px;
  padding: 20px 50px 20px 20px;
  background-color: var(--core-light-blue);
  background-image: url("/arrow.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  color: var(--core-blue);
  border-bottom: none;
}

.big-b:hover {
  border-bottom: none;
  background-color: var(--core-middle-blue);
}

.gallery-container {
  background: var(--core-wash);
  padding: 100px;
  margin: var(--item-margin);
}

.ipad-container, .iphone-container, .android-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
}

.ipad-container img {
  max-width: 100%;
  box-shadow: 0 1px 20px rgb(0 0 0 / 10%);
}

.iphone-container img {
  max-width: 100%;
  max-height: 602px;
  box-shadow: 0 1px 20px rgb(0 0 0 / 10%);
}

.android-container img {
  max-width: 100%;
  max-height: 565px;
  box-shadow: 0 1px 20px rgb(0 0 0 / 10%);
}

.quote-container {
  width: 100%;
  background: var(--core-ultralight-gray);
  padding: 100px;
  box-sizing: border-box;
}

.quote-container blockquote {
  border: none;
  font-size: 30px;
  line-height: 1.4;
  font-style: normal;
  padding: 0;
}

.quote-container div{
  max-width: var(--viewport-para);
  margin: 0 auto;
}

.tweet-container {
  margin: var(--item-margin);
  padding: 100px;
  background: var(--core-ultralight-gray);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.tweet-container div {
  max-width: 344px;
}

.tweet-container div img {
  width: 100%;
  min-width: 344px;
}

@media only screen and (max-width: 768px) {
  :root {
    --item-margin: 30px auto;
  }

  body {
    font-size: 16px;
  }

  .top-bar {
    margin: 30px auto 30px auto;
  }

  .image-background, .gallery-container, .quote-container, .framed {
    padding: 30px;
    margin: 30px auto;
  }

  .quote-container blockquote {
    font-size: 20px;
    margin-top: 0;
  }

  .image-background img {
    border-radius: 2px;
  }

  .image-container p, .image-container-small p {
    margin-top: -10px;
    margin-bottom: 30px;
  }

  .ipad-container, .iphone-container, .android-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  p.caption {
    margin-top: -10px;
    margin-bottom: 40px;
  }

  h1 {
    font-size: 40px;
    margin: 50px 0 20px 0;
  }

  h2 {
    font-size: 25px;
    margin: 50px 0 20px 0;
  }

  p {
    margin: 20px 0;
  }

  ul {
    margin-left: -25px;
  }

  .work-item {
    margin-top: 60px;
  }

  .work-item p {
    margin: 20px 0;
  }
  
  .big-b {
    padding: 10px 50px 10px 10px;
    margin: 0;
  }

  .work-item-metadata h2 {
    margin-top: 30px;
  }

  .tweet-container {
    padding: 30px;
  }

  .tweet-container div img {
    min-width: 100%;
  }

  .top-bar .logo-link {
    font-size: 20px;
  }



  .top-bar nav {
    gap: 10px 20px;
  }

  .project {
    margin-top: 60px;
  }

  .top-bar + .project,
  .top-bar + p,
  .top-bar + h1.about-title {
    margin-top: 100px;
  }

  h1.about-title,
  .page-about h2 {
    font-size: 25px;
  }

  h1.about-title {
    margin-bottom: 20px;
  }

  .project .project-hero-dark {
    padding: 40px;
  }

  .strip-container {
    padding: 30px 0;
  }

  .strip {
    padding: 0;
  }

  .strip img {
    height: 400px;
  }

  .pair {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 16px;
  }

  .strip.landscape img,
  .strip.landscape video {
    height: 220px;
  }
  
  .intro-section {
    margin: 60px auto;
  }

  .photo-intro {
    margin: 60px auto 0 auto;
  }

}